|
|
|
@ -186,13 +186,17 @@ public class ManualScoreServiceImpl extends BaseServiceImpl<ManualScoreDao, Manu |
|
|
|
String deptType = params.get("deptType").toString(); |
|
|
|
// yyyy-MM
|
|
|
|
String month = params.get("month").toString(); |
|
|
|
|
|
|
|
// 用户所选部门id
|
|
|
|
List<Long> dataScopeDeptList = new ArrayList<>(); |
|
|
|
if (!("".equals(params.get("deptId")))){ |
|
|
|
long deptId = Long.valueOf(params.get("deptId").toString()).longValue(); |
|
|
|
dataScopeDeptList.add(deptId); |
|
|
|
} |
|
|
|
// 考核周期开始月
|
|
|
|
YearMonth scoreStartDateMonth = YearMonth.parse(month); |
|
|
|
|
|
|
|
// 用户拥有的所有部门权限
|
|
|
|
List<Long> dataScopeDeptList = SecurityUser.getUser().getDeptIdList(); |
|
|
|
Result<List<UserSysDeptInfoResultDTO>> result = queryUserSysDeptInfo(dataScopeDeptList, deptType); |
|
|
|
|
|
|
|
Result<List<UserSysDeptInfoResultDTO>> result = querySysDeptInfo(dataScopeDeptList, deptType); |
|
|
|
if (!result.success() || CollUtil.isEmpty(result.getData())) { |
|
|
|
return Lists.newArrayList(); |
|
|
|
} |
|
|
|
@ -203,19 +207,14 @@ public class ManualScoreServiceImpl extends BaseServiceImpl<ManualScoreDao, Manu |
|
|
|
|
|
|
|
ManualScoreDTO manualScoreDTO = new ManualScoreDTO(); |
|
|
|
|
|
|
|
if (OrganizationTypeConstant.ORG_TYPE_STREET_DEPT.equals(params.get("deptType").toString())){ |
|
|
|
if (OrganizationTypeConstant.ORG_TYPE_STREET_PARTY.equals(params.get("deptType").toString())){ |
|
|
|
deptType = "街道"; |
|
|
|
manualScoreDTO.setDeptName(userSysDeptInfoResultDTO.getStreet()); |
|
|
|
} else if (OrganizationTypeConstant.ORG_TYPE_COMMUNITY_PARTY.equals(params.get("deptType").toString())){ |
|
|
|
deptType = "社区"; |
|
|
|
manualScoreDTO.setDeptName(userSysDeptInfoResultDTO.getStreet() + "-" + |
|
|
|
userSysDeptInfoResultDTO.getName()); |
|
|
|
} else if (OrganizationTypeConstant.ORG_TYPE_GRID_PARTY.equals(params.get("deptType").toString())){ |
|
|
|
deptType = "网格"; |
|
|
|
manualScoreDTO.setDeptName(userSysDeptInfoResultDTO.getStreet() + "-" + |
|
|
|
userSysDeptInfoResultDTO.getCommunity() + "-" + userSysDeptInfoResultDTO.getGrid()); |
|
|
|
} |
|
|
|
|
|
|
|
manualScoreDTO.setDeptName(userSysDeptInfoResultDTO.getName()); |
|
|
|
manualScoreDTO.setDeptType(deptType); |
|
|
|
if ("0".equals(params.get("scoreType").toString())){ |
|
|
|
manualScoreDTO.setScoreType("月"); |
|
|
|
@ -293,7 +292,7 @@ public class ManualScoreServiceImpl extends BaseServiceImpl<ManualScoreDao, Manu |
|
|
|
* @Author: zy |
|
|
|
* @Date: 2020-04-14 |
|
|
|
*/ |
|
|
|
private Result<List<UserSysDeptInfoResultDTO>> queryUserSysDeptInfo(List<Long> dataScopeDeptList, String deptTypeKey) { |
|
|
|
private Result<List<UserSysDeptInfoResultDTO>> querySysDeptInfo(List<Long> dataScopeDeptList, String deptTypeKey) { |
|
|
|
|
|
|
|
UserSysDeptInfoFormDTO userSysDeptInfoFormDTO = new UserSysDeptInfoFormDTO(); |
|
|
|
|
|
|
|
@ -303,7 +302,7 @@ public class ManualScoreServiceImpl extends BaseServiceImpl<ManualScoreDao, Manu |
|
|
|
|
|
|
|
userSysDeptInfoFormDTO.setDeptIdList(dataScopeDeptList); |
|
|
|
|
|
|
|
return adminFeignClient.queryUserSysDeptInfo(userSysDeptInfoFormDTO); |
|
|
|
return adminFeignClient.queryAllDeptInfo(userSysDeptInfoFormDTO); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
|