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

Commit 82d1f2bb authored by zhengfuxin's avatar zhengfuxin

修改bug

parent 0e0de6b7
......@@ -212,5 +212,7 @@ public class SmileUserVO implements Serializable {
private LocalDateTime updatedDate;
private int authStatus;
}
......@@ -55,6 +55,7 @@ public class SellDataInfoImpl {
int pageSize=1;
for(int p=0;p<=page;p++){
int offest=p*pageSize;
log.info("用户{}",offest);
List<SmileUser> list=smileUserMapper.pageUser(offest,pageSize);
userJob(list);
}
......
......@@ -78,7 +78,16 @@ public class SmileUserController {
public ResponseDto auth() {
String userId = CurrentUtil.getCurrentUid();
SmileUserVO smileUserVORedis= (SmileUserVO) redisUtil.get(SmileRedisConst.SMILE_USER.concat(userId));
return ResponseDto.success(smileFrontService.auth(userId,smileUserVORedis));
if(null!=smileUserVORedis){
if(smileUserVORedis.getAuthStatus()==1){
return ResponseDto.success(true);
}else{
smileUserVORedis.setAuthStatus(1);
redisUtil.set(SmileRedisConst.SMILE_USER.concat(userId),smileUserVORedis);
return ResponseDto.success(smileFrontService.auth(userId,smileUserVORedis));
}
}
return ResponseDto.failure("没有该用户信息");
}
......
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