master
冯凯 2023-11-05 10:14:19 +08:00
parent 5d3d8cec49
commit 406e672a30
1 changed files with 2 additions and 2 deletions

View File

@ -36,10 +36,10 @@ public class SysSignServiceImpl implements SysSignService {
//查询出当前登录人的最近一条的签到记录
Sign sign = sysSignMapper.searchSignByUserId(userId);
//获取当天的日期 是第几日
int today = new Date().getDay();
int today = new Date().getDate();
System.out.println("当天是:"+today);
//获取最近一次签到的日期 是第几日
int recentDay = sign.getSignTime().getDay();
int recentDay = sign.getSignTime().getDate();
System.out.println("最近签到是"+recentDay);
//判断是否已经断签了
if (today-recentDay>1){