diff --git a/epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/redis/GovIssueRedis.java b/epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/redis/GovIssueRedis.java index 074c8e9597..1dacca6b18 100644 --- a/epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/redis/GovIssueRedis.java +++ b/epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/redis/GovIssueRedis.java @@ -18,6 +18,53 @@ public class GovIssueRedis { @Autowired private RedisUtils redisUtils; + /** + * @return java.lang.Long + * @param gridId + * @Author yinzuomei + * @Description 居民端,组长将话题转为议题成功后,调用此方法,该网格下表决中的议题数量+1 + * @Date 2020/5/14 10:12 + **/ + public Long addWorkGrassrootsIssueRedDotValue(String gridId){ + Long votingIssueCount = 0L; + try { + String workGrassrootsIssueRedDotKey = GovIssueRedisKeys.getWorkGrassrootsIssueRedDotKey(gridId); + votingIssueCount = redisUtils.incrementAndGet(workGrassrootsIssueRedDotKey); + logger.info(String.format("居民端话题转议题提交,更新redis-reddot值成功,key[%s],Value[%s]", workGrassrootsIssueRedDotKey, votingIssueCount)); + } catch (Exception e) { + logger.error(String.format("居民端话题转议题提交,更新redis-reddot值异常%s",e.getMessage())); + e.printStackTrace(); + } + return votingIssueCount; + } + + /** + * @return java.lang.Long + * @param gridId + * @Author yinzuomei + * @Description 政府端工作人员关闭议题或者将议题转项目成功后,需要调用此方法,将网格下表决中的议题数量-1 + * @Date 2020/5/14 10:12 + **/ + public Long subtractWorkGrassrootsIssueRedDotValue(String gridId){ + Long votingIssueCount = 0L; + try { + String workGrassrootsIssueRedDotKey = GovIssueRedisKeys.getWorkGrassrootsIssueRedDotKey(gridId); + votingIssueCount = redisUtils.decrementAndGet(workGrassrootsIssueRedDotKey); + logger.info(String.format("政府端(关闭议题、议题转项目)提交,更新redis-reddot值成功,key[%s],Value[%s]", workGrassrootsIssueRedDotKey, votingIssueCount)); + } catch (Exception e) { + logger.error(String.format("政府端(关闭议题、议题转项目)提交,更新redis-reddot值异常%s",e.getMessage())); + e.printStackTrace(); + } + return votingIssueCount; + } + + /** + * @return java.lang.Long + * @param gridId + * @Author yinzuomei + * @Description 获取某网格下表决中的议题总数 + * @Date 2020/5/14 9:40 + **/ public Long queryVotingIssueCount(String gridId) { Long auditingGroupCount = 0L; try { diff --git a/epmet-module/resi-hall/resi-hall-client/resi-hall-client.iml b/epmet-module/resi-hall/resi-hall-client/resi-hall-client.iml deleted file mode 100644 index 6f6a140623..0000000000 --- a/epmet-module/resi-hall/resi-hall-client/resi-hall-client.iml +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/epmet-module/resi-hall/resi-hall-server/resi-hall-server.iml b/epmet-module/resi-hall/resi-hall-server/resi-hall-server.iml deleted file mode 100644 index 62d773bcc3..0000000000 --- a/epmet-module/resi-hall/resi-hall-server/resi-hall-server.iml +++ /dev/null @@ -1,201 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/epmet-module/resi-hall/resi-hall.iml b/epmet-module/resi-hall/resi-hall.iml deleted file mode 100644 index 2837671944..0000000000 --- a/epmet-module/resi-hall/resi-hall.iml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file