|
|
@ -262,6 +262,11 @@ public class IssueVoteDetailRedis { |
|
|
|
formDTO.setIssueId(issueId); |
|
|
|
formDTO.setGridId(issue.getGridId()); |
|
|
|
voteCache = issueVoteDetailService.selectIssueVotingDetail(formDTO); |
|
|
|
IssueVoteStatisticalDTO dto = ConvertUtils.sourceToTarget(voteCache, IssueVoteStatisticalDTO.class); |
|
|
|
dto.setVotableCount(voteCache.getShouldVoteCount()); |
|
|
|
dto.setSupportCount(voteCache.getSupportAmount()); |
|
|
|
dto.setOppositionCount(voteCache.getOppositionAmount()); |
|
|
|
issueVoteStatisticalDao.updateBtIssueId(dto); |
|
|
|
}else { |
|
|
|
// 状态是关闭,转议题的,直接从结果表查询
|
|
|
|
voteCache = issueVoteStatisticalDao.selectVoteDetail(issueId); |
|
|
|