|
|
@ -291,11 +291,11 @@ 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(studyFormApply.getId(), JcgjlxEnum.bj.getValue(), "填写并保存", JcmcysEnum.green.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName()); |
|
|
|
|
|
|
|
|
studyFormApplyJcgjService.saveJcgj(studyFormApply.getId(), JcgjlxEnum.bj.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()); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -307,39 +307,34 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public void tj(StudyFormApply studyFormApply) { |
|
|
public void tj(StudyFormApply studyFormApply) { |
|
|
//todo |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 观察 |
|
|
|
|
|
* |
|
|
|
|
|
* @param form |
|
|
|
|
|
*/ |
|
|
|
|
|
@Override |
|
|
|
|
|
public void gc(StudyFormApplyGcForm form) { |
|
|
|
|
|
//验证签名人密码 todo |
|
|
//验证签名人密码 todo |
|
|
if (form.getId() == null || form.getId().longValue() < 0) { |
|
|
|
|
|
|
|
|
if (studyFormApply.getId() == null || studyFormApply.getId().longValue() < 0) { |
|
|
throw new ServiceException("参数id不正确"); |
|
|
throw new ServiceException("参数id不正确"); |
|
|
} |
|
|
} |
|
|
StudyFormApply studyFormApplyOld = this.getById(form.getId()); |
|
|
|
|
|
|
|
|
StudyFormApply studyFormApplyOld = this.getById(studyFormApply.getId()); |
|
|
if (studyFormApplyOld == null) { |
|
|
if (studyFormApplyOld == null) { |
|
|
throw new ServiceException("表单不存在或已删除"); |
|
|
throw new ServiceException("表单不存在或已删除"); |
|
|
} |
|
|
} |
|
|
if (!studyFormApplyOld.getBdzt().equals(StudyFormApplyBdztEnum.tbz.getValue())) { |
|
|
|
|
|
throw new ServiceException("表单不是申请状态,不能观察"); |
|
|
|
|
|
|
|
|
if (!studyFormApplyOld.getBdzt().equals(StudyFormApplyBdztEnum.tbz.getValue()) ) { |
|
|
|
|
|
throw new ServiceException("表单不是填报中状态,不能审核"); |
|
|
} |
|
|
} |
|
|
|
|
|
studyFormApplyOld.setBdzt(StudyFormApplyBdztEnum.ytj.getValue()); |
|
|
|
|
|
studyFormApplyOld.setBdnr(studyFormApply.getBdnr()); |
|
|
|
|
|
studyFormApplyOld.setBdmc(studyFormApply.getBdmc()); |
|
|
|
|
|
studyFormApplyOld.setBdsm(studyFormApply.getBdsm()); |
|
|
|
|
|
this.updateById(studyFormApplyOld); |
|
|
//稽查轨迹 |
|
|
//稽查轨迹 |
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
formData.put("生长情况",form.getQmyy()); |
|
|
|
|
|
formData.put("备注",form.getRemark()); |
|
|
|
|
|
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), form.getQmyy(), JcmcysEnum.orange.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName()); |
|
|
|
|
|
|
|
|
formData.put("备注",studyFormApply.getRemark()); |
|
|
|
|
|
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "填写并提交记录", JcmcysEnum.green.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName()); |
|
|
//签名信息 |
|
|
//签名信息 |
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(),form.getQmyy(),SecurityUtils.getUserId(),SecurityUtils.getNickName(),form.getRemark()); |
|
|
|
|
|
|
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(),"填写并提交记录",SecurityUtils.getUserId(),SecurityUtils.getNickName(),studyFormApply.getRemark()); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 复核通过 |
|
|
* 复核通过 |
|
|
* |
|
|
* |
|
|
@ -358,7 +353,7 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
if (!studyFormApplyOld.getBdzt().equals(StudyFormApplyBdztEnum.ytj.getValue()) ) { |
|
|
if (!studyFormApplyOld.getBdzt().equals(StudyFormApplyBdztEnum.ytj.getValue()) ) { |
|
|
throw new ServiceException("表单不是已提交状态,不能复核"); |
|
|
throw new ServiceException("表单不是已提交状态,不能复核"); |
|
|
} |
|
|
} |
|
|
studyFormApplyOld.setBdzt(StudyFormApplyBdztEnum.ywcfh.getValue()); |
|
|
|
|
|
|
|
|
studyFormApplyOld.setBdzt(StudyFormApplyBdztEnum.yfh.getValue()); |
|
|
this.updateById(studyFormApplyOld); |
|
|
this.updateById(studyFormApplyOld); |
|
|
//稽查轨迹 |
|
|
//稽查轨迹 |
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
@ -399,12 +394,12 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 通过 |
|
|
|
|
|
|
|
|
* 审阅 |
|
|
* |
|
|
* |
|
|
* @param studyFormApply |
|
|
* @param studyFormApply |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public void tg(StudyFormApply studyFormApply) { |
|
|
|
|
|
|
|
|
public void sy(StudyFormApply studyFormApply) { |
|
|
//验证签名人密码 todo |
|
|
//验证签名人密码 todo |
|
|
if (studyFormApply.getId() == null || studyFormApply.getId().longValue() < 0) { |
|
|
if (studyFormApply.getId() == null || studyFormApply.getId().longValue() < 0) { |
|
|
throw new ServiceException("参数id不正确"); |
|
|
throw new ServiceException("参数id不正确"); |
|
|
@ -413,27 +408,26 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
if (studyFormApplyOld == null) { |
|
|
if (studyFormApplyOld == null) { |
|
|
throw new ServiceException("表单不存在或已删除"); |
|
|
throw new ServiceException("表单不存在或已删除"); |
|
|
} |
|
|
} |
|
|
if (!studyFormApplyOld.getBdzt().equals(StudyFormApplyBdztEnum.ytj.getValue()) ) { |
|
|
|
|
|
throw new ServiceException("表单不是已提交状态,不能复核"); |
|
|
|
|
|
|
|
|
if (!studyFormApplyOld.getBdzt().equals(StudyFormApplyBdztEnum.ywc.getValue())) { |
|
|
|
|
|
throw new ServiceException("表单不是已完成状态,不能审阅"); |
|
|
} |
|
|
} |
|
|
studyFormApplyOld.setBdzt(StudyFormApplyBdztEnum.ywc.getValue()); |
|
|
|
|
|
this.updateById(studyFormApplyOld); |
|
|
|
|
|
//稽查轨迹 |
|
|
//稽查轨迹 |
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
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()); |
|
|
|
|
|
|
|
|
formData.put("备注",studyFormApply.getRemark()); |
|
|
|
|
|
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()); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 审阅 |
|
|
|
|
|
|
|
|
* 审核通过 |
|
|
* |
|
|
* |
|
|
* @param studyFormApply |
|
|
* @param studyFormApply |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public void sy(StudyFormApply studyFormApply) { |
|
|
|
|
|
|
|
|
public void shtg(StudyFormApply studyFormApply) { |
|
|
//验证签名人密码 todo |
|
|
//验证签名人密码 todo |
|
|
if (studyFormApply.getId() == null || studyFormApply.getId().longValue() < 0) { |
|
|
if (studyFormApply.getId() == null || studyFormApply.getId().longValue() < 0) { |
|
|
throw new ServiceException("参数id不正确"); |
|
|
throw new ServiceException("参数id不正确"); |
|
|
@ -442,15 +436,46 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
if (studyFormApplyOld == null) { |
|
|
if (studyFormApplyOld == null) { |
|
|
throw new ServiceException("表单不存在或已删除"); |
|
|
throw new ServiceException("表单不存在或已删除"); |
|
|
} |
|
|
} |
|
|
if (!(studyFormApplyOld.getBdzt().equals(StudyFormApplyBdztEnum.ywcfh.getValue())||studyFormApplyOld.getBdzt().equals(StudyFormApplyBdztEnum.ywc.getValue())) ) { |
|
|
|
|
|
throw new ServiceException("表单不是已完成状态,不能审阅"); |
|
|
|
|
|
|
|
|
if (!studyFormApplyOld.getBdzt().equals(StudyFormApplyBdztEnum.yfh.getValue()) ) { |
|
|
|
|
|
throw new ServiceException("表单不是已复核状态,不能审核"); |
|
|
} |
|
|
} |
|
|
|
|
|
studyFormApplyOld.setBdzt(StudyFormApplyBdztEnum.ywc.getValue()); |
|
|
|
|
|
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()); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 审核拒绝 |
|
|
|
|
|
* |
|
|
|
|
|
* @param studyFormApply |
|
|
|
|
|
*/ |
|
|
|
|
|
@Override |
|
|
|
|
|
public void shjj(StudyFormApply studyFormApply) { |
|
|
|
|
|
//验证签名人密码 todo |
|
|
|
|
|
if (studyFormApply.getId() == null || studyFormApply.getId().longValue() < 0) { |
|
|
|
|
|
throw new ServiceException("参数id不正确"); |
|
|
|
|
|
} |
|
|
|
|
|
StudyFormApply studyFormApplyOld = this.getById(studyFormApply.getId()); |
|
|
|
|
|
if (studyFormApplyOld == null) { |
|
|
|
|
|
throw new ServiceException("表单不存在或已删除"); |
|
|
|
|
|
} |
|
|
|
|
|
if (!studyFormApplyOld.getBdzt().equals(StudyFormApplyBdztEnum.yfh.getValue()) ) { |
|
|
|
|
|
throw new ServiceException("表单不是已复核状态,不能审核"); |
|
|
|
|
|
} |
|
|
|
|
|
studyFormApplyOld.setBdzt(StudyFormApplyBdztEnum.wtg.getValue()); |
|
|
|
|
|
this.updateById(studyFormApplyOld); |
|
|
|
|
|
//稽查轨迹 |
|
|
|
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
|
|
|
formData.put("原因",studyFormApply.getRemark()); |
|
|
|
|
|
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()); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|