|
|
@ -2,6 +2,7 @@ package com.hxhq.business.service.impl; |
|
|
|
|
|
|
|
|
import java.util.*; |
|
|
import java.util.*; |
|
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson2.JSONObject; |
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
import com.hxhq.business.domain.*; |
|
|
import com.hxhq.business.domain.*; |
|
|
@ -119,8 +120,9 @@ public class StudyFormFillServiceImpl extends ServiceImpl |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public void jq(StudyFormFill studyFormFill) { |
|
|
public void jq(StudyFormFill studyFormFill) { |
|
|
|
|
|
SysUser qmr=SecurityUtils.getLoginUser().getSysUser(); |
|
|
//验证签名人密码 |
|
|
//验证签名人密码 |
|
|
checkPassword(SecurityUtils.getLoginUser().getSysUser(), studyFormFill.getQmrmm()); |
|
|
|
|
|
|
|
|
checkPassword(qmr, studyFormFill.getQmrmm()); |
|
|
if (studyFormFill.getId() == null || studyFormFill.getId().longValue() < 0) { |
|
|
if (studyFormFill.getId() == null || studyFormFill.getId().longValue() < 0) { |
|
|
throw new ServiceException("参数id不正确"); |
|
|
throw new ServiceException("参数id不正确"); |
|
|
} |
|
|
} |
|
|
@ -132,11 +134,9 @@ public class StudyFormFillServiceImpl extends ServiceImpl |
|
|
throw new ServiceException("表单不是填报状态,不能加签"); |
|
|
throw new ServiceException("表单不是填报状态,不能加签"); |
|
|
} |
|
|
} |
|
|
//稽查轨迹 |
|
|
//稽查轨迹 |
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
|
|
|
formData.put("备注", studyFormFill.getRemark()); |
|
|
|
|
|
studyFormFillJcgjService.saveJcgj(studyFormFillOld.getId(), JcgjlxEnum.bj.getValue(), studyFormFill.getQmyy(), JcmcysEnum.orange.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName()); |
|
|
|
|
|
|
|
|
studyFormFillJcgjService.saveJcgj(studyFormFillOld.getId(), JcgjlxEnum.bj.getValue(), studyFormFill.getQmyy(), JcmcysEnum.orange.getValue(), null, SecurityUtils.getLoginUser().getSysUser(), studyFormFill.getRemark(),null); |
|
|
//签名信息 |
|
|
//签名信息 |
|
|
studyFormFillQmxxService.saveQmxx(studyFormFill.getId(), studyFormFill.getQmyy(), SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormFill.getRemark()); |
|
|
|
|
|
|
|
|
studyFormFillQmxxService.saveQmxx(studyFormFill.getId(), studyFormFill.getQmyy(),qmr, studyFormFill.getRemark()); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -147,8 +147,9 @@ public class StudyFormFillServiceImpl extends ServiceImpl |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public void fz(StudyFormFill studyFormFill) { |
|
|
public void fz(StudyFormFill studyFormFill) { |
|
|
|
|
|
SysUser qmr=SecurityUtils.getLoginUser().getSysUser(); |
|
|
//验证签名人密码 |
|
|
//验证签名人密码 |
|
|
checkPassword(SecurityUtils.getLoginUser().getSysUser(), studyFormFill.getQmrmm()); |
|
|
|
|
|
|
|
|
checkPassword(qmr, studyFormFill.getQmrmm()); |
|
|
if (studyFormFill.getId() == null || studyFormFill.getId().longValue() < 0) { |
|
|
if (studyFormFill.getId() == null || studyFormFill.getId().longValue() < 0) { |
|
|
throw new ServiceException("参数id不正确"); |
|
|
throw new ServiceException("参数id不正确"); |
|
|
} |
|
|
} |
|
|
@ -162,11 +163,9 @@ public class StudyFormFillServiceImpl extends ServiceImpl |
|
|
studyFormFillOld.setBdzt(StudyFormFillBdztEnum.dfz.getValue()); |
|
|
studyFormFillOld.setBdzt(StudyFormFillBdztEnum.dfz.getValue()); |
|
|
this.updateById(studyFormFillOld); |
|
|
this.updateById(studyFormFillOld); |
|
|
//稽查轨迹 |
|
|
//稽查轨迹 |
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
|
|
|
formData.put("备注", studyFormFill.getRemark()); |
|
|
|
|
|
studyFormFillJcgjService.saveJcgj(studyFormFillOld.getId(), JcgjlxEnum.lc.getValue(), "申请废止", JcmcysEnum.orange.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName()); |
|
|
|
|
|
|
|
|
studyFormFillJcgjService.saveJcgj(studyFormFillOld.getId(), JcgjlxEnum.lc.getValue(), "申请废止", JcmcysEnum.orange.getValue(), null, SecurityUtils.getLoginUser().getSysUser(), null,null); |
|
|
//签名信息 |
|
|
//签名信息 |
|
|
studyFormFillQmxxService.saveQmxx(studyFormFill.getId(), "申请废止", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormFill.getRemark()); |
|
|
|
|
|
|
|
|
studyFormFillQmxxService.saveQmxx(studyFormFill.getId(), "申请废止", qmr, studyFormFill.getRemark()); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -178,8 +177,9 @@ public class StudyFormFillServiceImpl extends ServiceImpl |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public void qrfz(StudyFormFillShfzForm form) { |
|
|
public void qrfz(StudyFormFillShfzForm 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不正确"); |
|
|
} |
|
|
} |
|
|
@ -196,9 +196,9 @@ public class StudyFormFillServiceImpl extends ServiceImpl |
|
|
//稽查轨迹 |
|
|
//稽查轨迹 |
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
formData.put("原因", form.getRemark()); |
|
|
formData.put("原因", form.getRemark()); |
|
|
studyFormFillJcgjService.saveJcgj(studyFormFillOld.getId(), JcgjlxEnum.lc.getValue(), "废止通过", JcmcysEnum.green.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName()); |
|
|
|
|
|
|
|
|
studyFormFillJcgjService.saveJcgj(studyFormFillOld.getId(), JcgjlxEnum.lc.getValue(), "废止通过", JcmcysEnum.green.getValue(), formData, SecurityUtils.getLoginUser().getSysUser(), null,null); |
|
|
//签名信息 |
|
|
//签名信息 |
|
|
studyFormFillQmxxService.saveQmxx(studyFormFillOld.getId(), "废止通过", SecurityUtils.getUserId(), SecurityUtils.getNickName(), form.getRemark()); |
|
|
|
|
|
|
|
|
studyFormFillQmxxService.saveQmxx(studyFormFillOld.getId(), "废止通过", qmr, form.getRemark()); |
|
|
|
|
|
|
|
|
} else { |
|
|
} else { |
|
|
studyFormFillOld.setBdzt(StudyFormFillBdztEnum.tbz.getValue()); |
|
|
studyFormFillOld.setBdzt(StudyFormFillBdztEnum.tbz.getValue()); |
|
|
@ -206,9 +206,9 @@ public class StudyFormFillServiceImpl extends ServiceImpl |
|
|
//稽查轨迹 |
|
|
//稽查轨迹 |
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
formData.put("原因", form.getRemark()); |
|
|
formData.put("原因", form.getRemark()); |
|
|
studyFormFillJcgjService.saveJcgj(studyFormFillOld.getId(), JcgjlxEnum.lc.getValue(), "废止拒绝", JcmcysEnum.red.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName()); |
|
|
|
|
|
|
|
|
studyFormFillJcgjService.saveJcgj(studyFormFillOld.getId(), JcgjlxEnum.lc.getValue(), "废止拒绝", JcmcysEnum.red.getValue(), formData, SecurityUtils.getLoginUser().getSysUser(), null,null); |
|
|
//签名信息 |
|
|
//签名信息 |
|
|
studyFormFillQmxxService.saveQmxx(studyFormFillOld.getId(), "废止拒绝", SecurityUtils.getUserId(), SecurityUtils.getNickName(), form.getRemark()); |
|
|
|
|
|
|
|
|
studyFormFillQmxxService.saveQmxx(studyFormFillOld.getId(), "废止拒绝", qmr, form.getRemark()); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -222,8 +222,9 @@ public class StudyFormFillServiceImpl extends ServiceImpl |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public void ghgsr(StudyFormFill studyFormFill) { |
|
|
public void ghgsr(StudyFormFill studyFormFill) { |
|
|
|
|
|
SysUser qmr=SecurityUtils.getLoginUser().getSysUser(); |
|
|
//验证签名人密码 |
|
|
//验证签名人密码 |
|
|
checkPassword(SecurityUtils.getLoginUser().getSysUser(), studyFormFill.getQmrmm()); |
|
|
|
|
|
|
|
|
checkPassword(qmr, studyFormFill.getQmrmm()); |
|
|
if (studyFormFill.getId() == null || studyFormFill.getId().longValue() < 0) { |
|
|
if (studyFormFill.getId() == null || studyFormFill.getId().longValue() < 0) { |
|
|
throw new ServiceException("参数id不正确"); |
|
|
throw new ServiceException("参数id不正确"); |
|
|
} |
|
|
} |
|
|
@ -244,10 +245,9 @@ public class StudyFormFillServiceImpl extends ServiceImpl |
|
|
studyFormFillOld.setUserId(studyFormFill.getUserId()); |
|
|
studyFormFillOld.setUserId(studyFormFill.getUserId()); |
|
|
studyFormFillOld.setUserMc(studyFormFill.getUserMc()); |
|
|
studyFormFillOld.setUserMc(studyFormFill.getUserMc()); |
|
|
this.updateById(studyFormFillOld); |
|
|
this.updateById(studyFormFillOld); |
|
|
|
|
|
|
|
|
studyFormFillJcgjService.saveJcgj(studyFormFillOld.getId(), JcgjlxEnum.lc.getValue(), "更换归属人", JcmcysEnum.orange.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName()); |
|
|
|
|
|
|
|
|
studyFormFillJcgjService.saveJcgj(studyFormFillOld.getId(), JcgjlxEnum.lc.getValue(), "更换归属人", JcmcysEnum.orange.getValue(), null, SecurityUtils.getLoginUser().getSysUser(), null,null); |
|
|
//签名信息 |
|
|
//签名信息 |
|
|
studyFormFillQmxxService.saveQmxx(studyFormFillOld.getId(), "更换归属人", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormFill.getRemark()); |
|
|
|
|
|
|
|
|
studyFormFillQmxxService.saveQmxx(studyFormFillOld.getId(), "更换归属人", qmr, studyFormFill.getRemark()); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -257,7 +257,9 @@ public class StudyFormFillServiceImpl extends ServiceImpl |
|
|
* @param studyFormFill |
|
|
* @param studyFormFill |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public void bc(StudyFormFill studyFormFill) { |
|
|
|
|
|
|
|
|
public StudyFormFill bc(StudyFormFill studyFormFill) { |
|
|
|
|
|
SysUser qmr=SecurityUtils.getLoginUser().getSysUser(); |
|
|
|
|
|
StudyFormFill result = null; |
|
|
if (studyFormFill.getId() != null) { |
|
|
if (studyFormFill.getId() != null) { |
|
|
StudyFormFill studyFormFillOld = this.queryInfo(studyFormFill.getId()); |
|
|
StudyFormFill studyFormFillOld = this.queryInfo(studyFormFill.getId()); |
|
|
if (studyFormFillOld == null) { |
|
|
if (studyFormFillOld == null) { |
|
|
@ -270,44 +272,32 @@ public class StudyFormFillServiceImpl extends ServiceImpl |
|
|
studyFormFillOld.setBdnr(studyFormFill.getBdnr()); |
|
|
studyFormFillOld.setBdnr(studyFormFill.getBdnr()); |
|
|
studyFormFillOld.setBdzt(StudyFormFillBdztEnum.tbz.getValue()); |
|
|
studyFormFillOld.setBdzt(StudyFormFillBdztEnum.tbz.getValue()); |
|
|
this.updateById(studyFormFillOld); |
|
|
this.updateById(studyFormFillOld); |
|
|
|
|
|
result = studyFormFillOld; |
|
|
List<ObjectCompareUtil.FieldChange> fieldChanges = ObjectCompareUtil.compareObjects(studyFormFillOld, studyFormFill); |
|
|
List<ObjectCompareUtil.FieldChange> fieldChanges = ObjectCompareUtil.compareObjects(studyFormFillOld, studyFormFill); |
|
|
if (fieldChanges.size() > 0) { |
|
|
if (fieldChanges.size() > 0) { |
|
|
//稽查轨迹 |
|
|
//稽查轨迹 |
|
|
List<StudyFormFillJcgj> studyFormFillJcgjs = new ArrayList<>(); |
|
|
List<StudyFormFillJcgj> studyFormFillJcgjs = new ArrayList<>(); |
|
|
for (ObjectCompareUtil.FieldChange fieldChange : fieldChanges) { |
|
|
for (ObjectCompareUtil.FieldChange fieldChange : fieldChanges) { |
|
|
StudyFormFillJcgj studyFormFillJcgj = new StudyFormFillJcgj(); |
|
|
|
|
|
studyFormFillJcgj.setFormId(studyFormFill.getId()); |
|
|
|
|
|
studyFormFillJcgj.setJcgjlx(JcgjlxEnum.xg.getValue()); |
|
|
|
|
|
studyFormFillJcgj.setJcmc("修改"); |
|
|
|
|
|
studyFormFillJcgj.setJcmcys(JcmcysEnum.orange.getValue()); |
|
|
|
|
|
studyFormFillJcgj.setJcnr(fieldChange.toString()); |
|
|
|
|
|
studyFormFillJcgj.setQmrId(SecurityUtils.getUserId()); |
|
|
|
|
|
studyFormFillJcgj.setQmrMc(SecurityUtils.getNickName()); |
|
|
|
|
|
studyFormFillJcgjs.add(studyFormFillJcgj); |
|
|
|
|
|
|
|
|
studyFormFillJcgjs.add(studyFormFillJcgjService.getJcgj(studyFormFillOld.getId(), JcgjlxEnum.xg.getValue(), "修改", JcmcysEnum.orange.getValue(), fieldChange.toString(), fieldChange.toEnString(), SecurityUtils.getLoginUser().getSysUser(), studyFormFill.getRemark())); |
|
|
} |
|
|
} |
|
|
studyFormFillJcgjService.saveBatch(studyFormFillJcgjs); |
|
|
studyFormFillJcgjService.saveBatch(studyFormFillJcgjs); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//稽查轨迹 |
|
|
//稽查轨迹 |
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
|
|
|
formData.put("备注", studyFormFill.getRemark()); |
|
|
|
|
|
studyFormFillJcgjService.saveJcgj(studyFormFillOld.getId(), JcgjlxEnum.lc.getValue(), "填写并保存记录", JcmcysEnum.green.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName()); |
|
|
|
|
|
|
|
|
studyFormFillJcgjService.saveJcgj(studyFormFillOld.getId(), JcgjlxEnum.lc.getValue(), "填写并提交记录", JcmcysEnum.green.getValue(), null, SecurityUtils.getLoginUser().getSysUser(), studyFormFill.getRemark(),null ); |
|
|
} else { |
|
|
} else { |
|
|
studyFormFill.setBdzt(StudyFormFillBdztEnum.tbz.getValue()); |
|
|
studyFormFill.setBdzt(StudyFormFillBdztEnum.tbz.getValue()); |
|
|
studyFormFill.setUserId(SecurityUtils.getUserId()); |
|
|
studyFormFill.setUserId(SecurityUtils.getUserId()); |
|
|
studyFormFill.setStartDate(new Date()); |
|
|
studyFormFill.setStartDate(new Date()); |
|
|
studyFormFill.setUserMc(SecurityUtils.getNickName()); |
|
|
studyFormFill.setUserMc(SecurityUtils.getNickName()); |
|
|
this.save(studyFormFill); |
|
|
this.save(studyFormFill); |
|
|
|
|
|
|
|
|
|
|
|
result = studyFormFill; |
|
|
//稽查轨迹 |
|
|
//稽查轨迹 |
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
|
|
|
formData.put("备注", studyFormFill.getRemark()); |
|
|
|
|
|
studyFormFillJcgjService.saveJcgj(studyFormFill.getId(), JcgjlxEnum.lc.getValue(), "填写并保存记录", JcmcysEnum.green.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName()); |
|
|
|
|
|
|
|
|
studyFormFillJcgjService.saveJcgj(studyFormFill.getId(), JcgjlxEnum.lc.getValue(), "填写并提交记录", JcmcysEnum.green.getValue(), null, SecurityUtils.getLoginUser().getSysUser(), studyFormFill.getRemark(),null ); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//签名信息 |
|
|
//签名信息 |
|
|
studyFormFillQmxxService.saveQmxx(studyFormFill.getId(), "填写并保存记录", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormFill.getRemark()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
studyFormFillQmxxService.saveQmxx(studyFormFill.getId(), "填写并保存记录", qmr, studyFormFill.getRemark()); |
|
|
|
|
|
return result; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -318,6 +308,7 @@ public class StudyFormFillServiceImpl extends ServiceImpl |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public void tj(StudyFormFill studyFormFill) { |
|
|
public void tj(StudyFormFill studyFormFill) { |
|
|
|
|
|
SysUser qmr=SecurityUtils.getLoginUser().getSysUser(); |
|
|
//验证签名人密码 |
|
|
//验证签名人密码 |
|
|
checkPassword(SecurityUtils.getLoginUser().getSysUser(), studyFormFill.getQmrmm()); |
|
|
checkPassword(SecurityUtils.getLoginUser().getSysUser(), studyFormFill.getQmrmm()); |
|
|
if (studyFormFill.getId() != null) { |
|
|
if (studyFormFill.getId() != null) { |
|
|
@ -340,22 +331,12 @@ public class StudyFormFillServiceImpl extends ServiceImpl |
|
|
//稽查轨迹 |
|
|
//稽查轨迹 |
|
|
List<StudyFormFillJcgj> studyFormFillJcgjs = new ArrayList<>(); |
|
|
List<StudyFormFillJcgj> studyFormFillJcgjs = new ArrayList<>(); |
|
|
for (ObjectCompareUtil.FieldChange fieldChange : fieldChanges) { |
|
|
for (ObjectCompareUtil.FieldChange fieldChange : fieldChanges) { |
|
|
StudyFormFillJcgj studyFormFillJcgj = new StudyFormFillJcgj(); |
|
|
|
|
|
studyFormFillJcgj.setFormId(studyFormFill.getId()); |
|
|
|
|
|
studyFormFillJcgj.setJcgjlx(JcgjlxEnum.xg.getValue()); |
|
|
|
|
|
studyFormFillJcgj.setJcmc("修改"); |
|
|
|
|
|
studyFormFillJcgj.setJcmcys(JcmcysEnum.orange.getValue()); |
|
|
|
|
|
studyFormFillJcgj.setJcnr(fieldChange.toString()); |
|
|
|
|
|
studyFormFillJcgj.setQmrId(SecurityUtils.getUserId()); |
|
|
|
|
|
studyFormFillJcgj.setQmrMc(SecurityUtils.getNickName()); |
|
|
|
|
|
studyFormFillJcgjs.add(studyFormFillJcgj); |
|
|
|
|
|
|
|
|
studyFormFillJcgjs.add(studyFormFillJcgjService.getJcgj(studyFormFillOld.getId(), JcgjlxEnum.xg.getValue(), "修改", JcmcysEnum.orange.getValue(), fieldChange.toString(), fieldChange.toEnString(), SecurityUtils.getLoginUser().getSysUser(), studyFormFill.getRemark())); |
|
|
} |
|
|
} |
|
|
studyFormFillJcgjService.saveBatch(studyFormFillJcgjs); |
|
|
studyFormFillJcgjService.saveBatch(studyFormFillJcgjs); |
|
|
} |
|
|
} |
|
|
//稽查轨迹 |
|
|
//稽查轨迹 |
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
|
|
|
formData.put("备注", studyFormFill.getRemark()); |
|
|
|
|
|
studyFormFillJcgjService.saveJcgj(studyFormFill.getId(), JcgjlxEnum.lc.getValue(), "填写并提交记录", JcmcysEnum.green.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName()); |
|
|
|
|
|
|
|
|
studyFormFillJcgjService.saveJcgj(studyFormFillOld.getId(), JcgjlxEnum.lc.getValue(), "填写并提交记录", JcmcysEnum.green.getValue(), null, SecurityUtils.getLoginUser().getSysUser(), studyFormFill.getRemark(),null ); |
|
|
} else { |
|
|
} else { |
|
|
studyFormFill.setBdzt(StudyFormFillBdztEnum.ytj.getValue()); |
|
|
studyFormFill.setBdzt(StudyFormFillBdztEnum.ytj.getValue()); |
|
|
studyFormFill.setUserId(SecurityUtils.getUserId()); |
|
|
studyFormFill.setUserId(SecurityUtils.getUserId()); |
|
|
@ -365,20 +346,19 @@ public class StudyFormFillServiceImpl extends ServiceImpl |
|
|
//生成物资 |
|
|
//生成物资 |
|
|
genResource(studyFormFill); |
|
|
genResource(studyFormFill); |
|
|
//稽查轨迹 |
|
|
//稽查轨迹 |
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
|
|
|
formData.put("备注", studyFormFill.getRemark()); |
|
|
|
|
|
studyFormFillJcgjService.saveJcgj(studyFormFill.getId(), JcgjlxEnum.lc.getValue(), "填写并提交记录", JcmcysEnum.green.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName()); |
|
|
|
|
|
|
|
|
studyFormFillJcgjService.saveJcgj(studyFormFill.getId(), JcgjlxEnum.lc.getValue(), "填写并提交记录", JcmcysEnum.green.getValue(), null, SecurityUtils.getLoginUser().getSysUser(), studyFormFill.getRemark(),null ); |
|
|
} |
|
|
} |
|
|
//签名信息 |
|
|
//签名信息 |
|
|
studyFormFillQmxxService.saveQmxx(studyFormFill.getId(), "填写并提交记录", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormFill.getRemark()); |
|
|
|
|
|
|
|
|
studyFormFillQmxxService.saveQmxx(studyFormFill.getId(), "填写并提交记录", qmr, studyFormFill.getRemark()); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 生成物资 |
|
|
* 生成物资 |
|
|
|
|
|
* |
|
|
* @param studyFormFill |
|
|
* @param studyFormFill |
|
|
*/ |
|
|
*/ |
|
|
public void genResource(StudyFormFill studyFormFill){ |
|
|
|
|
|
|
|
|
public void genResource(StudyFormFill studyFormFill) { |
|
|
Template template = templateService.getById(studyFormFill.getTemplateId()); |
|
|
Template template = templateService.getById(studyFormFill.getTemplateId()); |
|
|
// todo 处置,存放,用量 |
|
|
// todo 处置,存放,用量 |
|
|
if (template.getProduct().equals(ProductEnum.Sj.getValue())) { |
|
|
if (template.getProduct().equals(ProductEnum.Sj.getValue())) { |
|
|
@ -402,8 +382,9 @@ public class StudyFormFillServiceImpl extends ServiceImpl |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public void gc(StudyFormFillGcForm form) { |
|
|
public void gc(StudyFormFillGcForm 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不正确"); |
|
|
} |
|
|
} |
|
|
@ -417,10 +398,9 @@ public class StudyFormFillServiceImpl extends ServiceImpl |
|
|
//稽查轨迹 |
|
|
//稽查轨迹 |
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
formData.put("生长情况", form.getQmyy()); |
|
|
formData.put("生长情况", form.getQmyy()); |
|
|
formData.put("备注", form.getRemark()); |
|
|
|
|
|
studyFormFillJcgjService.saveJcgj(studyFormFillOld.getId(), JcgjlxEnum.lc.getValue(), form.getQmyy(), JcmcysEnum.orange.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName()); |
|
|
|
|
|
|
|
|
studyFormFillJcgjService.saveJcgj(studyFormFillOld.getId(), JcgjlxEnum.lc.getValue(), form.getQmyy(), JcmcysEnum.orange.getValue(), null, SecurityUtils.getLoginUser().getSysUser(), form.getRemark(),null ); |
|
|
//签名信息 |
|
|
//签名信息 |
|
|
studyFormFillQmxxService.saveQmxx(studyFormFillOld.getId(), form.getQmyy(), SecurityUtils.getUserId(), SecurityUtils.getNickName(), form.getRemark()); |
|
|
|
|
|
|
|
|
studyFormFillQmxxService.saveQmxx(studyFormFillOld.getId(), form.getQmyy(), qmr, form.getRemark()); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -432,8 +412,9 @@ public class StudyFormFillServiceImpl extends ServiceImpl |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public void fhtg(StudyFormFill studyFormFill) { |
|
|
public void fhtg(StudyFormFill studyFormFill) { |
|
|
|
|
|
SysUser qmr=SecurityUtils.getLoginUser().getSysUser(); |
|
|
//验证签名人密码 |
|
|
//验证签名人密码 |
|
|
checkPassword(SecurityUtils.getLoginUser().getSysUser(), studyFormFill.getQmrmm()); |
|
|
|
|
|
|
|
|
checkPassword(qmr, studyFormFill.getQmrmm()); |
|
|
if (studyFormFill.getId() == null || studyFormFill.getId().longValue() < 0) { |
|
|
if (studyFormFill.getId() == null || studyFormFill.getId().longValue() < 0) { |
|
|
throw new ServiceException("参数id不正确"); |
|
|
throw new ServiceException("参数id不正确"); |
|
|
} |
|
|
} |
|
|
@ -448,11 +429,9 @@ public class StudyFormFillServiceImpl extends ServiceImpl |
|
|
studyFormFillOld.setBdnr(studyFormFill.getBdnr()); |
|
|
studyFormFillOld.setBdnr(studyFormFill.getBdnr()); |
|
|
this.updateById(studyFormFillOld); |
|
|
this.updateById(studyFormFillOld); |
|
|
//稽查轨迹 |
|
|
//稽查轨迹 |
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
|
|
|
formData.put("备注", studyFormFill.getRemark()); |
|
|
|
|
|
studyFormFillJcgjService.saveJcgj(studyFormFillOld.getId(), JcgjlxEnum.lc.getValue(), "复核通过", JcmcysEnum.green.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName()); |
|
|
|
|
|
|
|
|
studyFormFillJcgjService.saveJcgj(studyFormFillOld.getId(), JcgjlxEnum.lc.getValue(), "复核通过", JcmcysEnum.green.getValue(), null, SecurityUtils.getLoginUser().getSysUser(), studyFormFill.getRemark(),null ); |
|
|
//签名信息 |
|
|
//签名信息 |
|
|
studyFormFillQmxxService.saveQmxx(studyFormFillOld.getId(), "复核通过", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormFill.getRemark()); |
|
|
|
|
|
|
|
|
studyFormFillQmxxService.saveQmxx(studyFormFillOld.getId(), "复核通过", qmr, studyFormFill.getRemark()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -463,8 +442,9 @@ public class StudyFormFillServiceImpl extends ServiceImpl |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public void fhjj(StudyFormFill studyFormFill) { |
|
|
public void fhjj(StudyFormFill studyFormFill) { |
|
|
|
|
|
SysUser qmr=SecurityUtils.getLoginUser().getSysUser(); |
|
|
//验证签名人密码 |
|
|
//验证签名人密码 |
|
|
checkPassword(SecurityUtils.getLoginUser().getSysUser(), studyFormFill.getQmrmm()); |
|
|
|
|
|
|
|
|
checkPassword(qmr, studyFormFill.getQmrmm()); |
|
|
if (studyFormFill.getId() == null || studyFormFill.getId().longValue() < 0) { |
|
|
if (studyFormFill.getId() == null || studyFormFill.getId().longValue() < 0) { |
|
|
throw new ServiceException("参数id不正确"); |
|
|
throw new ServiceException("参数id不正确"); |
|
|
} |
|
|
} |
|
|
@ -481,9 +461,10 @@ public class StudyFormFillServiceImpl extends ServiceImpl |
|
|
//稽查轨迹 |
|
|
//稽查轨迹 |
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
formData.put("原因", studyFormFill.getRemark()); |
|
|
formData.put("原因", studyFormFill.getRemark()); |
|
|
studyFormFillJcgjService.saveJcgj(studyFormFillOld.getId(), JcgjlxEnum.lc.getValue(), "复核拒绝", JcmcysEnum.red.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName()); |
|
|
|
|
|
|
|
|
studyFormFillJcgjService.saveJcgj(studyFormFillOld.getId(), JcgjlxEnum.lc.getValue(), "复核拒绝", JcmcysEnum.red.getValue(), null, SecurityUtils.getLoginUser().getSysUser(), null,null ); |
|
|
|
|
|
|
|
|
//签名信息 |
|
|
//签名信息 |
|
|
studyFormFillQmxxService.saveQmxx(studyFormFillOld.getId(), "复核拒绝", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormFill.getRemark()); |
|
|
|
|
|
|
|
|
studyFormFillQmxxService.saveQmxx(studyFormFillOld.getId(), "复核拒绝", qmr, studyFormFill.getRemark()); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -494,8 +475,9 @@ public class StudyFormFillServiceImpl extends ServiceImpl |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public void tg(StudyFormFill studyFormFill) { |
|
|
public void tg(StudyFormFill studyFormFill) { |
|
|
|
|
|
SysUser qmr=SecurityUtils.getLoginUser().getSysUser(); |
|
|
//验证签名人密码 |
|
|
//验证签名人密码 |
|
|
checkPassword(SecurityUtils.getLoginUser().getSysUser(), studyFormFill.getQmrmm()); |
|
|
|
|
|
|
|
|
checkPassword(qmr, studyFormFill.getQmrmm()); |
|
|
if (studyFormFill.getId() == null || studyFormFill.getId().longValue() < 0) { |
|
|
if (studyFormFill.getId() == null || studyFormFill.getId().longValue() < 0) { |
|
|
throw new ServiceException("参数id不正确"); |
|
|
throw new ServiceException("参数id不正确"); |
|
|
} |
|
|
} |
|
|
@ -512,9 +494,10 @@ public class StudyFormFillServiceImpl extends ServiceImpl |
|
|
//稽查轨迹 |
|
|
//稽查轨迹 |
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
formData.put("原因", studyFormFill.getRemark()); |
|
|
formData.put("原因", studyFormFill.getRemark()); |
|
|
studyFormFillJcgjService.saveJcgj(studyFormFillOld.getId(), JcgjlxEnum.lc.getValue(), "免复核通过", JcmcysEnum.green.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName()); |
|
|
|
|
|
|
|
|
studyFormFillJcgjService.saveJcgj(studyFormFillOld.getId(), JcgjlxEnum.lc.getValue(), "免复核通过", JcmcysEnum.green.getValue(), null, SecurityUtils.getLoginUser().getSysUser(), null,null ); |
|
|
|
|
|
|
|
|
//签名信息 |
|
|
//签名信息 |
|
|
studyFormFillQmxxService.saveQmxx(studyFormFillOld.getId(), "免复核通过", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormFill.getRemark()); |
|
|
|
|
|
|
|
|
studyFormFillQmxxService.saveQmxx(studyFormFillOld.getId(), "免复核通过", qmr, studyFormFill.getRemark()); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -525,8 +508,9 @@ public class StudyFormFillServiceImpl extends ServiceImpl |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public void sy(StudyFormFill studyFormFill) { |
|
|
public void sy(StudyFormFill studyFormFill) { |
|
|
|
|
|
SysUser qmr=SecurityUtils.getLoginUser().getSysUser(); |
|
|
//验证签名人密码 |
|
|
//验证签名人密码 |
|
|
checkPassword(SecurityUtils.getLoginUser().getSysUser(), studyFormFill.getQmrmm()); |
|
|
|
|
|
|
|
|
checkPassword(qmr, studyFormFill.getQmrmm()); |
|
|
if (studyFormFill.getId() == null || studyFormFill.getId().longValue() < 0) { |
|
|
if (studyFormFill.getId() == null || studyFormFill.getId().longValue() < 0) { |
|
|
throw new ServiceException("参数id不正确"); |
|
|
throw new ServiceException("参数id不正确"); |
|
|
} |
|
|
} |
|
|
@ -540,11 +524,9 @@ public class StudyFormFillServiceImpl extends ServiceImpl |
|
|
studyFormFillOld.setBdnr(studyFormFill.getBdnr()); |
|
|
studyFormFillOld.setBdnr(studyFormFill.getBdnr()); |
|
|
this.updateById(studyFormFillOld); |
|
|
this.updateById(studyFormFillOld); |
|
|
//稽查轨迹 |
|
|
//稽查轨迹 |
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
|
|
|
formData.put("备注", studyFormFill.getRemark()); |
|
|
|
|
|
studyFormFillJcgjService.saveJcgj(studyFormFillOld.getId(), JcgjlxEnum.lc.getValue(), "已审阅", JcmcysEnum.green.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName()); |
|
|
|
|
|
|
|
|
studyFormFillJcgjService.saveJcgj(studyFormFillOld.getId(), JcgjlxEnum.lc.getValue(), "已审阅", JcmcysEnum.green.getValue(), null, SecurityUtils.getLoginUser().getSysUser(), studyFormFill.getRemark(),null ); |
|
|
//签名信息 |
|
|
//签名信息 |
|
|
studyFormFillQmxxService.saveQmxx(studyFormFillOld.getId(), "已审阅", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormFill.getRemark()); |
|
|
|
|
|
|
|
|
studyFormFillQmxxService.saveQmxx(studyFormFillOld.getId(), "已审阅", qmr, studyFormFill.getRemark()); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -566,7 +548,24 @@ public class StudyFormFillServiceImpl extends ServiceImpl |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public void updateBdnr(StudyFormFillUpdateForm form) { |
|
|
public void updateBdnr(StudyFormFillUpdateForm form) { |
|
|
baseMapper.updateBdnr(form.getId(), form.getBdnr()); |
|
|
|
|
|
|
|
|
//更新表单内容 |
|
|
|
|
|
baseMapper.updateBdnr(form.getId(), form.getBdnr(),form.getZdxgjl()); |
|
|
|
|
|
// {"type":"fieldChanged","newRecord":{"userNameCn":"谭飞","userNameEn":"tf","key":"_versionNum","field":"试验基本信息-版本号","oldValue":"1.0","value":"1.0333","title":"修改记录","time":"2026-01-14 19:44:02"},"resourceList":[{"userNameCn":"谭飞","userNameEn":"tf","key":"_versionNum","field":"试验基本信息-版本号","oldValue":"1.0","value":"1.0","title":"修改记录","time":"2026-01-14 19:43:57"}]} |
|
|
|
|
|
//稽查轨迹 |
|
|
|
|
|
JSONObject jsonObject=JSONObject.parseObject(form.getZdxgjl()); |
|
|
|
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
|
|
|
if(StringUtils.isNoneBlank(jsonObject.getString("oldValue"))){ |
|
|
|
|
|
formData.put("字段名", jsonObject.getString("field")); |
|
|
|
|
|
formData.put("原值", jsonObject.getString("oldValue")); |
|
|
|
|
|
formData.put("新值", jsonObject.getString("value")); |
|
|
|
|
|
formData.put("原因", "todo"); |
|
|
|
|
|
studyFormFillJcgjService.saveJcgj(form.getId(), JcgjlxEnum.lc.getValue(), "修改记录", JcmcysEnum.green.getValue(), formData, SecurityUtils.getLoginUser().getSysUser(),null,jsonObject.getDate("time")); |
|
|
|
|
|
}else{ |
|
|
|
|
|
formData.put("字段名", jsonObject.getString("field")); |
|
|
|
|
|
formData.put("填入值", jsonObject.getString("value")); |
|
|
|
|
|
formData.put("填写人", SecurityUtils.getNickName()); |
|
|
|
|
|
studyFormFillJcgjService.saveJcgj(form.getId(), JcgjlxEnum.lc.getValue(), "填写", JcmcysEnum.green.getValue(), formData, null ,null,jsonObject.getDate("time")); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
@ -574,16 +573,31 @@ public class StudyFormFillServiceImpl extends ServiceImpl |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public void updateFhyjjl(StudyFormFillUpdateForm form) { |
|
|
public void updateFhyjjl(StudyFormFillUpdateForm form) { |
|
|
|
|
|
// {"type":"reply","newRecord":{"userNameCn":"谭飞","userNameEn":"tf","key":"_versionNum","field":"试验基本信息-版本号","title":"复核意见","time":"2026-01-14 20:23:30","content":"qweqe"},"resourceList":[{"userNameCn":"谭飞","userNameEn":"tf","key":"_versionNum","field":"试验基本信息-版本号","title":"复核意见","time":"2026-01-14 20:23:30","content":"qweqe"},{"userNameCn":"谭飞","userNameEn":"tf","key":"_methodCode","field":"试验基本信息-方法编号","title":"复核意见","time":"2026-01-14 20:23:28","content":"qweqw"}]} |
|
|
|
|
|
// {"type":"content","newRecord":{"userNameCn":"谭飞","userNameEn":"tf","key":"_versionNum","field":"试验基本信息-版本号","title":"复核意见","time":"2026-01-14 20:23:30","content":"qweqe"},"resourceList":[{"userNameCn":"谭飞","userNameEn":"tf","key":"_versionNum","field":"试验基本信息-版本号","title":"复核意见","time":"2026-01-14 20:23:30","content":"qweqe"},{"userNameCn":"谭飞","userNameEn":"tf","key":"_methodCode","field":"试验基本信息-方法编号","title":"复核意见","time":"2026-01-14 20:23:28","content":"qweqw"}]} |
|
|
|
|
|
//更新复核意见 |
|
|
baseMapper.updateFhyjjl(form.getId(), form.getFhyjjl()); |
|
|
baseMapper.updateFhyjjl(form.getId(), form.getFhyjjl()); |
|
|
|
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
|
|
|
if(StringUtils.isNoneBlank(form.getContent())){ |
|
|
|
|
|
JSONObject jsonObject=JSONObject.parseObject(form.getContent()); |
|
|
|
|
|
formData.put("字段名", jsonObject.getString("field")); |
|
|
|
|
|
formData.put("意见回复", jsonObject.getString("content")); |
|
|
|
|
|
studyFormFillJcgjService.saveJcgj(form.getId(), JcgjlxEnum.lc.getValue(), "意见回复", JcmcysEnum.blue.getValue(), formData, SecurityUtils.getLoginUser().getSysUser(), null,jsonObject.getDate("time")); |
|
|
|
|
|
}else{ |
|
|
|
|
|
JSONObject jsonObject=JSONObject.parseObject(form.getReplay()); |
|
|
|
|
|
formData.put("字段名", jsonObject.getString("field")); |
|
|
|
|
|
formData.put("复核意见", jsonObject.getString("content")); |
|
|
|
|
|
studyFormFillJcgjService.saveJcgj(form.getId(), JcgjlxEnum.lc.getValue(), "复核意见", JcmcysEnum.blue.getValue(), formData, SecurityUtils.getLoginUser().getSysUser(), null,jsonObject.getDate("time")); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 更新字段修改记录 |
|
|
|
|
|
|
|
|
* 更新字段勾选记录 |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public void updateZdxgjl(StudyFormFillUpdateForm form) { |
|
|
|
|
|
baseMapper.updateZdxgjl(form.getId(), form.getZdxgjl()); |
|
|
|
|
|
//新增稽查轨迹 todo |
|
|
|
|
|
|
|
|
public void updateZdgxjl(StudyFormFillUpdateForm form) { |
|
|
|
|
|
//更新勾选记录 |
|
|
|
|
|
baseMapper.updateZdgxjl(form.getId(), form.getZdgxjl()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |