Browse Source

打卡图片验证

feature/syp_points
songyunpeng 5 years ago
parent
commit
14ffb4017e
  1. 14
      esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/impl/ActUserClockLogServiceImpl.java

14
esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/impl/ActUserClockLogServiceImpl.java

@ -334,6 +334,15 @@ public class ActUserClockLogServiceImpl extends BaseServiceImpl<ActUserClockLogD
*/
@Override
public Result activityClock(AppActUserClockLogDTO appActUserClockLogDTO) {
//判断当前时间是否超过打卡范围时间
ActInfoEntity actInfoEntity = actInfoService.selectById(appActUserClockLogDTO.getActId());
if(!(new Date().before(actInfoEntity.getSigninEndTime()) && new Date().after(actInfoEntity.getSigninStartTime()))){
return new Result().error("当前时间超过打卡时间范围");
}
//判断是否上传图片
if(appActUserClockLogDTO.getImages()==null || appActUserClockLogDTO.getImages().size()==0){
return new Result().error("请上传打卡图片");
}
//内容审核 - start
Boolean isConReview = appActUserClockLogDTO.getIsConReview();
String mobile = null;
@ -357,11 +366,6 @@ public class ActUserClockLogServiceImpl extends BaseServiceImpl<ActUserClockLogD
return new Result().error(CheckDataUtils.violations_code,CheckDataUtils.violations_message);
}
//内容审核 - end
//判断当前时间是否超过打卡范围时间
ActInfoEntity actInfoEntity = actInfoService.selectById(appActUserClockLogDTO.getActId());
if(!(new Date().before(actInfoEntity.getSigninEndTime()) && new Date().after(actInfoEntity.getSigninStartTime()))){
return new Result().error("当前时间超过打卡时间范围");
}
//查询人员活动关系Id(可打卡的)
List<String> statusList = new ArrayList<>();
statusList.add(ActUserRelationStatusConstant.APPROVED);

Loading…
Cancel
Save