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

Commit 6d890e29 authored by 胡佳晨's avatar 胡佳晨

最大积分限制 添加

parent a9d2522b
...@@ -71,10 +71,10 @@ public class StoneScoreLogsServiceImpl implements IStoneScoreLogsService { ...@@ -71,10 +71,10 @@ public class StoneScoreLogsServiceImpl implements IStoneScoreLogsService {
} }
StoneUserVo vo = stoneRedisUtils.getUserData(uid); StoneUserVo vo = stoneRedisUtils.getUserData(uid);
Date userDay = DateUtil.parse(vo.getCurrentDay().isEmpty() ? DateUtil.getNowTime() : vo.getCurrentDay(), "yyyy-MM-dd"); // Date userDay = DateUtil.parse(vo.getCurrentDay().isEmpty() ? DateUtil.getNowTime() : vo.getCurrentDay(), "yyyy-MM-dd");
Date userMonth = DateUtil.parse(vo.getCurrentMonth().isEmpty() ? DateUtil.getNowTime() : vo.getCurrentMonth(), "yyyy-MM"); Date userMonth = DateUtil.parse(vo.getCurrentMonth().isEmpty() ? DateUtil.getNowTime() : vo.getCurrentMonth(), "yyyy-MM");
int monthScore = vo.getMonthScore() == null ? 0 : vo.getMonthScore(); int monthScore = vo.getMonthScore() == null ? 0 : vo.getMonthScore();
int dayScore = vo.getDayScore() == null ? 0 : vo.getDayScore(); // int dayScore = vo.getDayScore() == null ? 0 : vo.getDayScore();
if (DateUtil.compareMonth(userMonth, DateUtil.parse(DateUtil.getNowTime(), "yyyy-MM")) == 0) {//当月 if (DateUtil.compareMonth(userMonth, DateUtil.parse(DateUtil.getNowTime(), "yyyy-MM")) == 0) {//当月
if ((monthScore + score) >= monthMax) { if ((monthScore + score) >= monthMax) {
score = monthMax - monthScore; score = monthMax - monthScore;
......
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