Commit 51f2321731d35ac1c0cd9a4b9da63bbd1bf5cddc
1 parent
fb2312f1
1.修复历史修正班次时不同角色的日期范围问题
Showing
3 changed files
with
11 additions
and
3 deletions
src/main/java/com/bsth/common/Constants.java
src/main/java/com/bsth/common/SystemParamKeys.java
0 → 100644
src/main/java/com/bsth/util/PrivilegeUtils.java
| 1 | 1 | package com.bsth.util; |
| 2 | 2 | |
| 3 | 3 | import com.bsth.common.Constants; |
| 4 | +import com.bsth.common.SystemParamKeys; | |
| 4 | 5 | import com.bsth.data.BasicData; |
| 5 | 6 | import com.bsth.entity.SystemParam; |
| 6 | 7 | import com.bsth.entity.sys.Role; |
| ... | ... | @@ -15,7 +16,7 @@ public class PrivilegeUtils { |
| 15 | 16 | |
| 16 | 17 | public static int getHistoryEditDays() { |
| 17 | 18 | Set<Role> roles = SecurityUtils.getCurrentUser().getRoles(); |
| 18 | - SystemParam param = BasicData.getSystemParam().get(Constants.SPECIAL_ROLES); | |
| 19 | + SystemParam param = BasicData.getSystemParam().get(SystemParamKeys.SPECIAL_ROLES); | |
| 19 | 20 | int days = 4; |
| 20 | 21 | if (param != null && param.getValue() != null) { |
| 21 | 22 | for (Role role : roles) { | ... | ... |