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

Commit 225e4d9b authored by 胡佳晨's avatar 胡佳晨

提交 五条人需求 活动状态和banner

parent 816f888f
...@@ -81,9 +81,9 @@ public class SweetCityVoteServiceImpl extends ServiceImpl<SweetCityVoteMapper, S ...@@ -81,9 +81,9 @@ public class SweetCityVoteServiceImpl extends ServiceImpl<SweetCityVoteMapper, S
LocalDateTime startTime = LocalDateTime.parse(map.get("startTime"), DTF_YMD_HMS); LocalDateTime startTime = LocalDateTime.parse(map.get("startTime"), DTF_YMD_HMS);
LocalDateTime endTime = LocalDateTime.parse(map.get("endTime"), DTF_YMD_HMS); LocalDateTime endTime = LocalDateTime.parse(map.get("endTime"), DTF_YMD_HMS);
LocalDateTime now = LocalDateTime.now(); LocalDateTime now = LocalDateTime.now();
if (startTime.isBefore(now)) { if (startTime.isAfter(now)) {
stringObjectHashMap.put("activeStatus", 0); stringObjectHashMap.put("activeStatus", 0);
} else if (endTime.isAfter(now)) { } else if (endTime.isBefore(now)) {
stringObjectHashMap.put("activeStatus", 2); stringObjectHashMap.put("activeStatus", 2);
} else { } else {
stringObjectHashMap.put("activeStatus", 1); stringObjectHashMap.put("activeStatus", 1);
......
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