| | |
| | | * 数据权限范围:0只看自己;1只看自己所在校区;2看全部校区;3看指定校区(多选) |
| | | */ |
| | | public interface PermissionType{ |
| | | int self =0; |
| | | int self_campus =1; |
| | | int all =2; |
| | | int partful = 3; |
| | | int self =0; |
| | | int self_campus =1; |
| | | int all =2; |
| | | int partful = 3; |
| | | } |
| | | public interface goodsorderStatus{ |
| | | int waitPay =0; |
| | |
| | | public static final String submission_period_key = "sp_"; |
| | | } |
| | | |
| | | |
| | | public static final String ACCESS_ID = "ACCESS_ID"; |
| | | |
| | | public static final String BUCKETNAME = "BUCKETNAME"; |
| | | |
| | | public static final String OSS = "OSS"; |
| | | |
| | | public static final String ACCESS_KEY = "ACCESS_KEY"; |
| | | |
| | | |
| | | public static final String ENDPOINT = "ENDPOINT"; |
| | | |
| | | |
| | | public static final String RESOURCE_PATH = "RESOURCE_PATH"; |
| | | public static final String AVATAR_FILE = "AVATAR_FILE"; |
| | | //用户协议 |
| | |
| | | this.info = info; |
| | | } |
| | | } |
| | | |
| | | public enum MEMBER_RIDES_STATUS{ |
| | | // 0请求开锁中 1骑行中 2已还车 3开锁失败 |
| | | LOCKING("请求开锁中", 0,"请求开锁中"), |
| | |
| | | this.info = info; |
| | | } |
| | | } |
| | | |
| | | public static BigDecimal formatDecimalNum(BigDecimal num) { |
| | | if (num == null) { |
| | | return new BigDecimal(0); |
| | |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | public static long formatLongNum(Long num) { |
| | | if (num == null) { |
| | | return 0; |
| | | } |
| | | return num; |
| | | } |
| | | |
| | | public static String formatImgPath(String avatar, String imgPath) { |
| | | if (StringUtils.isBlank(avatar)) { |
| | | return null; |
| | | } |
| | | return imgPath + avatar; |
| | | } |
| | | |
| | | public static String getIpAddr(HttpServletRequest request) { |
| | | String ipAddress = request.getHeader("x-forwarded-for"); |
| | | if (ipAddress == null || ipAddress.length() == 0 || "unknown".equalsIgnoreCase(ipAddress)) { |