Commit 40e4352c4f65adbe78e121fa5f77fbe15eafafa8
1 parent
703fbefe
1.线调tip窗体加入驾驶的联系方式(如果有的话)
Showing
3 changed files
with
7 additions
and
1 deletions
src/main/java/com/bsth/common/SystemParamKeys.java
| @@ -7,6 +7,8 @@ public class SystemParamKeys { | @@ -7,6 +7,8 @@ public class SystemParamKeys { | ||
| 7 | 7 | ||
| 8 | public static final String SPECIAL_ROLES = "special.roles"; | 8 | public static final String SPECIAL_ROLES = "special.roles"; |
| 9 | 9 | ||
| 10 | + public static final String SPECIAL_DAYS = "special.days"; | ||
| 11 | + | ||
| 10 | public static final String URL_HTTP_GPS_REAL_CACHE = "url.http.gps.real.cache"; | 12 | public static final String URL_HTTP_GPS_REAL_CACHE = "url.http.gps.real.cache"; |
| 11 | 13 | ||
| 12 | public static final String URL_HTTP_GPS_REAL = "url.http.gps.real"; | 14 | public static final String URL_HTTP_GPS_REAL = "url.http.gps.real"; |
src/main/java/com/bsth/data/SystemParamCache.java
| @@ -21,6 +21,10 @@ public class SystemParamCache implements InitializingBean { | @@ -21,6 +21,10 @@ public class SystemParamCache implements InitializingBean { | ||
| 21 | return systemParamService1.getValue(SystemParamKeys.SPECIAL_ROLES); | 21 | return systemParamService1.getValue(SystemParamKeys.SPECIAL_ROLES); |
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | + public static String getSpecialDays() { | ||
| 25 | + return systemParamService1.getValue(SystemParamKeys.SPECIAL_DAYS); | ||
| 26 | + } | ||
| 27 | + | ||
| 24 | public static String getUrlHttpGpsRealCache() { | 28 | public static String getUrlHttpGpsRealCache() { |
| 25 | return systemParamService1.getValue(SystemParamKeys.URL_HTTP_GPS_REAL_CACHE); | 29 | return systemParamService1.getValue(SystemParamKeys.URL_HTTP_GPS_REAL_CACHE); |
| 26 | } | 30 | } |
src/main/java/com/bsth/util/PrivilegeUtils.java
| @@ -21,7 +21,7 @@ public class PrivilegeUtils { | @@ -21,7 +21,7 @@ public class PrivilegeUtils { | ||
| 21 | if (specialRoles != null) { | 21 | if (specialRoles != null) { |
| 22 | for (Role role : roles) { | 22 | for (Role role : roles) { |
| 23 | if (specialRoles.contains(String.format(",%s,", role.getCodeName()))) { | 23 | if (specialRoles.contains(String.format(",%s,", role.getCodeName()))) { |
| 24 | - days = 6; | 24 | + days = Integer.parseInt(SystemParamCache.getSpecialDays()); |
| 25 | } | 25 | } |
| 26 | } | 26 | } |
| 27 | } | 27 | } |