|
|
@ -70,34 +70,35 @@ public class GovIssueServiceImpl implements GovIssueService { |
|
|
|
} |
|
|
|
// xx街道-xx网格
|
|
|
|
List<GridsInfoListResultDTO> gridsInfoList = govOrgService.gridListByIds(formDTO.getGridIdList()); |
|
|
|
Integer issueCount = issueDao.selectIssueCount(formDTO.getGridIdList()); |
|
|
|
Integer applicationCount = issueApplicationDao.selectApplicationCount(formDTO.getGridIdList()); |
|
|
|
Integer all = 0; |
|
|
|
if (null != issueCount && null != applicationCount){ |
|
|
|
all = issueCount+applicationCount; |
|
|
|
} |
|
|
|
AllIssueResultDTO result = new AllIssueResultDTO(); |
|
|
|
result.setTotal(all); |
|
|
|
switch (formDTO.getIssueType()){ |
|
|
|
// 审核中议题
|
|
|
|
case IssueConstant.ISSUE_STATUS_AUDITING: |
|
|
|
List<IssueListResultDTO> resultAuditing = issueStatusAuditing(formDTO); |
|
|
|
result.setIssueList(resultAuditing); |
|
|
|
Integer auditingCount = issueApplicationDao.selectApplicationCount(formDTO.getGridIdList(), formDTO.getIssueType()); |
|
|
|
result.setTotal(auditingCount); |
|
|
|
break; |
|
|
|
// 被拒绝的议题
|
|
|
|
case IssueConstant.ISSUE_STATUS_REJECTED: |
|
|
|
List<IssueListResultDTO> resultRejected = issueStatusRejected(formDTO); |
|
|
|
result.setIssueList(resultRejected); |
|
|
|
Integer rejectedCount = issueApplicationDao.selectApplicationCount(formDTO.getGridIdList(), formDTO.getIssueType()); |
|
|
|
result.setTotal(rejectedCount); |
|
|
|
break; |
|
|
|
// 已转项目的议题
|
|
|
|
case IssueConstant.ISSUE_STATUS_SHIFT_PROJECT: |
|
|
|
List<IssueListResultDTO> resultShiftProject = issueStatusShiftProject(formDTO); |
|
|
|
result.setIssueList(resultShiftProject); |
|
|
|
Integer issueCount = issueDao.selectIssueCount(formDTO.getGridIdList(),formDTO.getIssueType()); |
|
|
|
result.setTotal(issueCount); |
|
|
|
break; |
|
|
|
// 已关闭、表决中的议题
|
|
|
|
default: |
|
|
|
List<IssueListResultDTO> resultClosedOrVoting = issueStatusClosedOrVoting(formDTO); |
|
|
|
result.setIssueList(resultClosedOrVoting); |
|
|
|
Integer closeOrVotingCount = issueDao.selectIssueCount(formDTO.getGridIdList(),formDTO.getIssueType()); |
|
|
|
result.setTotal(closeOrVotingCount); |
|
|
|
} |
|
|
|
if (!CollectionUtils.isEmpty(gridsInfoList)){ |
|
|
|
// 给所属网格 赋值
|
|
|
|