|
|
@ -118,7 +118,7 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
@Override |
|
|
@Override |
|
|
public void jq(StudyFormApply studyFormApply) { |
|
|
public void jq(StudyFormApply studyFormApply) { |
|
|
//验证签名人密码 |
|
|
//验证签名人密码 |
|
|
checkPassword(SecurityUtils.getLoginUser().getSysUser(),studyFormApply.getQmrmm()); |
|
|
|
|
|
|
|
|
checkPassword(SecurityUtils.getLoginUser().getSysUser(), 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不正确"); |
|
|
} |
|
|
} |
|
|
@ -134,7 +134,7 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
formData.put("备注", studyFormApply.getRemark()); |
|
|
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(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName()); |
|
|
//签名信息 |
|
|
//签名信息 |
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApply.getId(),studyFormApply.getQmyy(),SecurityUtils.getUserId(),SecurityUtils.getNickName(),studyFormApply.getRemark()); |
|
|
|
|
|
|
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApply.getId(), studyFormApply.getQmyy(), SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormApply.getRemark()); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -146,7 +146,7 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
@Override |
|
|
@Override |
|
|
public void fz(StudyFormApply studyFormApply) { |
|
|
public void fz(StudyFormApply studyFormApply) { |
|
|
//验证签名人密码 |
|
|
//验证签名人密码 |
|
|
checkPassword(SecurityUtils.getLoginUser().getSysUser(),studyFormApply.getQmrmm()); |
|
|
|
|
|
|
|
|
checkPassword(SecurityUtils.getLoginUser().getSysUser(), 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不正确"); |
|
|
} |
|
|
} |
|
|
@ -164,7 +164,7 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
formData.put("备注", studyFormApply.getRemark()); |
|
|
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(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName()); |
|
|
//签名信息 |
|
|
//签名信息 |
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApply.getId(),"申请废止",SecurityUtils.getUserId(),SecurityUtils.getNickName(),studyFormApply.getRemark()); |
|
|
|
|
|
|
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApply.getId(), "申请废止", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormApply.getRemark()); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -177,7 +177,7 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
@Override |
|
|
@Override |
|
|
public void qrfz(StudyFormApplyShfzForm form) { |
|
|
public void qrfz(StudyFormApplyShfzForm form) { |
|
|
//验证签名人密码 |
|
|
//验证签名人密码 |
|
|
checkPassword(SecurityUtils.getLoginUser().getSysUser(),form.getQmrmm()); |
|
|
|
|
|
|
|
|
checkPassword(SecurityUtils.getLoginUser().getSysUser(), 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不正确"); |
|
|
} |
|
|
} |
|
|
@ -196,7 +196,7 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
formData.put("原因", form.getRemark()); |
|
|
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(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName()); |
|
|
//签名信息 |
|
|
//签名信息 |
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(),"废止通过",SecurityUtils.getUserId(),SecurityUtils.getNickName(),form.getRemark()); |
|
|
|
|
|
|
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "废止通过", SecurityUtils.getUserId(), SecurityUtils.getNickName(), form.getRemark()); |
|
|
|
|
|
|
|
|
} else { |
|
|
} else { |
|
|
studyFormApplyOld.setBdzt(StudyFormApplyBdztEnum.tbz.getValue()); |
|
|
studyFormApplyOld.setBdzt(StudyFormApplyBdztEnum.tbz.getValue()); |
|
|
@ -206,7 +206,7 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
formData.put("原因", form.getRemark()); |
|
|
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(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName()); |
|
|
//签名信息 |
|
|
//签名信息 |
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(),"废止拒绝",SecurityUtils.getUserId(),SecurityUtils.getNickName(),form.getRemark()); |
|
|
|
|
|
|
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "废止拒绝", SecurityUtils.getUserId(), SecurityUtils.getNickName(), form.getRemark()); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -221,7 +221,7 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
@Override |
|
|
@Override |
|
|
public void ghgsr(StudyFormApply studyFormApply) { |
|
|
public void ghgsr(StudyFormApply studyFormApply) { |
|
|
//验证签名人密码 |
|
|
//验证签名人密码 |
|
|
checkPassword(SecurityUtils.getLoginUser().getSysUser(),studyFormApply.getQmrmm()); |
|
|
|
|
|
|
|
|
checkPassword(SecurityUtils.getLoginUser().getSysUser(), 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不正确"); |
|
|
} |
|
|
} |
|
|
@ -234,9 +234,9 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
} |
|
|
} |
|
|
//稽查轨迹 |
|
|
//稽查轨迹 |
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
formData.put("新归属人",studyFormApply.getUserMc()); |
|
|
|
|
|
formData.put("原归属人",studyFormApplyOld.getUserMc()); |
|
|
|
|
|
formData.put("原因",studyFormApply.getRemark()); |
|
|
|
|
|
|
|
|
formData.put("新归属人", studyFormApply.getUserMc()); |
|
|
|
|
|
formData.put("原归属人", studyFormApplyOld.getUserMc()); |
|
|
|
|
|
formData.put("原因", studyFormApply.getRemark()); |
|
|
|
|
|
|
|
|
//是否验证新的归属人,是否属于该实验? todo |
|
|
//是否验证新的归属人,是否属于该实验? todo |
|
|
studyFormApplyOld.setUserId(studyFormApply.getUserId()); |
|
|
studyFormApplyOld.setUserId(studyFormApply.getUserId()); |
|
|
@ -245,7 +245,7 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
|
|
|
|
|
|
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(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName()); |
|
|
//签名信息 |
|
|
//签名信息 |
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(),"更换归属人",SecurityUtils.getUserId(),SecurityUtils.getNickName(),studyFormApply.getRemark()); |
|
|
|
|
|
|
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "更换归属人", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormApply.getRemark()); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -256,13 +256,13 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public void bc(StudyFormApply studyFormApply) { |
|
|
public void bc(StudyFormApply studyFormApply) { |
|
|
if(studyFormApply.getId()!=null){ |
|
|
|
|
|
StudyFormApply studyFormApplyOld=this.queryInfo(studyFormApply.getId()); |
|
|
|
|
|
if(studyFormApplyOld==null){ |
|
|
|
|
|
throw new ServiceException("信息不存在或已删除"); |
|
|
|
|
|
|
|
|
if (studyFormApply.getId() != null) { |
|
|
|
|
|
StudyFormApply studyFormApplyOld = this.queryInfo(studyFormApply.getId()); |
|
|
|
|
|
if (studyFormApplyOld == null) { |
|
|
|
|
|
throw new ServiceException("信息不存在或已删除"); |
|
|
} |
|
|
} |
|
|
if(!SecurityUtils.getUserId().equals(studyFormApplyOld.getUserId())){ |
|
|
|
|
|
throw new ServiceException("只能操作自己的表单"); |
|
|
|
|
|
|
|
|
if (!SecurityUtils.getUserId().equals(studyFormApplyOld.getUserId())) { |
|
|
|
|
|
throw new ServiceException("只能操作自己的表单"); |
|
|
} |
|
|
} |
|
|
studyFormApplyOld.setBdmc(studyFormApply.getBdmc()); |
|
|
studyFormApplyOld.setBdmc(studyFormApply.getBdmc()); |
|
|
studyFormApplyOld.setTemplateId(studyFormApply.getTemplateId()); |
|
|
studyFormApplyOld.setTemplateId(studyFormApply.getTemplateId()); |
|
|
@ -271,35 +271,34 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
this.updateById(studyFormApplyOld); |
|
|
this.updateById(studyFormApplyOld); |
|
|
List<ObjectCompareUtil.FieldChange> fieldChanges = ObjectCompareUtil.compareObjects(studyFormApplyOld, studyFormApply); |
|
|
List<ObjectCompareUtil.FieldChange> fieldChanges = ObjectCompareUtil.compareObjects(studyFormApplyOld, studyFormApply); |
|
|
if (fieldChanges.size() == 0) { |
|
|
if (fieldChanges.size() == 0) { |
|
|
throw new ServiceException("你没有修改任何内容"); |
|
|
|
|
|
|
|
|
//稽查轨迹 |
|
|
|
|
|
List<StudyFormApplyJcgj> studyFormApplyJcgjs = new ArrayList<>(); |
|
|
|
|
|
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); |
|
|
|
|
|
} |
|
|
|
|
|
studyFormApplyJcgjService.saveBatch(studyFormApplyJcgjs); |
|
|
} |
|
|
} |
|
|
//稽查轨迹 |
|
|
|
|
|
List<StudyFormApplyJcgj> studyFormApplyJcgjs = new ArrayList<>(); |
|
|
|
|
|
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); |
|
|
|
|
|
} |
|
|
|
|
|
studyFormApplyJcgjService.saveBatch(studyFormApplyJcgjs); |
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
|
} else { |
|
|
studyFormApply.setBdzt(StudyFormApplyBdztEnum.tbz.getValue()); |
|
|
studyFormApply.setBdzt(StudyFormApplyBdztEnum.tbz.getValue()); |
|
|
studyFormApply.setUserId(SecurityUtils.getUserId()); |
|
|
studyFormApply.setUserId(SecurityUtils.getUserId()); |
|
|
studyFormApply.setUserMc(SecurityUtils.getNickName()); |
|
|
studyFormApply.setUserMc(SecurityUtils.getNickName()); |
|
|
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(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName()); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
//签名信息 |
|
|
|
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApply.getId(),"填写并保存记录",SecurityUtils.getUserId(),SecurityUtils.getNickName(),studyFormApply.getRemark()); |
|
|
|
|
|
|
|
|
//签名信息 |
|
|
|
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApply.getId(), "填写并保存记录", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormApply.getRemark()); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -312,8 +311,8 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
@Override |
|
|
@Override |
|
|
public void tj(StudyFormApply studyFormApply) { |
|
|
public void tj(StudyFormApply studyFormApply) { |
|
|
//验证签名人密码 |
|
|
//验证签名人密码 |
|
|
checkPassword(SecurityUtils.getLoginUser().getSysUser(),studyFormApply.getQmrmm()); |
|
|
|
|
|
if(studyFormApply.getId()==null){ |
|
|
|
|
|
|
|
|
checkPassword(SecurityUtils.getLoginUser().getSysUser(), studyFormApply.getQmrmm()); |
|
|
|
|
|
if (studyFormApply.getId() == null) { |
|
|
studyFormApply.setUserId(SecurityUtils.getUserId()); |
|
|
studyFormApply.setUserId(SecurityUtils.getUserId()); |
|
|
studyFormApply.setUserMc(SecurityUtils.getNickName()); |
|
|
studyFormApply.setUserMc(SecurityUtils.getNickName()); |
|
|
} |
|
|
} |
|
|
@ -322,15 +321,13 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
this.saveOrUpdate(studyFormApply); |
|
|
this.saveOrUpdate(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(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName()); |
|
|
//签名信息 |
|
|
//签名信息 |
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApply.getId(),"填写并提交记录",SecurityUtils.getUserId(),SecurityUtils.getNickName(),studyFormApply.getRemark()); |
|
|
|
|
|
|
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApply.getId(), "填写并提交记录", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormApply.getRemark()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 复核通过 |
|
|
* 复核通过 |
|
|
* |
|
|
* |
|
|
@ -339,7 +336,7 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
@Override |
|
|
@Override |
|
|
public void fhtg(StudyFormApply studyFormApply) { |
|
|
public void fhtg(StudyFormApply studyFormApply) { |
|
|
//验证签名人密码 |
|
|
//验证签名人密码 |
|
|
checkPassword(SecurityUtils.getLoginUser().getSysUser(),studyFormApply.getQmrmm()); |
|
|
|
|
|
|
|
|
checkPassword(SecurityUtils.getLoginUser().getSysUser(), 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不正确"); |
|
|
} |
|
|
} |
|
|
@ -347,17 +344,17 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
if (studyFormApplyOld == null) { |
|
|
if (studyFormApplyOld == null) { |
|
|
throw new ServiceException("表单不存在或已删除"); |
|
|
throw new ServiceException("表单不存在或已删除"); |
|
|
} |
|
|
} |
|
|
if (!studyFormApplyOld.getBdzt().equals(StudyFormApplyBdztEnum.ytj.getValue()) ) { |
|
|
|
|
|
|
|
|
if (!studyFormApplyOld.getBdzt().equals(StudyFormApplyBdztEnum.ytj.getValue())) { |
|
|
throw new ServiceException("表单不是已提交状态,不能复核"); |
|
|
throw new ServiceException("表单不是已提交状态,不能复核"); |
|
|
} |
|
|
} |
|
|
studyFormApplyOld.setBdzt(StudyFormApplyBdztEnum.yfh.getValue()); |
|
|
studyFormApplyOld.setBdzt(StudyFormApplyBdztEnum.yfh.getValue()); |
|
|
this.updateById(studyFormApplyOld); |
|
|
this.updateById(studyFormApplyOld); |
|
|
//稽查轨迹 |
|
|
//稽查轨迹 |
|
|
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(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName()); |
|
|
//签名信息 |
|
|
//签名信息 |
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(),"复核通过",SecurityUtils.getUserId(),SecurityUtils.getNickName(),studyFormApply.getRemark()); |
|
|
|
|
|
|
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "复核通过", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormApply.getRemark()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -369,7 +366,7 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
@Override |
|
|
@Override |
|
|
public void fhjj(StudyFormApply studyFormApply) { |
|
|
public void fhjj(StudyFormApply studyFormApply) { |
|
|
//验证签名人密码 |
|
|
//验证签名人密码 |
|
|
checkPassword(SecurityUtils.getLoginUser().getSysUser(),studyFormApply.getQmrmm()); |
|
|
|
|
|
|
|
|
checkPassword(SecurityUtils.getLoginUser().getSysUser(), 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不正确"); |
|
|
} |
|
|
} |
|
|
@ -377,17 +374,17 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
if (studyFormApplyOld == null) { |
|
|
if (studyFormApplyOld == null) { |
|
|
throw new ServiceException("表单不存在或已删除"); |
|
|
throw new ServiceException("表单不存在或已删除"); |
|
|
} |
|
|
} |
|
|
if (!studyFormApplyOld.getBdzt().equals(StudyFormApplyBdztEnum.ytj.getValue()) ) { |
|
|
|
|
|
|
|
|
if (!studyFormApplyOld.getBdzt().equals(StudyFormApplyBdztEnum.ytj.getValue())) { |
|
|
throw new ServiceException("表单不是已提交状态,不能复核"); |
|
|
throw new ServiceException("表单不是已提交状态,不能复核"); |
|
|
} |
|
|
} |
|
|
studyFormApplyOld.setBdzt(StudyFormApplyBdztEnum.tbz.getValue()); |
|
|
studyFormApplyOld.setBdzt(StudyFormApplyBdztEnum.tbz.getValue()); |
|
|
this.updateById(studyFormApplyOld); |
|
|
this.updateById(studyFormApplyOld); |
|
|
//稽查轨迹 |
|
|
//稽查轨迹 |
|
|
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(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName()); |
|
|
//签名信息 |
|
|
//签名信息 |
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(),"复核拒绝",SecurityUtils.getUserId(),SecurityUtils.getNickName(),studyFormApply.getRemark()); |
|
|
|
|
|
|
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "复核拒绝", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormApply.getRemark()); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -399,7 +396,7 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
@Override |
|
|
@Override |
|
|
public void sy(StudyFormApply studyFormApply) { |
|
|
public void sy(StudyFormApply studyFormApply) { |
|
|
//验证签名人密码 |
|
|
//验证签名人密码 |
|
|
checkPassword(SecurityUtils.getLoginUser().getSysUser(),studyFormApply.getQmrmm()); |
|
|
|
|
|
|
|
|
checkPassword(SecurityUtils.getLoginUser().getSysUser(), 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不正确"); |
|
|
} |
|
|
} |
|
|
@ -414,10 +411,10 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
this.updateById(studyFormApplyOld); |
|
|
this.updateById(studyFormApplyOld); |
|
|
//稽查轨迹 |
|
|
//稽查轨迹 |
|
|
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(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName()); |
|
|
//签名信息 |
|
|
//签名信息 |
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(),"已审阅",SecurityUtils.getUserId(),SecurityUtils.getNickName(),studyFormApply.getRemark()); |
|
|
|
|
|
|
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "已审阅", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormApply.getRemark()); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -430,7 +427,7 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
@Override |
|
|
@Override |
|
|
public void shtg(StudyFormApply studyFormApply) { |
|
|
public void shtg(StudyFormApply studyFormApply) { |
|
|
//验证签名人密码 |
|
|
//验证签名人密码 |
|
|
checkPassword(SecurityUtils.getLoginUser().getSysUser(),studyFormApply.getQmrmm()); |
|
|
|
|
|
|
|
|
checkPassword(SecurityUtils.getLoginUser().getSysUser(), 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不正确"); |
|
|
} |
|
|
} |
|
|
@ -438,17 +435,17 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
if (studyFormApplyOld == null) { |
|
|
if (studyFormApplyOld == null) { |
|
|
throw new ServiceException("表单不存在或已删除"); |
|
|
throw new ServiceException("表单不存在或已删除"); |
|
|
} |
|
|
} |
|
|
if (!studyFormApplyOld.getBdzt().equals(StudyFormApplyBdztEnum.yfh.getValue()) ) { |
|
|
|
|
|
|
|
|
if (!studyFormApplyOld.getBdzt().equals(StudyFormApplyBdztEnum.yfh.getValue())) { |
|
|
throw new ServiceException("表单不是已复核状态,不能审核"); |
|
|
throw new ServiceException("表单不是已复核状态,不能审核"); |
|
|
} |
|
|
} |
|
|
studyFormApplyOld.setBdzt(StudyFormApplyBdztEnum.ywc.getValue()); |
|
|
studyFormApplyOld.setBdzt(StudyFormApplyBdztEnum.ywc.getValue()); |
|
|
this.updateById(studyFormApplyOld); |
|
|
this.updateById(studyFormApplyOld); |
|
|
//稽查轨迹 |
|
|
//稽查轨迹 |
|
|
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(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName()); |
|
|
//签名信息 |
|
|
//签名信息 |
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(),"审核通过",SecurityUtils.getUserId(),SecurityUtils.getNickName(),studyFormApply.getRemark()); |
|
|
|
|
|
|
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "审核通过", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormApply.getRemark()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -460,7 +457,7 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
@Override |
|
|
@Override |
|
|
public void shjj(StudyFormApply studyFormApply) { |
|
|
public void shjj(StudyFormApply studyFormApply) { |
|
|
//验证签名人密码 |
|
|
//验证签名人密码 |
|
|
checkPassword(SecurityUtils.getLoginUser().getSysUser(),studyFormApply.getQmrmm()); |
|
|
|
|
|
|
|
|
checkPassword(SecurityUtils.getLoginUser().getSysUser(), 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不正确"); |
|
|
} |
|
|
} |
|
|
@ -468,30 +465,31 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
if (studyFormApplyOld == null) { |
|
|
if (studyFormApplyOld == null) { |
|
|
throw new ServiceException("表单不存在或已删除"); |
|
|
throw new ServiceException("表单不存在或已删除"); |
|
|
} |
|
|
} |
|
|
if (!studyFormApplyOld.getBdzt().equals(StudyFormApplyBdztEnum.yfh.getValue()) ) { |
|
|
|
|
|
|
|
|
if (!studyFormApplyOld.getBdzt().equals(StudyFormApplyBdztEnum.yfh.getValue())) { |
|
|
throw new ServiceException("表单不是已复核状态,不能审核"); |
|
|
throw new ServiceException("表单不是已复核状态,不能审核"); |
|
|
} |
|
|
} |
|
|
studyFormApplyOld.setBdzt(StudyFormApplyBdztEnum.wtg.getValue()); |
|
|
studyFormApplyOld.setBdzt(StudyFormApplyBdztEnum.wtg.getValue()); |
|
|
this.updateById(studyFormApplyOld); |
|
|
this.updateById(studyFormApplyOld); |
|
|
//稽查轨迹 |
|
|
//稽查轨迹 |
|
|
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(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName()); |
|
|
//签名信息 |
|
|
//签名信息 |
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(),"审核拒绝",SecurityUtils.getUserId(),SecurityUtils.getNickName(),studyFormApply.getRemark()); |
|
|
|
|
|
|
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "审核拒绝", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormApply.getRemark()); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 验证密码 |
|
|
* 验证密码 |
|
|
|
|
|
* |
|
|
* @param user |
|
|
* @param user |
|
|
* @param qmrmm |
|
|
* @param qmrmm |
|
|
*/ |
|
|
*/ |
|
|
public void checkPassword(SysUser user, String qmrmm){ |
|
|
|
|
|
if(StringUtils.isBlank(qmrmm)){ |
|
|
|
|
|
|
|
|
public void checkPassword(SysUser user, String qmrmm) { |
|
|
|
|
|
if (StringUtils.isBlank(qmrmm)) { |
|
|
throw new ServiceException("签名密码不能为空"); |
|
|
throw new ServiceException("签名密码不能为空"); |
|
|
} |
|
|
} |
|
|
sysUserService.checkPassword(user,qmrmm,false); |
|
|
|
|
|
|
|
|
sysUserService.checkPassword(user, qmrmm, false); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |