记得上下班打卡 | git大法好,push需谨慎

Commit 74666ad3 authored by jiangxiulong's avatar jiangxiulong

null

parent 34541450
...@@ -49,6 +49,7 @@ public class SweetCityVoteServiceImpl extends ServiceImpl<SweetCityVoteMapper, S ...@@ -49,6 +49,7 @@ public class SweetCityVoteServiceImpl extends ServiceImpl<SweetCityVoteMapper, S
public ResponseDto getList(String phone, String unionId) { public ResponseDto getList(String phone, String unionId) {
List<SweetCItyVoteStatVo> sweetCityVoteStatList = redisDataUtils.getSweetCityVoteStatList(); List<SweetCItyVoteStatVo> sweetCityVoteStatList = redisDataUtils.getSweetCityVoteStatList();
SweetCityVoteParam userVote = redisDataUtils.getUserVote(phone, unionId); SweetCityVoteParam userVote = redisDataUtils.getUserVote(phone, unionId);
if (!CollectionUtils.isEmpty(sweetCityVoteStatList)) {
String cityCode = userVote.getCityCode(); String cityCode = userVote.getCityCode();
for (SweetCItyVoteStatVo info : sweetCityVoteStatList) { for (SweetCItyVoteStatVo info : sweetCityVoteStatList) {
if (null == userVote) { if (null == userVote) {
...@@ -59,6 +60,8 @@ public class SweetCityVoteServiceImpl extends ServiceImpl<SweetCityVoteMapper, S ...@@ -59,6 +60,8 @@ public class SweetCityVoteServiceImpl extends ServiceImpl<SweetCityVoteMapper, S
info.setIsVote(3); info.setIsVote(3);
} }
} }
}
HashMap<String, Object> stringObjectHashMap = CollectionUtil.mapStringObject(); HashMap<String, Object> stringObjectHashMap = CollectionUtil.mapStringObject();
stringObjectHashMap.put("list", sweetCityVoteStatList); stringObjectHashMap.put("list", sweetCityVoteStatList);
stringObjectHashMap.put("userVote", userVote); stringObjectHashMap.put("userVote", userVote);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment