|
@@ -231,8 +231,10 @@ public class TBDingApplyServiceImpl extends ServiceImpl<TBDingApplyMapper, TBDin
|
|
|
if (Objects.nonNull(tbDing)) {
|
|
|
if (tbDingApply.getType() == InOutTypeEnum.IN) {
|
|
|
tbDing.setSignInTime(tbDingApply.getApplyTime());
|
|
|
+ tbDing.setSignInAddress("(补卡)");
|
|
|
} else if (tbDingApply.getType() == InOutTypeEnum.OUT) {
|
|
|
tbDing.setSignOutTime(tbDingApply.getApplyTime());
|
|
|
+ tbDing.setSignOutAddress("(补卡)");
|
|
|
}
|
|
|
tbDingService.updateById(tbDing);
|
|
|
} else {
|
|
@@ -252,6 +254,13 @@ public class TBDingApplyServiceImpl extends ServiceImpl<TBDingApplyMapper, TBDin
|
|
|
TBUserArchives tbUserArchives = tbUserArchivesService.getOne(new QueryWrapper<TBUserArchives>().lambda().eq(TBUserArchives::getMobileNumber, sysUser.getMobileNumber()));
|
|
|
tbDing = new TBDing(tbDingApply.getSopNo(), tbDingApply.getCrmNo(), tbCrm.getServiceId(), tbUserArchives.getId(), sysRoleList.get(0).getType(), sysUser.getId(), tfCustomFlowEntity.getFlowId());
|
|
|
tbDing.setSignDate(DateFormatUtils.format(tbDingApply.getApplyTime(), SystemConstant.DEFAULT_DATE_DAY_PATTERN));
|
|
|
+ if (tbDingApply.getType() == InOutTypeEnum.IN) {
|
|
|
+ tbDing.setSignInTime(tbDingApply.getApplyTime());
|
|
|
+ tbDing.setSignInAddress("(补卡)");
|
|
|
+ } else if (tbDingApply.getType() == InOutTypeEnum.OUT) {
|
|
|
+ tbDing.setSignOutTime(tbDingApply.getApplyTime());
|
|
|
+ tbDing.setSignOutAddress("(补卡)");
|
|
|
+ }
|
|
|
tbDingService.save(tbDing);
|
|
|
tbDingApply.setDingId(tbDing.getId());
|
|
|
}
|