|
|
@ -325,13 +325,6 @@ public class ActUserClockLogServiceImpl extends BaseServiceImpl<ActUserClockLogD |
|
|
|
contentSecurityFeign.insertViolationsRecord(record); |
|
|
|
return new Result().error(CheckDataUtils.violations_message); |
|
|
|
} |
|
|
|
//接口异常,保存至待审核信息
|
|
|
|
if(contentResult == null || imgResult == null) { |
|
|
|
SaveCheckRecordsDTO record = CheckDataUtils.getPackageRecords(appActUserClockLogDTO.getUserId(), |
|
|
|
userName, CheckDataUtils.cate_two, null,ModuleName.HELP_SIGNIN.getCode(), textList, |
|
|
|
appActUserClockLogDTO.getImages(), null,null,null, null,mobile,"1"); |
|
|
|
contentSecurityFeign.insertRecords(record); |
|
|
|
} |
|
|
|
//查询人员活动关系Id(可打卡的)
|
|
|
|
List<String> statusList = new ArrayList<>(); |
|
|
|
statusList.add(ActUserRelationStatusConstant.APPROVED); |
|
|
@ -366,16 +359,22 @@ public class ActUserClockLogServiceImpl extends BaseServiceImpl<ActUserClockLogD |
|
|
|
actClockPicService.save(actClockPicDTO); |
|
|
|
} |
|
|
|
actInfoService.addClockNum(appActUserClockLogDTO.getActId()); |
|
|
|
|
|
|
|
//接口异常,保存至待审核信息
|
|
|
|
if(contentResult == null || imgResult == null) { |
|
|
|
SaveCheckRecordsDTO record = CheckDataUtils.getPackageRecords(appActUserClockLogDTO.getUserId(), |
|
|
|
userName, CheckDataUtils.cate_two, null,ModuleName.HELP_SIGNIN.getCode(), textList, |
|
|
|
appActUserClockLogDTO.getImages(), entity.getId(),null,null, null,mobile,"1"); |
|
|
|
contentSecurityFeign.insertRecords(record); |
|
|
|
} |
|
|
|
//保存待审核记录
|
|
|
|
if (contentResult != null || imgResult != null) { |
|
|
|
CheckResultMessageDTO twoTypes = CheckDataUtils.checkTwoTypes(contentResult, imgResult); |
|
|
|
if (CheckDataUtils.review.equals(twoTypes.getSuggestion())) { |
|
|
|
//组装要保存的信息
|
|
|
|
SaveCheckRecordsDTO record = CheckDataUtils.getPackageRecords(appActUserClockLogDTO.getUserId(), |
|
|
|
userName, CheckDataUtils.cate_two, null,ModuleName.HELP_SIGNIN.getCode(), textList, |
|
|
|
appActUserClockLogDTO.getImages(), entity.getId(),null,null, twoTypes,mobile,"0"); |
|
|
|
contentSecurityFeign.insertRecords(record); |
|
|
|
} |
|
|
|
CheckResultMessageDTO twoTypes = CheckDataUtils.checkTwoTypes(contentResult, imgResult); |
|
|
|
if (CheckDataUtils.review.equals(twoTypes.getSuggestion())) { |
|
|
|
//组装要保存的信息
|
|
|
|
SaveCheckRecordsDTO record = CheckDataUtils.getPackageRecords(appActUserClockLogDTO.getUserId(), |
|
|
|
userName, CheckDataUtils.cate_two, null,ModuleName.HELP_SIGNIN.getCode(), textList, |
|
|
|
appActUserClockLogDTO.getImages(), entity.getId(),null,null, twoTypes,mobile,"0"); |
|
|
|
contentSecurityFeign.insertRecords(record); |
|
|
|
} |
|
|
|
return new Result().ok("打卡成功"); |
|
|
|
} |
|
|
|