屏蔽校验打卡
This commit is contained in:
@ -135,13 +135,13 @@ public class TbZdxlFgdwBddxlrwJlController {
|
||||
// TODO: 2025/9/16 需要加上打卡点附近的坐标验证
|
||||
|
||||
//校验上一次打卡情况
|
||||
int lastSx = baseEntity.getDkSx() - 1;
|
||||
if(lastSx > 0){
|
||||
TbZdxlFgdwBddxlrwJl lastEntity = tbZdxlFgdwBddxlrwJlService.selectByBddxlrwIdAndDkSx(baseEntity.getBddxlrwId(), lastSx);
|
||||
if(ObjectUtils.isNotEmpty(lastEntity) && ObjectUtils.isEmpty(lastEntity.getDkJsSj())){
|
||||
return ResponseResult.fail(MessageUtils.getSaveFailMsg() + "请完成上一次打卡后,再进行本次打卡");
|
||||
}
|
||||
}
|
||||
// int lastSx = baseEntity.getDkSx() - 1;
|
||||
// if(lastSx > 0){
|
||||
// TbZdxlFgdwBddxlrwJl lastEntity = tbZdxlFgdwBddxlrwJlService.selectByBddxlrwIdAndDkSx(baseEntity.getBddxlrwId(), lastSx);
|
||||
// if(ObjectUtils.isNotEmpty(lastEntity) && ObjectUtils.isEmpty(lastEntity.getDkJsSj())){
|
||||
// return ResponseResult.fail(MessageUtils.getSaveFailMsg() + "请完成上一次打卡后,再进行本次打卡");
|
||||
// }
|
||||
// }
|
||||
|
||||
//如果是打结束卡,需要进行以下验证
|
||||
UserInfo user = UserInfoManager.get();
|
||||
|
||||
Reference in New Issue
Block a user