|
|
@ -68,7 +68,7 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
if (form.getStudySubjectId() != null && form.getStudySubjectId().longValue() > 0) { |
|
|
if (form.getStudySubjectId() != null && form.getStudySubjectId().longValue() > 0) { |
|
|
queryWrapper.eq("t.study_subject_id", form.getStudySubjectId()); |
|
|
queryWrapper.eq("t.study_subject_id", form.getStudySubjectId()); |
|
|
} |
|
|
} |
|
|
if (form.getSfbl() != null && form.getSfbl().intValue() > 0) { |
|
|
|
|
|
|
|
|
if (StringUtils.isNoneBlank(form.getSfbl())) { |
|
|
queryWrapper.eq("t.sfbl", form.getSfbl()); |
|
|
queryWrapper.eq("t.sfbl", form.getSfbl()); |
|
|
} |
|
|
} |
|
|
if (StringUtils.isNoneBlank(form.getBdbh())) { |
|
|
if (StringUtils.isNoneBlank(form.getBdbh())) { |
|
|
@ -117,8 +117,9 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public void jq(StudyFormApply studyFormApply) { |
|
|
public void jq(StudyFormApply studyFormApply) { |
|
|
|
|
|
SysUser qmr=SecurityUtils.getLoginUser().getSysUser(); |
|
|
//验证签名人密码 |
|
|
//验证签名人密码 |
|
|
checkPassword(SecurityUtils.getLoginUser().getSysUser(), studyFormApply.getQmrmm()); |
|
|
|
|
|
|
|
|
checkPassword(qmr, studyFormApply.getQmrmm()); |
|
|
if (studyFormApply.getId() == null || studyFormApply.getId().longValue() < 0) { |
|
|
if (studyFormApply.getId() == null || studyFormApply.getId().longValue() < 0) { |
|
|
throw new ServiceException("参数id不正确"); |
|
|
throw new ServiceException("参数id不正确"); |
|
|
} |
|
|
} |
|
|
@ -130,11 +131,9 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
throw new ServiceException("表单不是申请状态,不能加签"); |
|
|
throw new ServiceException("表单不是申请状态,不能加签"); |
|
|
} |
|
|
} |
|
|
//稽查轨迹 |
|
|
//稽查轨迹 |
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
|
|
|
formData.put("备注", studyFormApply.getRemark()); |
|
|
|
|
|
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.bj.getValue(), studyFormApply.getQmyy(), JcmcysEnum.orange.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName()); |
|
|
|
|
|
|
|
|
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.bj.getValue(), studyFormApply.getQmyy(), JcmcysEnum.orange.getValue(), null, qmr, studyFormApply.getRemark(),null); |
|
|
//签名信息 |
|
|
//签名信息 |
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApply.getId(), studyFormApply.getQmyy(), SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormApply.getRemark()); |
|
|
|
|
|
|
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApply.getId(), studyFormApply.getQmyy(), qmr, studyFormApply.getRemark()); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -145,8 +144,9 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public void fz(StudyFormApply studyFormApply) { |
|
|
public void fz(StudyFormApply studyFormApply) { |
|
|
|
|
|
SysUser qmr=SecurityUtils.getLoginUser().getSysUser(); |
|
|
//验证签名人密码 |
|
|
//验证签名人密码 |
|
|
checkPassword(SecurityUtils.getLoginUser().getSysUser(), studyFormApply.getQmrmm()); |
|
|
|
|
|
|
|
|
checkPassword(qmr, studyFormApply.getQmrmm()); |
|
|
if (studyFormApply.getId() == null || studyFormApply.getId().longValue() < 0) { |
|
|
if (studyFormApply.getId() == null || studyFormApply.getId().longValue() < 0) { |
|
|
throw new ServiceException("参数id不正确"); |
|
|
throw new ServiceException("参数id不正确"); |
|
|
} |
|
|
} |
|
|
@ -160,11 +160,9 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
studyFormApplyOld.setBdzt(StudyFormApplyBdztEnum.dfz.getValue()); |
|
|
studyFormApplyOld.setBdzt(StudyFormApplyBdztEnum.dfz.getValue()); |
|
|
this.updateById(studyFormApplyOld); |
|
|
this.updateById(studyFormApplyOld); |
|
|
//稽查轨迹 |
|
|
//稽查轨迹 |
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
|
|
|
formData.put("备注", studyFormApply.getRemark()); |
|
|
|
|
|
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "申请废止", JcmcysEnum.orange.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName()); |
|
|
|
|
|
|
|
|
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "申请废止", JcmcysEnum.orange.getValue(), null, qmr, studyFormApply.getRemark(),null); |
|
|
//签名信息 |
|
|
//签名信息 |
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApply.getId(), "申请废止", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormApply.getRemark()); |
|
|
|
|
|
|
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApply.getId(), "申请废止", qmr, studyFormApply.getRemark()); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -176,8 +174,9 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public void qrfz(StudyFormApplyShfzForm form) { |
|
|
public void qrfz(StudyFormApplyShfzForm form) { |
|
|
|
|
|
SysUser qmr=SecurityUtils.getLoginUser().getSysUser(); |
|
|
//验证签名人密码 |
|
|
//验证签名人密码 |
|
|
checkPassword(SecurityUtils.getLoginUser().getSysUser(), form.getQmrmm()); |
|
|
|
|
|
|
|
|
checkPassword(qmr, form.getQmrmm()); |
|
|
if (form.getId() == null || form.getId().longValue() < 0) { |
|
|
if (form.getId() == null || form.getId().longValue() < 0) { |
|
|
throw new ServiceException("参数id不正确"); |
|
|
throw new ServiceException("参数id不正确"); |
|
|
} |
|
|
} |
|
|
@ -192,21 +191,16 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
studyFormApplyOld.setBdzt(StudyFormApplyBdztEnum.yfz.getValue()); |
|
|
studyFormApplyOld.setBdzt(StudyFormApplyBdztEnum.yfz.getValue()); |
|
|
this.updateById(studyFormApplyOld); |
|
|
this.updateById(studyFormApplyOld); |
|
|
//稽查轨迹 |
|
|
//稽查轨迹 |
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
|
|
|
formData.put("原因", form.getRemark()); |
|
|
|
|
|
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "废止通过", JcmcysEnum.green.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName()); |
|
|
|
|
|
|
|
|
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "废止通过", JcmcysEnum.green.getValue(),null, qmr, form.getRemark(),null); |
|
|
//签名信息 |
|
|
//签名信息 |
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "废止通过", SecurityUtils.getUserId(), SecurityUtils.getNickName(), form.getRemark()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "废止通过", qmr, form.getRemark()); |
|
|
} else { |
|
|
} else { |
|
|
studyFormApplyOld.setBdzt(StudyFormApplyBdztEnum.tbz.getValue()); |
|
|
studyFormApplyOld.setBdzt(StudyFormApplyBdztEnum.tbz.getValue()); |
|
|
this.updateById(studyFormApplyOld); |
|
|
this.updateById(studyFormApplyOld); |
|
|
//稽查轨迹 |
|
|
//稽查轨迹 |
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
|
|
|
formData.put("原因", form.getRemark()); |
|
|
|
|
|
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "废止拒绝", JcmcysEnum.red.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName()); |
|
|
|
|
|
|
|
|
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "废止拒绝", JcmcysEnum.red.getValue(), null, qmr, form.getRemark(),null); |
|
|
//签名信息 |
|
|
//签名信息 |
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "废止拒绝", SecurityUtils.getUserId(), SecurityUtils.getNickName(), form.getRemark()); |
|
|
|
|
|
|
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "废止拒绝", qmr, form.getRemark()); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -220,8 +214,9 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public void ghgsr(StudyFormApply studyFormApply) { |
|
|
public void ghgsr(StudyFormApply studyFormApply) { |
|
|
|
|
|
SysUser qmr=SecurityUtils.getLoginUser().getSysUser(); |
|
|
//验证签名人密码 |
|
|
//验证签名人密码 |
|
|
checkPassword(SecurityUtils.getLoginUser().getSysUser(), studyFormApply.getQmrmm()); |
|
|
|
|
|
|
|
|
checkPassword(qmr, studyFormApply.getQmrmm()); |
|
|
if (studyFormApply.getId() == null || studyFormApply.getId().longValue() < 0) { |
|
|
if (studyFormApply.getId() == null || studyFormApply.getId().longValue() < 0) { |
|
|
throw new ServiceException("参数id不正确"); |
|
|
throw new ServiceException("参数id不正确"); |
|
|
} |
|
|
} |
|
|
@ -232,20 +227,19 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
if (studyFormApplyOld.getBdzt().equals(StudyFormApplyBdztEnum.dfz.getValue()) || studyFormApplyOld.getBdzt().equals(StudyFormApplyBdztEnum.yfz.getValue())) { |
|
|
if (studyFormApplyOld.getBdzt().equals(StudyFormApplyBdztEnum.dfz.getValue()) || studyFormApplyOld.getBdzt().equals(StudyFormApplyBdztEnum.yfz.getValue())) { |
|
|
throw new ServiceException("表单已废止或待废止,不能更换归属人"); |
|
|
throw new ServiceException("表单已废止或待废止,不能更换归属人"); |
|
|
} |
|
|
} |
|
|
//稽查轨迹 |
|
|
|
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
|
|
|
formData.put("新归属人", studyFormApply.getUserMc()); |
|
|
|
|
|
formData.put("原归属人", studyFormApplyOld.getUserMc()); |
|
|
|
|
|
formData.put("原因", studyFormApply.getRemark()); |
|
|
|
|
|
|
|
|
|
|
|
//是否验证新的归属人,是否属于该实验? todo |
|
|
//是否验证新的归属人,是否属于该实验? todo |
|
|
studyFormApplyOld.setUserId(studyFormApply.getUserId()); |
|
|
studyFormApplyOld.setUserId(studyFormApply.getUserId()); |
|
|
studyFormApplyOld.setUserMc(studyFormApply.getUserMc()); |
|
|
studyFormApplyOld.setUserMc(studyFormApply.getUserMc()); |
|
|
this.updateById(studyFormApplyOld); |
|
|
this.updateById(studyFormApplyOld); |
|
|
|
|
|
|
|
|
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "更换归属人", JcmcysEnum.orange.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName()); |
|
|
|
|
|
|
|
|
//稽查轨迹 |
|
|
|
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
|
|
|
formData.put("新归属人", studyFormApply.getUserMc()); |
|
|
|
|
|
formData.put("原归属人", studyFormApplyOld.getUserMc()); |
|
|
|
|
|
formData.put("原因", studyFormApply.getRemark()); |
|
|
|
|
|
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "更换归属人", JcmcysEnum.orange.getValue(),formData, qmr, null,null); |
|
|
//签名信息 |
|
|
//签名信息 |
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "更换归属人", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormApply.getRemark()); |
|
|
|
|
|
|
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "更换归属人", qmr, studyFormApply.getRemark()); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -256,12 +250,13 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public void bc(StudyFormApply studyFormApply) { |
|
|
public void bc(StudyFormApply studyFormApply) { |
|
|
|
|
|
SysUser qmr=SecurityUtils.getLoginUser().getSysUser(); |
|
|
if (studyFormApply.getId() != null) { |
|
|
if (studyFormApply.getId() != null) { |
|
|
StudyFormApply studyFormApplyOld = this.queryInfo(studyFormApply.getId()); |
|
|
StudyFormApply studyFormApplyOld = this.queryInfo(studyFormApply.getId()); |
|
|
if (studyFormApplyOld == null) { |
|
|
if (studyFormApplyOld == null) { |
|
|
throw new ServiceException("信息不存在或已删除"); |
|
|
throw new ServiceException("信息不存在或已删除"); |
|
|
} |
|
|
} |
|
|
if (!SecurityUtils.getUserId().equals(studyFormApplyOld.getUserId())) { |
|
|
|
|
|
|
|
|
if (!qmr.getUserId().equals(studyFormApplyOld.getUserId())) { |
|
|
throw new ServiceException("只能操作自己的表单"); |
|
|
throw new ServiceException("只能操作自己的表单"); |
|
|
} |
|
|
} |
|
|
studyFormApplyOld.setBdmc(studyFormApply.getBdmc()); |
|
|
studyFormApplyOld.setBdmc(studyFormApply.getBdmc()); |
|
|
@ -274,31 +269,23 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
//稽查轨迹 |
|
|
//稽查轨迹 |
|
|
List<StudyFormApplyJcgj> studyFormApplyJcgjs = new ArrayList<>(); |
|
|
List<StudyFormApplyJcgj> studyFormApplyJcgjs = new ArrayList<>(); |
|
|
for (ObjectCompareUtil.FieldChange fieldChange : fieldChanges) { |
|
|
for (ObjectCompareUtil.FieldChange fieldChange : fieldChanges) { |
|
|
StudyFormApplyJcgj studyFormApplyJcgj = new StudyFormApplyJcgj(); |
|
|
|
|
|
studyFormApplyJcgj.setFormId(studyFormApply.getId()); |
|
|
|
|
|
studyFormApplyJcgj.setJcgjlx(JcgjlxEnum.xg.getValue()); |
|
|
|
|
|
studyFormApplyJcgj.setJcmc("修改"); |
|
|
|
|
|
studyFormApplyJcgj.setJcmcys(JcmcysEnum.orange.getValue()); |
|
|
|
|
|
studyFormApplyJcgj.setJcnr(fieldChange.toString()); |
|
|
|
|
|
studyFormApplyJcgj.setQmrId(SecurityUtils.getUserId()); |
|
|
|
|
|
studyFormApplyJcgj.setQmrMc(SecurityUtils.getNickName()); |
|
|
|
|
|
studyFormApplyJcgjs.add(studyFormApplyJcgj); |
|
|
|
|
|
|
|
|
studyFormApplyJcgjs.add(studyFormApplyJcgjService.getJcgj(studyFormApply.getId(), JcgjlxEnum.xg.getValue(), "修改", JcmcysEnum.orange.getValue(), fieldChange.toString(), fieldChange.toEnString(), SecurityUtils.getLoginUser().getSysUser(), studyFormApply.getRemark())); |
|
|
} |
|
|
} |
|
|
studyFormApplyJcgjService.saveBatch(studyFormApplyJcgjs); |
|
|
studyFormApplyJcgjService.saveBatch(studyFormApplyJcgjs); |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
studyFormApply.setBdzt(StudyFormApplyBdztEnum.tbz.getValue()); |
|
|
studyFormApply.setBdzt(StudyFormApplyBdztEnum.tbz.getValue()); |
|
|
studyFormApply.setUserId(SecurityUtils.getUserId()); |
|
|
|
|
|
studyFormApply.setUserMc(SecurityUtils.getNickName()); |
|
|
|
|
|
|
|
|
studyFormApply.setUserId(qmr.getUserId()); |
|
|
|
|
|
studyFormApply.setUserMc(qmr.getNickName()); |
|
|
|
|
|
studyFormApply.setUserMcEn(qmr.getUserName()); |
|
|
this.save(studyFormApply); |
|
|
this.save(studyFormApply); |
|
|
//稽查轨迹 |
|
|
//稽查轨迹 |
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
formData.put("备注", studyFormApply.getRemark()); |
|
|
formData.put("备注", studyFormApply.getRemark()); |
|
|
studyFormApplyJcgjService.saveJcgj(studyFormApply.getId(), JcgjlxEnum.lc.getValue(), "填写并保存记录", JcmcysEnum.green.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
studyFormApplyJcgjService.saveJcgj(studyFormApply.getId(), JcgjlxEnum.lc.getValue(), "填写并保存记录", JcmcysEnum.green.getValue(), null, qmr, studyFormApply.getRemark(),null); |
|
|
} |
|
|
} |
|
|
//签名信息 |
|
|
//签名信息 |
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApply.getId(), "填写并保存记录", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormApply.getRemark()); |
|
|
|
|
|
|
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApply.getId(), "填写并保存记录", qmr, studyFormApply.getRemark()); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -310,21 +297,20 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public void tj(StudyFormApply studyFormApply) { |
|
|
public void tj(StudyFormApply studyFormApply) { |
|
|
|
|
|
SysUser qmr=SecurityUtils.getLoginUser().getSysUser(); |
|
|
//验证签名人密码 |
|
|
//验证签名人密码 |
|
|
checkPassword(SecurityUtils.getLoginUser().getSysUser(), studyFormApply.getQmrmm()); |
|
|
|
|
|
|
|
|
checkPassword(qmr, studyFormApply.getQmrmm()); |
|
|
if (studyFormApply.getId() == null) { |
|
|
if (studyFormApply.getId() == null) { |
|
|
studyFormApply.setUserId(SecurityUtils.getUserId()); |
|
|
|
|
|
|
|
|
studyFormApply.setUserId(qmr.getUserId()); |
|
|
studyFormApply.setUserMc(SecurityUtils.getNickName()); |
|
|
studyFormApply.setUserMc(SecurityUtils.getNickName()); |
|
|
} |
|
|
} |
|
|
studyFormApply.setBdzt(StudyFormApplyBdztEnum.ytj.getValue()); |
|
|
studyFormApply.setBdzt(StudyFormApplyBdztEnum.ytj.getValue()); |
|
|
studyFormApply.setTjsj(new Date()); |
|
|
studyFormApply.setTjsj(new Date()); |
|
|
this.saveOrUpdate(studyFormApply); |
|
|
this.saveOrUpdate(studyFormApply); |
|
|
//稽查轨迹 |
|
|
//稽查轨迹 |
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
|
|
|
formData.put("备注", studyFormApply.getRemark()); |
|
|
|
|
|
studyFormApplyJcgjService.saveJcgj(studyFormApply.getId(), JcgjlxEnum.lc.getValue(), "填写并提交记录", JcmcysEnum.green.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName()); |
|
|
|
|
|
|
|
|
studyFormApplyJcgjService.saveJcgj(studyFormApply.getId(), JcgjlxEnum.lc.getValue(), "填写并提交记录", JcmcysEnum.green.getValue(), null, qmr, studyFormApply.getRemark(),null); |
|
|
//签名信息 |
|
|
//签名信息 |
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApply.getId(), "填写并提交记录", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormApply.getRemark()); |
|
|
|
|
|
|
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApply.getId(), "填写并提交记录", qmr, studyFormApply.getRemark()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -335,8 +321,9 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public void fhtg(StudyFormApply studyFormApply) { |
|
|
public void fhtg(StudyFormApply studyFormApply) { |
|
|
|
|
|
SysUser qmr=SecurityUtils.getLoginUser().getSysUser(); |
|
|
//验证签名人密码 |
|
|
//验证签名人密码 |
|
|
checkPassword(SecurityUtils.getLoginUser().getSysUser(), studyFormApply.getQmrmm()); |
|
|
|
|
|
|
|
|
checkPassword(qmr, studyFormApply.getQmrmm()); |
|
|
if (studyFormApply.getId() == null || studyFormApply.getId().longValue() < 0) { |
|
|
if (studyFormApply.getId() == null || studyFormApply.getId().longValue() < 0) { |
|
|
throw new ServiceException("参数id不正确"); |
|
|
throw new ServiceException("参数id不正确"); |
|
|
} |
|
|
} |
|
|
@ -350,11 +337,9 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
studyFormApplyOld.setBdzt(StudyFormApplyBdztEnum.yfh.getValue()); |
|
|
studyFormApplyOld.setBdzt(StudyFormApplyBdztEnum.yfh.getValue()); |
|
|
this.updateById(studyFormApplyOld); |
|
|
this.updateById(studyFormApplyOld); |
|
|
//稽查轨迹 |
|
|
//稽查轨迹 |
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
|
|
|
formData.put("备注", studyFormApply.getRemark()); |
|
|
|
|
|
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "复核通过", JcmcysEnum.green.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName()); |
|
|
|
|
|
|
|
|
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "复核通过", JcmcysEnum.green.getValue(), null, qmr, studyFormApply.getRemark(),null); |
|
|
//签名信息 |
|
|
//签名信息 |
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "复核通过", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormApply.getRemark()); |
|
|
|
|
|
|
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "复核通过", qmr, studyFormApply.getRemark()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -365,8 +350,9 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public void fhjj(StudyFormApply studyFormApply) { |
|
|
public void fhjj(StudyFormApply studyFormApply) { |
|
|
|
|
|
SysUser qmr=SecurityUtils.getLoginUser().getSysUser(); |
|
|
//验证签名人密码 |
|
|
//验证签名人密码 |
|
|
checkPassword(SecurityUtils.getLoginUser().getSysUser(), studyFormApply.getQmrmm()); |
|
|
|
|
|
|
|
|
checkPassword(qmr, studyFormApply.getQmrmm()); |
|
|
if (studyFormApply.getId() == null || studyFormApply.getId().longValue() < 0) { |
|
|
if (studyFormApply.getId() == null || studyFormApply.getId().longValue() < 0) { |
|
|
throw new ServiceException("参数id不正确"); |
|
|
throw new ServiceException("参数id不正确"); |
|
|
} |
|
|
} |
|
|
@ -382,9 +368,9 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
//稽查轨迹 |
|
|
//稽查轨迹 |
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
formData.put("原因", studyFormApply.getRemark()); |
|
|
formData.put("原因", studyFormApply.getRemark()); |
|
|
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "复核拒绝", JcmcysEnum.red.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName()); |
|
|
|
|
|
|
|
|
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "复核拒绝", JcmcysEnum.red.getValue(), formData, qmr, null,null); |
|
|
//签名信息 |
|
|
//签名信息 |
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "复核拒绝", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormApply.getRemark()); |
|
|
|
|
|
|
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "复核拒绝", qmr, studyFormApply.getRemark()); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -395,8 +381,9 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public void sy(StudyFormApply studyFormApply) { |
|
|
public void sy(StudyFormApply studyFormApply) { |
|
|
|
|
|
SysUser qmr=SecurityUtils.getLoginUser().getSysUser(); |
|
|
//验证签名人密码 |
|
|
//验证签名人密码 |
|
|
checkPassword(SecurityUtils.getLoginUser().getSysUser(), studyFormApply.getQmrmm()); |
|
|
|
|
|
|
|
|
checkPassword(qmr, studyFormApply.getQmrmm()); |
|
|
if (studyFormApply.getId() == null || studyFormApply.getId().longValue() < 0) { |
|
|
if (studyFormApply.getId() == null || studyFormApply.getId().longValue() < 0) { |
|
|
throw new ServiceException("参数id不正确"); |
|
|
throw new ServiceException("参数id不正确"); |
|
|
} |
|
|
} |
|
|
@ -412,9 +399,9 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
//稽查轨迹 |
|
|
//稽查轨迹 |
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
formData.put("备注", studyFormApply.getRemark()); |
|
|
formData.put("备注", studyFormApply.getRemark()); |
|
|
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "已审阅", JcmcysEnum.green.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName()); |
|
|
|
|
|
|
|
|
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "已审阅", JcmcysEnum.green.getValue(), null, qmr, studyFormApply.getRemark(),null); |
|
|
//签名信息 |
|
|
//签名信息 |
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "已审阅", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormApply.getRemark()); |
|
|
|
|
|
|
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "已审阅", qmr, studyFormApply.getRemark()); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -426,8 +413,9 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public void shtg(StudyFormApply studyFormApply) { |
|
|
public void shtg(StudyFormApply studyFormApply) { |
|
|
|
|
|
SysUser qmr=SecurityUtils.getLoginUser().getSysUser(); |
|
|
//验证签名人密码 |
|
|
//验证签名人密码 |
|
|
checkPassword(SecurityUtils.getLoginUser().getSysUser(), studyFormApply.getQmrmm()); |
|
|
|
|
|
|
|
|
checkPassword(qmr, studyFormApply.getQmrmm()); |
|
|
if (studyFormApply.getId() == null || studyFormApply.getId().longValue() < 0) { |
|
|
if (studyFormApply.getId() == null || studyFormApply.getId().longValue() < 0) { |
|
|
throw new ServiceException("参数id不正确"); |
|
|
throw new ServiceException("参数id不正确"); |
|
|
} |
|
|
} |
|
|
@ -441,11 +429,9 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
studyFormApplyOld.setBdzt(StudyFormApplyBdztEnum.ywc.getValue()); |
|
|
studyFormApplyOld.setBdzt(StudyFormApplyBdztEnum.ywc.getValue()); |
|
|
this.updateById(studyFormApplyOld); |
|
|
this.updateById(studyFormApplyOld); |
|
|
//稽查轨迹 |
|
|
//稽查轨迹 |
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
|
|
|
formData.put("备注", studyFormApply.getRemark()); |
|
|
|
|
|
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "审核通过", JcmcysEnum.green.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName()); |
|
|
|
|
|
|
|
|
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "审核通过", JcmcysEnum.green.getValue(),null, qmr, studyFormApply.getRemark(),null); |
|
|
//签名信息 |
|
|
//签名信息 |
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "审核通过", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormApply.getRemark()); |
|
|
|
|
|
|
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "审核通过", qmr, studyFormApply.getRemark()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -456,8 +442,9 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public void shjj(StudyFormApply studyFormApply) { |
|
|
public void shjj(StudyFormApply studyFormApply) { |
|
|
|
|
|
SysUser qmr=SecurityUtils.getLoginUser().getSysUser(); |
|
|
//验证签名人密码 |
|
|
//验证签名人密码 |
|
|
checkPassword(SecurityUtils.getLoginUser().getSysUser(), studyFormApply.getQmrmm()); |
|
|
|
|
|
|
|
|
checkPassword(qmr, studyFormApply.getQmrmm()); |
|
|
if (studyFormApply.getId() == null || studyFormApply.getId().longValue() < 0) { |
|
|
if (studyFormApply.getId() == null || studyFormApply.getId().longValue() < 0) { |
|
|
throw new ServiceException("参数id不正确"); |
|
|
throw new ServiceException("参数id不正确"); |
|
|
} |
|
|
} |
|
|
@ -473,9 +460,9 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
//稽查轨迹 |
|
|
//稽查轨迹 |
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
formData.put("原因", studyFormApply.getRemark()); |
|
|
formData.put("原因", studyFormApply.getRemark()); |
|
|
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "审核拒绝", JcmcysEnum.red.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName()); |
|
|
|
|
|
|
|
|
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "审核拒绝", JcmcysEnum.red.getValue(), formData, qmr, studyFormApply.getRemark(),null); |
|
|
//签名信息 |
|
|
//签名信息 |
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "审核拒绝", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormApply.getRemark()); |
|
|
|
|
|
|
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "审核拒绝", qmr, studyFormApply.getRemark()); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|