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

Commit ebd062bd authored by 胡佳晨's avatar 胡佳晨

最大积分限制 添加

parent c84ffaae
......@@ -72,6 +72,20 @@ public class StoneScoreLogsServiceImpl implements IStoneScoreLogsService {
if (TaskId == 2111) {
StoneUserVo vo = stoneRedisUtils.getUserData(uid);
if (vo == null) {
vo = StoneUserVo.getNew();
vo.getTask();
vo.setUid(uid);
vo.setStatus(1);
//redis
stoneRedisUtils.setUserData(uid, vo);
//mongo
stoneMongoUtils.userCreate(vo);
//mysql 创建用户积分表数据
queueUtils.sendMsgByRedis(MQConst.StoneQueue.STONE_INSERT_USER.getKey(),
SqlMapping.get("stone_score_user.insert", IDGenerator.nextTimeId2(), vo.getUid(), vo.getStatus(), LocalDateTime.now())
);
}
// Date userDay = DateUtil.parse(vo.getCurrentDay()==null ? DateUtil.getNowTime() : vo.getCurrentDay(), "yyyy-MM-dd");
Date userMonth = DateUtil.parse(vo.getCurrentMonth()==null ? DateUtil.getNowTime() : vo.getCurrentMonth(), "yyyy-MM");
int monthScore = vo.getMonthScore() == null ? 0 : vo.getMonthScore();
......@@ -94,6 +108,9 @@ public class StoneScoreLogsServiceImpl implements IStoneScoreLogsService {
// score = dayMax;
// }
// }
vo.setCurrentMonth(DateUtil.format(userMonth,DateUtil.Formatter.yyyyMMddHHmmss));
vo.setMonthScore(monthScore+score);
stoneRedisUtils.setUserData(uid, vo);
if (score == 0) {
return "成功";
}
......
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