|
@@ -71,6 +71,9 @@ public class EnrollmentUserInfoAuditService extends ServiceImpl<EnrollmentUserIn
|
|
|
@Resource
|
|
|
private IFlowableApi flowTaskService;
|
|
|
|
|
|
+ @Resource
|
|
|
+ private EnrollmentRegistrationMapper enrollmentRegistrationMapper;
|
|
|
+
|
|
|
|
|
|
public void updateInfoAgree(EnrollmentUserInfoAudit registration) throws ApiException {
|
|
|
UserDTO userDTO = SpringUtil.getBean(IUserApi.class).getById(registration.getUserId());
|
|
@@ -105,6 +108,8 @@ public class EnrollmentUserInfoAuditService extends ServiceImpl<EnrollmentUserIn
|
|
|
entity.setId(registration.getId()); // 目标记录ID
|
|
|
String status = registration.getStatus();
|
|
|
mapper.deleteById(registration.getId());
|
|
|
+ //更新提交审批的时间
|
|
|
+ enrollmentRegistrationMapper.updateApprovalTime(registration.getUserId());
|
|
|
String userId = registration.getUserId();
|
|
|
//删除旧数据
|
|
|
eduInfoService.remove(
|
|
@@ -245,16 +250,14 @@ public class EnrollmentUserInfoAuditService extends ServiceImpl<EnrollmentUserIn
|
|
|
|
|
|
public void updateInfoReject(EnrollmentUserInfoAudit registration) throws ApiException {
|
|
|
UserDTO userDTO = SpringUtil.getBean(IUserApi.class).getById(registration.getUserId());
|
|
|
- //审批不通过后,删除所有数据,重置状态,恢复审批前的数据
|
|
|
EnrollmentUserInfoAudit enrollmentUserInfoAudit = new EnrollmentUserInfoAudit();
|
|
|
- //mapper.deleteById(registration.getId());
|
|
|
enrollmentUserInfoAudit.setId(registration.getId());
|
|
|
enrollmentUserInfoAudit.setStatus("4");
|
|
|
mapper.updateById(enrollmentUserInfoAudit);
|
|
|
- //SpringUtil.getBean(IWorkAttachmentApi.class).deleteByAttachmentId(registration.getId());
|
|
|
String userId = registration.getUserId();
|
|
|
String status = "4";
|
|
|
sendNotify(userDTO,registration.getProcessDefinitionId());
|
|
|
+ enrollmentRegistrationMapper.updateApprovalTime(registration.getUserId());
|
|
|
// 修改数据状态
|
|
|
eduInfoService.update(
|
|
|
new LambdaUpdateWrapper<EnrollmentEduInfo>()
|