|
|
@ -587,7 +587,6 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public void updateBdnr(StudyFormUpdateForm form) { |
|
|
public void updateBdnr(StudyFormUpdateForm form) { |
|
|
Date now =new Date(); |
|
|
|
|
|
SysUser qmr = SecurityUtils.getLoginUser().getSysUser(); |
|
|
SysUser qmr = SecurityUtils.getLoginUser().getSysUser(); |
|
|
JSONObject bdnr = JSONObject.parseObject(form.getBdnr()); |
|
|
JSONObject bdnr = JSONObject.parseObject(form.getBdnr()); |
|
|
if(StringUtils.isNoneBlank(form.getZdxgjl())) { |
|
|
if(StringUtils.isNoneBlank(form.getZdxgjl())) { |
|
|
@ -615,7 +614,7 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
formDataEn.put("原值", jsonObject.getString("oldValue")); |
|
|
formDataEn.put("原值", jsonObject.getString("oldValue")); |
|
|
formDataEn.put("新值", jsonObject.getString("value")); |
|
|
formDataEn.put("新值", jsonObject.getString("value")); |
|
|
formDataEn.put("原因", jsonObject.getString("reason")); |
|
|
formDataEn.put("原因", jsonObject.getString("reason")); |
|
|
studyFormApplyJcgjs.add(studyFormApplyJcgjService.getJcgj(now,studyFormApplyOld, JcgjlxEnum.xg.getValue(), "修改记录", JcmcysEnum.orange.getValue(), JctUtil.formatStr(formData), StudyFormUtil.getJcnrEn(formDataEn), qmr, null)); |
|
|
|
|
|
|
|
|
studyFormApplyJcgjs.add(studyFormApplyJcgjService.getJcgj(jsonObject.getDate("time"),studyFormApplyOld, JcgjlxEnum.xg.getValue(), "修改记录", JcmcysEnum.orange.getValue(), JctUtil.formatStr(formData), StudyFormUtil.getJcnrEn(formDataEn), qmr, null)); |
|
|
} else { |
|
|
} else { |
|
|
//zh |
|
|
//zh |
|
|
formData.put("字段名", jsonObject.getString("fieldCn")); |
|
|
formData.put("字段名", jsonObject.getString("fieldCn")); |
|
|
@ -625,7 +624,7 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
formDataEn.put("字段名", jsonObject.getString("fieldEn")); |
|
|
formDataEn.put("字段名", jsonObject.getString("fieldEn")); |
|
|
formDataEn.put("填入值", jsonObject.getString("value")); |
|
|
formDataEn.put("填入值", jsonObject.getString("value")); |
|
|
formDataEn.put("填写人", qmr.getNickName()); |
|
|
formDataEn.put("填写人", qmr.getNickName()); |
|
|
studyFormApplyJcgjs.add(studyFormApplyJcgjService.getJcgj(now,studyFormApplyOld, JcgjlxEnum.bj.getValue(), "填写", JcmcysEnum.green.getValue(), JctUtil.formatStr(formData), StudyFormUtil.getJcnrEn(formDataEn), null, null)); |
|
|
|
|
|
|
|
|
studyFormApplyJcgjs.add(studyFormApplyJcgjService.getJcgj(jsonObject.getDate("time"),studyFormApplyOld, JcgjlxEnum.bj.getValue(), "填写", JcmcysEnum.green.getValue(), JctUtil.formatStr(formData), StudyFormUtil.getJcnrEn(formDataEn), qmr, null)); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
studyFormApplyJcgjService.saveBatchWithLog(studyFormApplyJcgjs); |
|
|
studyFormApplyJcgjService.saveBatchWithLog(studyFormApplyJcgjs); |
|
|
@ -637,7 +636,6 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public void updateFhyjjl(StudyFormUpdateForm form) { |
|
|
public void updateFhyjjl(StudyFormUpdateForm form) { |
|
|
Date now =new Date(); |
|
|
|
|
|
SysUser qmr = SecurityUtils.getLoginUser().getSysUser(); |
|
|
SysUser qmr = SecurityUtils.getLoginUser().getSysUser(); |
|
|
//更新复核意见 |
|
|
//更新复核意见 |
|
|
baseMapper.updateFhyjjl(form.getId(), form.getFhyjjl()); |
|
|
baseMapper.updateFhyjjl(form.getId(), form.getFhyjjl()); |
|
|
@ -653,7 +651,7 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
//en |
|
|
//en |
|
|
formDataEn.put("字段名", jsonObject.getString("fieldEn")); |
|
|
formDataEn.put("字段名", jsonObject.getString("fieldEn")); |
|
|
formDataEn.put("复核意见", jsonObject.getString("content")); |
|
|
formDataEn.put("复核意见", jsonObject.getString("content")); |
|
|
studyFormApplyJcgjs.add(studyFormApplyJcgjService.getJcgj(now,studyFormApplyOld, JcgjlxEnum.lc.getValue(), "复核意见", JcmcysEnum.blue.getValue(), JctUtil.formatStr(formData), StudyFormUtil.getJcnrEn(formDataEn), qmr, null)); |
|
|
|
|
|
|
|
|
studyFormApplyJcgjs.add(studyFormApplyJcgjService.getJcgj(jsonObject.getDate("time"),studyFormApplyOld, JcgjlxEnum.lc.getValue(), "复核意见", JcmcysEnum.blue.getValue(), JctUtil.formatStr(formData), StudyFormUtil.getJcnrEn(formDataEn), qmr, null)); |
|
|
} else if (StringUtils.isNoneBlank(form.getReply())){ |
|
|
} else if (StringUtils.isNoneBlank(form.getReply())){ |
|
|
JSONObject jsonObject = JSONArray.parseArray(form.getReply()).getJSONObject(0); |
|
|
JSONObject jsonObject = JSONArray.parseArray(form.getReply()).getJSONObject(0); |
|
|
//zh |
|
|
//zh |
|
|
@ -662,7 +660,7 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
//en |
|
|
//en |
|
|
formDataEn.put("字段名", jsonObject.getString("fieldEn")); |
|
|
formDataEn.put("字段名", jsonObject.getString("fieldEn")); |
|
|
formDataEn.put("意见回复", jsonObject.getString("reply")); |
|
|
formDataEn.put("意见回复", jsonObject.getString("reply")); |
|
|
studyFormApplyJcgjs.add(studyFormApplyJcgjService.getJcgj(now,studyFormApplyOld, JcgjlxEnum.lc.getValue(), "意见回复", JcmcysEnum.blue.getValue(), JctUtil.formatStr(formData), StudyFormUtil.getJcnrEn(formDataEn), qmr, null)); |
|
|
|
|
|
|
|
|
studyFormApplyJcgjs.add(studyFormApplyJcgjService.getJcgj(jsonObject.getDate("time"),studyFormApplyOld, JcgjlxEnum.lc.getValue(), "意见回复", JcmcysEnum.blue.getValue(), JctUtil.formatStr(formData), StudyFormUtil.getJcnrEn(formDataEn), qmr, null)); |
|
|
} |
|
|
} |
|
|
studyFormApplyJcgjService.saveBatchWithLog(studyFormApplyJcgjs); |
|
|
studyFormApplyJcgjService.saveBatchWithLog(studyFormApplyJcgjs); |
|
|
} |
|
|
} |
|
|
|