Browse Source

fix:[表单管理]优化

master
15881625488@163.com 1 month ago
parent
commit
50e359d54d
4 changed files with 8 additions and 0 deletions
  1. +2
    -0
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormApplyServiceImpl.java
  2. +2
    -0
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormFillServiceImpl.java
  3. +2
    -0
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPlanServiceImpl.java
  4. +2
    -0
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPreServiceImpl.java

+ 2
- 0
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormApplyServiceImpl.java View File

@ -339,6 +339,7 @@ public class StudyFormApplyServiceImpl extends ServiceImpl
}
studyFormApplyOld.setTemplateId(studyFormApply.getTemplateId());
studyFormApplyOld.setBdnr(studyFormApply.getBdnr());
studyFormApplyOld.setBdsm(studyFormApply.getBdsm());
studyFormApplyOld.setBdzt(StudyFormApplyBdztEnum.tbz.getValue());
this.updateById(studyFormApplyOld);
List<ObjectCompareUtil.FieldChange> fieldChanges = ObjectCompareUtil.compareObjectsNotNull(studyFormApplyOld, studyFormApply);
@ -399,6 +400,7 @@ public class StudyFormApplyServiceImpl extends ServiceImpl
throw new ServiceException("只能操作自己的表单");
}
studyFormApplyOld.setBdmc(studyFormApply.getBdmc());
studyFormApplyOld.setBdsm(studyFormApply.getBdsm());
studyFormApplyOld.setTemplateId(studyFormApply.getTemplateId());
studyFormApplyOld.setBdnr(studyFormApply.getBdnr());
//更新特殊字段

+ 2
- 0
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormFillServiceImpl.java View File

@ -421,6 +421,7 @@ public class StudyFormFillServiceImpl extends ServiceImpl
if (!SecurityUtils.getUserId().equals(studyFormFillOld.getUserId())) {
throw new ServiceException("只能操作自己的表单");
}
studyFormFillOld.setBdsm(studyFormFill.getBdsm());
studyFormFillOld.setBdmc(studyFormFill.getBdmc());
studyFormFillOld.setBdnr(studyFormFill.getBdnr());
studyFormFillOld.setBdzt(StudyFormFillBdztEnum.tbz.getValue());
@ -488,6 +489,7 @@ public class StudyFormFillServiceImpl extends ServiceImpl
throw new ServiceException("只能操作自己的表单");
}
studyFormFillOld.setBdmc(studyFormFill.getBdmc());
studyFormFillOld.setBdsm(studyFormFill.getBdsm());
studyFormFillOld.setBdnr(studyFormFill.getBdnr());
studyFormFillOld.setBdzt(StudyFormFillBdztEnum.tbz.getValue());
this.updateById(studyFormFillOld);

+ 2
- 0
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPlanServiceImpl.java View File

@ -159,6 +159,7 @@ public class StudyFormPlanServiceImpl extends ServiceImpl
throw new ServiceException("只能操作自己的表单");
}
studyFormPlanOld.setBdmc(studyFormPlan.getBdmc());
studyFormPlanOld.setBdsm(studyFormPlan.getBdsm());
studyFormPlanOld.setTemplateId(studyFormPlan.getTemplateId());
studyFormPlanOld.setBdnr(studyFormPlan.getBdnr());
studyFormPlanOld.setBdzt(StudyFormPlanBdztEnum.tbz.getValue());
@ -211,6 +212,7 @@ public class StudyFormPlanServiceImpl extends ServiceImpl
studyFormPlanOld.setBdmc(studyFormPlan.getBdmc());
studyFormPlanOld.setTemplateId(studyFormPlan.getTemplateId());
studyFormPlanOld.setBdnr(studyFormPlan.getBdnr());
studyFormPlanOld.setBdsm(studyFormPlan.getBdsm());
studyFormPlanOld.setBdzt(StudyFormPlanBdztEnum.tbz.getValue());
this.updateById(studyFormPlanOld);
result = studyFormPlanOld;

+ 2
- 0
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPreServiceImpl.java View File

@ -138,6 +138,7 @@ public class StudyFormPreServiceImpl extends ServiceImpl
throw new ServiceException("只能操作自己的表单");
}
studyFormPreOld.setBdmc(studyFormPre.getBdmc());
studyFormPreOld.setBdsm(studyFormPre.getBdsm());
studyFormPreOld.setTemplateId(studyFormPre.getTemplateId());
studyFormPreOld.setBdnr(studyFormPre.getBdnr());
this.updateById(studyFormPreOld);
@ -187,6 +188,7 @@ public class StudyFormPreServiceImpl extends ServiceImpl
throw new ServiceException("只能操作自己的表单");
}
studyFormPreOld.setBdmc(studyFormPre.getBdmc());
studyFormPreOld.setBdsm(studyFormPre.getBdsm());
studyFormPreOld.setTemplateId(studyFormPre.getTemplateId());
studyFormPreOld.setBdnr(studyFormPre.getBdnr());
this.updateById(studyFormPreOld);

Loading…
Cancel
Save