|
@ -52,18 +52,19 @@ public class RemindServiceImpl implements RemindService { |
|
|
Result<List<CustomerGridByUserIdResultDTO>> govOrgResult = govOrgFeignClient.getMyGrids(formDTO.getStaffId()); |
|
|
Result<List<CustomerGridByUserIdResultDTO>> govOrgResult = govOrgFeignClient.getMyGrids(formDTO.getStaffId()); |
|
|
if (!govOrgResult.success()) { |
|
|
if (!govOrgResult.success()) { |
|
|
logger.error(String.format("调用gov-org-server服务查询工作人员网格列表失败返回结果", govOrgResult.toString())); |
|
|
logger.error(String.format("调用gov-org-server服务查询工作人员网格列表失败返回结果", govOrgResult.toString())); |
|
|
} |
|
|
}else{ |
|
|
List<CustomerGridByUserIdResultDTO> gridList = govOrgResult.getData(); |
|
|
List<CustomerGridByUserIdResultDTO> gridList = govOrgResult.getData(); |
|
|
for (CustomerGridByUserIdResultDTO gridInfo : gridList) { |
|
|
for (CustomerGridByUserIdResultDTO gridInfo : gridList) { |
|
|
if(formDTO.getGridId().equals(gridInfo)){ |
|
|
if(formDTO.getGridId().equals(gridInfo)){ |
|
|
//查询非当前网格的
|
|
|
//查询非当前网格的
|
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
//其他网格,只要存在有待办事项的网格,就需要在工作首页网格名称后面显示红点
|
|
|
//其他网格,只要存在有待办事项的网格,就需要在工作首页网格名称后面显示红点
|
|
|
List<String> functionList = this.getRedDotFunctionList(gridInfo.getGridId()); |
|
|
List<String> functionList = this.getRedDotFunctionList(gridInfo.getGridId()); |
|
|
if (null != functionList && functionList.size() > 0) { |
|
|
if (null != functionList && functionList.size() > 0) { |
|
|
redDotResultDTO.setOtherGridRedDot(true); |
|
|
redDotResultDTO.setOtherGridRedDot(true); |
|
|
break; |
|
|
break; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
return redDotResultDTO; |
|
|
return redDotResultDTO; |
|
@ -80,10 +81,10 @@ public class RemindServiceImpl implements RemindService { |
|
|
if (this.getWorkGrassRootsResi(gridIdList)) { |
|
|
if (this.getWorkGrassRootsResi(gridIdList)) { |
|
|
functionList.add(WorkGrassRootsFunctionConstant.WORK_GRASSROOTS_RESI); |
|
|
functionList.add(WorkGrassRootsFunctionConstant.WORK_GRASSROOTS_RESI); |
|
|
} |
|
|
} |
|
|
if (getWorkGrassRootsPartyAuth(gridIdList)) { |
|
|
if (this.getWorkGrassRootsPartyAuth(gridIdList)) { |
|
|
functionList.add(WorkGrassRootsFunctionConstant.WORK_GRASSROOTS_PARTYAUTH); |
|
|
functionList.add(WorkGrassRootsFunctionConstant.WORK_GRASSROOTS_PARTYAUTH); |
|
|
} |
|
|
} |
|
|
if (getWorkGrassRootsIssue(gridIdList)) { |
|
|
if (this.getWorkGrassRootsIssue(gridIdList)) { |
|
|
functionList.add(WorkGrassRootsFunctionConstant.WORK_GRASSROOTS_ISSUE); |
|
|
functionList.add(WorkGrassRootsFunctionConstant.WORK_GRASSROOTS_ISSUE); |
|
|
} |
|
|
} |
|
|
return functionList; |
|
|
return functionList; |
|
@ -101,9 +102,10 @@ public class RemindServiceImpl implements RemindService { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
}else{ |
|
|
|
|
|
logger.error(String.format("调用%s服务,查询网格%s待审核小组数失败code%s,msg:", ServiceConstant.RESI_GROUP_SERVER, gridIdList.get(0), groupProcessingCountResult.getCode(), |
|
|
|
|
|
groupProcessingCountResult.getMsg())); |
|
|
} |
|
|
} |
|
|
logger.error(String.format("调用%s服务,查询网格%s待审核小组数失败code%s,msg:", ServiceConstant.RESI_GROUP_SERVER, gridIdList.get(0), groupProcessingCountResult.getCode(), |
|
|
|
|
|
groupProcessingCountResult.getMsg())); |
|
|
|
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -119,9 +121,10 @@ public class RemindServiceImpl implements RemindService { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
} else { |
|
|
|
|
|
logger.error(String.format("调用%s服务,查询网格%s待审核热心居民数失败code%s,msg:", ServiceConstant.RESI_PARTYMEMBER_SERVER, gridIdList.get(0), resiGroupProcessingCountResult.getCode(), |
|
|
|
|
|
resiGroupProcessingCountResult.getMsg())); |
|
|
} |
|
|
} |
|
|
logger.error(String.format("调用%s服务,查询网格%s待审核热心居民数失败code%s,msg:", ServiceConstant.RESI_PARTYMEMBER_SERVER, gridIdList.get(0), resiGroupProcessingCountResult.getCode(), |
|
|
|
|
|
resiGroupProcessingCountResult.getMsg())); |
|
|
|
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -137,9 +140,10 @@ public class RemindServiceImpl implements RemindService { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
}else{ |
|
|
|
|
|
logger.error(String.format("调用%s服务,查询网格%s待审核党员数失败code%s,msg:", ServiceConstant.RESI_PARTYMEMBER_SERVER, gridIdList.get(0), partyMemberProcessingCountResult.getCode(), |
|
|
|
|
|
partyMemberProcessingCountResult.getMsg())); |
|
|
} |
|
|
} |
|
|
logger.error(String.format("调用%s服务,查询网格%s待审核党员数失败code%s,msg:", ServiceConstant.RESI_PARTYMEMBER_SERVER, gridIdList.get(0), partyMemberProcessingCountResult.getCode(), |
|
|
|
|
|
partyMemberProcessingCountResult.getMsg())); |
|
|
|
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -155,9 +159,10 @@ public class RemindServiceImpl implements RemindService { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
}else{ |
|
|
|
|
|
logger.error(String.format("调用%s服务,查询网格%s表决中议题总数失败code%s,msg:", ServiceConstant.GOV_ISSUE_SERVER, gridIdList.get(0), issueResult.getCode(), |
|
|
|
|
|
issueResult.getMsg())); |
|
|
} |
|
|
} |
|
|
logger.error(String.format("调用%s服务,查询网格%s表决中议题总数失败code%s,msg:", ServiceConstant.GOV_ISSUE_SERVER, gridIdList.get(0), issueResult.getCode(), |
|
|
|
|
|
issueResult.getMsg())); |
|
|
|
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|