Browse Source

fix:[试验管理]预填填报,修补

master
15881625488@163.com 4 days ago
parent
commit
3a90202155
2 changed files with 10 additions and 0 deletions
  1. +4
    -0
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormApplyServiceImpl.java
  2. +6
    -0
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPlanServiceImpl.java

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

@ -305,6 +305,10 @@ public class StudyFormApplyServiceImpl extends ServiceImpl
@Override
public void tj(StudyFormApply studyFormApply) {
//验证签名人密码 todo
if(studyFormApply.getId()==null){
studyFormApply.setUserId(SecurityUtils.getUserId());
studyFormApply.setUserMc(SecurityUtils.getNickName());
}
studyFormApply.setBdzt(StudyFormApplyBdztEnum.ytj.getValue());
studyFormApply.setTjsj(new Date());
this.saveOrUpdate(studyFormApply);

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

@ -184,6 +184,10 @@ public class StudyFormPlanServiceImpl extends ServiceImpl
@Override
public void tj(StudyFormPlan studyFormPlan) {
//验证签名人密码 todo
if(studyFormPlan.getId()==null){
studyFormPlan.setUserId(SecurityUtils.getUserId());
studyFormPlan.setUserMc(SecurityUtils.getNickName());
}
studyFormPlan.setBdzt(StudyFormPlanBdztEnum.ytj.getValue());
studyFormPlan.setTjsj(new Date());
this.saveOrUpdate(studyFormPlan);
@ -274,6 +278,8 @@ public class StudyFormPlanServiceImpl extends ServiceImpl
if (!studyFormPlanOld.getBdzt().equals(StudyFormPlanBdztEnum.ywcfh.getValue())) {
throw new ServiceException("表单不是已完成(经复核)状态,不能审阅");
}
studyFormPlanOld.setBdnr(studyFormPlan.getBdnr());
this.updateById(studyFormPlanOld);
//稽查轨迹
Map<String, String> formData = new LinkedHashMap<>();
formData.put("备注",studyFormPlan.getRemark());

Loading…
Cancel
Save