Browse Source

fix:[试验管理][填报表单]更换归属人

master
15881625488@163.com 1 week ago
parent
commit
b0f002706c
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormFillServiceImpl.java

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

@ -224,12 +224,17 @@ public class StudyFormFillServiceImpl extends ServiceImpl
if (studyFormFillOld.getBdzt().equals(StudyFormFillBdztEnum.dfz.getValue()) || studyFormFillOld.getBdzt().equals(StudyFormFillBdztEnum.yfz.getValue())) {
throw new ServiceException("表单已废止或待废止,不能更换归属人");
}
//稽查轨迹
Map<String, String> formData = new LinkedHashMap<>();
formData.put("新归属人",studyFormFill.getRemark());
formData.put("原归属人",studyFormFillOld.getRemark());
formData.put("原因",studyFormFill.getRemark());
//是否验证新的归属人是否属于该实验 todo
studyFormFillOld.setUserId(studyFormFill.getUserId());
studyFormFillOld.setUserMc(studyFormFill.getUserMc());
this.updateById(studyFormFillOld);
//稽查轨迹
Map<String, String> formData = new LinkedHashMap<>();
studyFormFillJcgjService.saveJcgj(studyFormFillOld.getId(), JcgjlxEnum.lc.getValue(), "更换归属人", JcmcysEnum.orange.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName());
//签名信息
studyFormFillQmxxService.saveQmxx(studyFormFillOld.getId(),"更换归属人",SecurityUtils.getUserId(),SecurityUtils.getNickName(),studyFormFill.getRemark());

Loading…
Cancel
Save