|
|
@ -83,10 +83,13 @@ import org.springframework.transaction.annotation.Transactional; |
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
import java.io.IOException; |
|
|
|
import java.io.PrintWriter; |
|
|
|
import java.time.LocalDate; |
|
|
|
import java.util.*; |
|
|
|
import java.util.concurrent.atomic.AtomicReference; |
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
import static com.epmet.commons.tools.utils.DateUtils.DATE_PATTERN; |
|
|
|
|
|
|
|
/** |
|
|
|
* @Author zxc |
|
|
|
* @CreateTime 2020/5/11 9:46 |
|
|
@ -2068,6 +2071,17 @@ public class IssueServiceImpl extends BaseServiceImpl<IssueDao, IssueEntity> imp |
|
|
|
} |
|
|
|
if (CollectionUtils.isNotEmpty(result.getList())){ |
|
|
|
for (AllIssueListResultDTO l : result.getList()) { |
|
|
|
if (l.getIssueStatus().equals(ModuleConstants.ISSUE_STATUS_VOTING)){ |
|
|
|
String endDate = null == l.getVotingDeadline() ? |
|
|
|
DateUtils.format(new Date(),DATE_PATTERN) : |
|
|
|
DateUtils.format(l.getVotingDeadline(),DATE_PATTERN); |
|
|
|
String today = LocalDate.now().toString(); |
|
|
|
if (today.equals(endDate)){ |
|
|
|
PolyLineDTO polyLineDTO = issueVoteDetailDao.polyLineData(l.getIssueId(), endDate); |
|
|
|
l.setSupportCount(l.getSupportCount() + polyLineDTO.getSupportIncrement()); |
|
|
|
l.setOppositionCount(l.getOppositionCount() + polyLineDTO.getOppositionIncrement()); |
|
|
|
} |
|
|
|
} |
|
|
|
GridInfoCache gridInfo = CustomerOrgRedis.getGridInfo(l.getGridId()); |
|
|
|
if(null == gridInfo){ |
|
|
|
logger.warn("查询网格信息失败:"+l.getGridId()); |
|
|
|