Commit e5cf71f7 authored by shiyu's avatar shiyu

累计签到2

parent 4fc0e652
......@@ -126,8 +126,8 @@ public class UserSigninController {
userSignin.setSignInDate(startDateStr);
userSignin.setCreateTime(new Date());
userSignin.setUpdateTime(new Date());
if (dto.getConsecutiveDays() > 21) {
userSignin.setConsecutiveDays(dto.getConsecutiveDays() - 21);
if (i > 21) {
userSignin.setConsecutiveDays(i - 21);
} else {
userSignin.setConsecutiveDays(dto.getConsecutiveDays() - i);
}
......
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