|
|
|
@ -5,31 +5,28 @@ import java.util.*; |
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
|
import com.hxhq.business.domain.Mjy; |
|
|
|
import com.hxhq.business.domain.Sj; |
|
|
|
import com.hxhq.business.domain.SjTz; |
|
|
|
import com.hxhq.business.domain.SjkcJcgj; |
|
|
|
import com.hxhq.business.domain.SjJcgj; |
|
|
|
import com.hxhq.business.enums.zykgl.JcgjlxEnum; |
|
|
|
import com.hxhq.business.enums.zykgl.JcmcysEnum; |
|
|
|
import com.hxhq.business.enums.zykgl.JyztEnum; |
|
|
|
import com.hxhq.business.enums.zykgl.ZjztEnum; |
|
|
|
import com.hxhq.business.form.mjy.GdForm; |
|
|
|
import com.hxhq.business.form.mjy.JyForm; |
|
|
|
import com.hxhq.business.form.sj.*; |
|
|
|
import com.hxhq.business.service.ISjTzService; |
|
|
|
import com.hxhq.business.service.ISjkcJcgjService; |
|
|
|
import com.hxhq.business.service.ISjJcgjService; |
|
|
|
import com.hxhq.business.utils.JctUtil; |
|
|
|
import com.hxhq.business.utils.ObjectCompareUtil; |
|
|
|
import com.hxhq.common.core.exception.ServiceException; |
|
|
|
import com.hxhq.common.core.utils.DateUtils; |
|
|
|
import com.hxhq.common.security.utils.SecurityUtils; |
|
|
|
import com.hxhq.system.api.domain.SysUser; |
|
|
|
import com.hxhq.system.service.ISysUserService; |
|
|
|
import org.apache.commons.lang3.math.NumberUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import com.hxhq.business.mapper.SjkcMapper; |
|
|
|
import com.hxhq.business.domain.Sjkc; |
|
|
|
import com.hxhq.business.service.ISjkcService; |
|
|
|
import com.hxhq.business.mapper.SjMapper; |
|
|
|
import com.hxhq.business.service.ISjService; |
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
@ -40,13 +37,13 @@ import org.springframework.transaction.annotation.Transactional; |
|
|
|
* @date 2025-12-22 |
|
|
|
*/ |
|
|
|
@Service |
|
|
|
public class SjkcServiceImpl extends ServiceImpl<SjkcMapper, Sjkc> implements ISjkcService |
|
|
|
public class SjServiceImpl extends ServiceImpl<SjMapper, Sj> implements ISjService |
|
|
|
{ |
|
|
|
@Autowired |
|
|
|
private ISysUserService sysUserService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private ISjkcJcgjService sjkcJcgjService; |
|
|
|
private ISjJcgjService sjkcJcgjService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private ISjTzService sjTzService; |
|
|
|
@ -54,13 +51,13 @@ public class SjkcServiceImpl extends ServiceImpl implements IS |
|
|
|
/** |
|
|
|
* 查询试剂库存列表 |
|
|
|
* |
|
|
|
* @param sjkc 试剂库存 |
|
|
|
* @param sj 试剂库存 |
|
|
|
* @return 试剂库存 |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public List<Sjkc> queryList(Sjkc sjkc) |
|
|
|
public List<Sj> queryList(Sj sj) |
|
|
|
{ |
|
|
|
QueryWrapper<Sjkc> queryWrapper = Wrappers.query(); |
|
|
|
QueryWrapper<Sj> queryWrapper = Wrappers.query(); |
|
|
|
return this.list(queryWrapper); |
|
|
|
} |
|
|
|
|
|
|
|
@ -71,26 +68,26 @@ public class SjkcServiceImpl extends ServiceImpl implements IS |
|
|
|
if (form.getId() == null || form.getId().longValue() < 0) { |
|
|
|
throw new SecurityException("参数id不正确"); |
|
|
|
} |
|
|
|
Sjkc sjkcOld = this.getById(form.getId()); |
|
|
|
if (sjkcOld == null) { |
|
|
|
Sj sjOld = this.getById(form.getId()); |
|
|
|
if (sjOld == null) { |
|
|
|
throw new SecurityException("试剂不存在或已删除"); |
|
|
|
} |
|
|
|
if (!sjkcOld.getZjzt().equals(ZjztEnum.rk.getValue())) { |
|
|
|
throw new SecurityException("试剂【" + sjkcOld.getMc() + "】不是入库状态,不能修改库存"); |
|
|
|
if (!sjOld.getZjzt().equals(ZjztEnum.rk.getValue())) { |
|
|
|
throw new SecurityException("试剂【" + sjOld.getMc() + "】不是入库状态,不能修改库存"); |
|
|
|
} |
|
|
|
List<ObjectCompareUtil.FieldChange> fieldChanges = ObjectCompareUtil.compareObjects(sjkcOld, form); |
|
|
|
List<ObjectCompareUtil.FieldChange> fieldChanges = ObjectCompareUtil.compareObjects(sjOld, form); |
|
|
|
if (fieldChanges.size() == 0) { |
|
|
|
throw new SecurityException("你没有修改任何内容"); |
|
|
|
} |
|
|
|
sjkcOld.setKcdw(form.getKcdw()); |
|
|
|
sjkcOld.setKc(form.getKc()); |
|
|
|
this.updateById(sjkcOld); |
|
|
|
sjOld.setKcdw(form.getKcdw()); |
|
|
|
sjOld.setKc(form.getKc()); |
|
|
|
this.updateById(sjOld); |
|
|
|
|
|
|
|
List<SjkcJcgj> sjkcJcgjList = new ArrayList<>(); |
|
|
|
List<SjJcgj> sjJcgjList = new ArrayList<>(); |
|
|
|
//region 稽查轨迹 |
|
|
|
for (ObjectCompareUtil.FieldChange fieldChange : fieldChanges) { |
|
|
|
SjkcJcgj mjyJcgj = new SjkcJcgj(); |
|
|
|
mjyJcgj.setSjkcId(sjkcOld.getId()); |
|
|
|
SjJcgj mjyJcgj = new SjJcgj(); |
|
|
|
mjyJcgj.setSjId(sjOld.getId()); |
|
|
|
mjyJcgj.setJcgjlx(JcgjlxEnum.lc.getValue()); |
|
|
|
mjyJcgj.setJcmc("修改库存"); |
|
|
|
mjyJcgj.setJcmcys(JcmcysEnum.green.getValue()); |
|
|
|
@ -98,13 +95,13 @@ public class SjkcServiceImpl extends ServiceImpl implements IS |
|
|
|
mjyJcgj.setQmyy("修改库存"); |
|
|
|
mjyJcgj.setQmrId(qmr.getUserId()); |
|
|
|
mjyJcgj.setQmrMc(qmr.getNickName()); |
|
|
|
sjkcJcgjList.add(mjyJcgj); |
|
|
|
sjJcgjList.add(mjyJcgj); |
|
|
|
} |
|
|
|
sjkcJcgjService.saveBatch(sjkcJcgjList); |
|
|
|
sjkcJcgjService.saveBatch(sjJcgjList); |
|
|
|
//endregion |
|
|
|
|
|
|
|
// 台账 |
|
|
|
sjTzService.saveTz(sjkcOld.getId(), qmr.getUserId(), qmr.getNickName(), "修改库存", form.getKc(), form.getKcdw(), null); |
|
|
|
sjTzService.saveTz(sjOld.getId(), qmr.getUserId(), qmr.getNickName(), "修改库存", form.getKc(), form.getKcdw(), null); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@ -115,7 +112,7 @@ public class SjkcServiceImpl extends ServiceImpl implements IS |
|
|
|
if (form.getId() == null || form.getId() < 0) { |
|
|
|
throw new SecurityException("参数id不正确"); |
|
|
|
} |
|
|
|
Sjkc sjOld = this.getById(form.getId()); |
|
|
|
Sj sjOld = this.getById(form.getId()); |
|
|
|
if (sjOld == null) { |
|
|
|
throw new SecurityException("试剂不存在或已删除"); |
|
|
|
} |
|
|
|
@ -138,16 +135,16 @@ public class SjkcServiceImpl extends ServiceImpl implements IS |
|
|
|
jcnrMap.put("处置方式", form.getCzfs()); |
|
|
|
jcnrMap.put("处置量", form.getCzl()); |
|
|
|
jcnrMap.put("原因", form.getRemark()); |
|
|
|
SjkcJcgj sjkcJcgj = new SjkcJcgj(); |
|
|
|
sjkcJcgj.setSjkcId(sjOld.getId()); |
|
|
|
sjkcJcgj.setJcgjlx(JcgjlxEnum.bj.getValue()); |
|
|
|
sjkcJcgj.setJcmc("处置"); |
|
|
|
sjkcJcgj.setJcnr(JctUtil.formatStr(jcnrMap)); |
|
|
|
sjkcJcgj.setJcmcys(JcmcysEnum.green.getValue()); |
|
|
|
sjkcJcgj.setQmyy("处置"); |
|
|
|
sjkcJcgj.setQmrId(qmr.getUserId()); |
|
|
|
sjkcJcgj.setQmrMc(qmr.getNickName()); |
|
|
|
sjkcJcgjService.save(sjkcJcgj); |
|
|
|
SjJcgj sjJcgj = new SjJcgj(); |
|
|
|
sjJcgj.setSjId(sjOld.getId()); |
|
|
|
sjJcgj.setJcgjlx(JcgjlxEnum.bj.getValue()); |
|
|
|
sjJcgj.setJcmc("处置"); |
|
|
|
sjJcgj.setJcnr(JctUtil.formatStr(jcnrMap)); |
|
|
|
sjJcgj.setJcmcys(JcmcysEnum.green.getValue()); |
|
|
|
sjJcgj.setQmyy("处置"); |
|
|
|
sjJcgj.setQmrId(qmr.getUserId()); |
|
|
|
sjJcgj.setQmrMc(qmr.getNickName()); |
|
|
|
sjkcJcgjService.save(sjJcgj); |
|
|
|
|
|
|
|
// 台账 |
|
|
|
sjTzService.saveTz(sjOld.getId(), qmr.getUserId(), qmr.getNickName(), "处置", form.getCzl(), sjOld.getKcdw(), form.getRemark()); |
|
|
|
@ -160,54 +157,54 @@ public class SjkcServiceImpl extends ServiceImpl implements IS |
|
|
|
SysUser qmr = sysUserService.selectUserById(form.getQmrId()); |
|
|
|
//验证签名人密码 todo |
|
|
|
|
|
|
|
List<Sjkc> sjkcList = new ArrayList<>(); |
|
|
|
Map<Long, Sjkc> map = new HashMap<>(); |
|
|
|
List<Sj> sjList = new ArrayList<>(); |
|
|
|
Map<Long, Sj> map = new HashMap<>(); |
|
|
|
for (PlczSjItemForm itemForm : form.getList()) { |
|
|
|
if (itemForm.getId() == null || itemForm.getId() < 0) { |
|
|
|
throw new SecurityException("参数id不正确"); |
|
|
|
} |
|
|
|
Sjkc sjkc = this.getById(itemForm.getId()); |
|
|
|
if (sjkc == null) { |
|
|
|
Sj sj = this.getById(itemForm.getId()); |
|
|
|
if (sj == null) { |
|
|
|
throw new SecurityException("试剂不存在或已删除"); |
|
|
|
} |
|
|
|
if (!sjkc.getZjzt().equals(ZjztEnum.rk.getValue())) { |
|
|
|
throw new SecurityException("试剂【" + sjkc.getMc() + "】不是入库状态,不能处置"); |
|
|
|
if (!sj.getZjzt().equals(ZjztEnum.rk.getValue())) { |
|
|
|
throw new SecurityException("试剂【" + sj.getMc() + "】不是入库状态,不能处置"); |
|
|
|
} |
|
|
|
if(!NumberUtils.isParsable(itemForm.getCzl())) { |
|
|
|
throw new ServiceException("请输入正确的处置量"); |
|
|
|
} |
|
|
|
BigDecimal czl = new BigDecimal(itemForm.getCzl()); |
|
|
|
BigDecimal kc = new BigDecimal(sjkc.getKc()); |
|
|
|
BigDecimal kc = new BigDecimal(sj.getKc()); |
|
|
|
if(czl.compareTo(kc) > 0) { |
|
|
|
throw new ServiceException("处置量不应大于库存量"); |
|
|
|
} |
|
|
|
kc = kc.subtract(czl); |
|
|
|
sjkc.setKc(kc.toString()); |
|
|
|
sjkcList.add(sjkc); |
|
|
|
sj.setKc(kc.toString()); |
|
|
|
sjList.add(sj); |
|
|
|
|
|
|
|
map.put(sjkc.getId(), sjkc); |
|
|
|
map.put(sj.getId(), sj); |
|
|
|
} |
|
|
|
updateBatchById(sjkcList); |
|
|
|
updateBatchById(sjList); |
|
|
|
|
|
|
|
List<SjkcJcgj> sjkcJcgjList = new ArrayList<>(); |
|
|
|
List<SjJcgj> sjJcgjList = new ArrayList<>(); |
|
|
|
List<SjTz> sjTzList = new ArrayList<>(); |
|
|
|
for (PlczSjItemForm itemForm : form.getList()) { |
|
|
|
Sjkc sjkc = map.get(itemForm.getId()); |
|
|
|
Sj sj = map.get(itemForm.getId()); |
|
|
|
|
|
|
|
LinkedHashMap<String, String> jcnrMap = new LinkedHashMap<>(); |
|
|
|
jcnrMap.put("处置方式", itemForm.getCzfs()); |
|
|
|
jcnrMap.put("处置量", itemForm.getCzl()); |
|
|
|
jcnrMap.put("原因", itemForm.getRemark()); |
|
|
|
SjkcJcgj sjkcJcgj = new SjkcJcgj(); |
|
|
|
sjkcJcgj.setSjkcId(itemForm.getId()); |
|
|
|
sjkcJcgj.setJcgjlx(JcgjlxEnum.bj.getValue()); |
|
|
|
sjkcJcgj.setJcmc("处置"); |
|
|
|
sjkcJcgj.setJcnr(JctUtil.formatStr(jcnrMap)); |
|
|
|
sjkcJcgj.setJcmcys(JcmcysEnum.green.getValue()); |
|
|
|
sjkcJcgj.setQmyy("处置"); |
|
|
|
sjkcJcgj.setQmrId(qmr.getUserId()); |
|
|
|
sjkcJcgj.setQmrMc(qmr.getNickName()); |
|
|
|
sjkcJcgjList.add(sjkcJcgj); |
|
|
|
SjJcgj sjJcgj = new SjJcgj(); |
|
|
|
sjJcgj.setSjId(itemForm.getId()); |
|
|
|
sjJcgj.setJcgjlx(JcgjlxEnum.bj.getValue()); |
|
|
|
sjJcgj.setJcmc("处置"); |
|
|
|
sjJcgj.setJcnr(JctUtil.formatStr(jcnrMap)); |
|
|
|
sjJcgj.setJcmcys(JcmcysEnum.green.getValue()); |
|
|
|
sjJcgj.setQmyy("处置"); |
|
|
|
sjJcgj.setQmrId(qmr.getUserId()); |
|
|
|
sjJcgj.setQmrMc(qmr.getNickName()); |
|
|
|
sjJcgjList.add(sjJcgj); |
|
|
|
|
|
|
|
// 台账 |
|
|
|
SjTz sjTz = new SjTz(); |
|
|
|
@ -215,11 +212,11 @@ public class SjkcServiceImpl extends ServiceImpl implements IS |
|
|
|
sjTz.setQmrMc(qmr.getNickName()); |
|
|
|
sjTz.setQmyy("处置"); |
|
|
|
sjTz.setCzl(itemForm.getCzl()); |
|
|
|
sjTz.setCzldw(sjkc.getKcdw()); |
|
|
|
sjTz.setCzldw(sj.getKcdw()); |
|
|
|
sjTz.setRemark(itemForm.getRemark()); |
|
|
|
sjTzList.add(sjTz); |
|
|
|
} |
|
|
|
sjkcJcgjService.saveBatch(sjkcJcgjList); |
|
|
|
sjkcJcgjService.saveBatch(sjJcgjList); |
|
|
|
sjTzService.saveBatch(sjTzList); |
|
|
|
|
|
|
|
} |
|
|
|
@ -232,21 +229,21 @@ public class SjkcServiceImpl extends ServiceImpl implements IS |
|
|
|
if (form.getId() == null || form.getId().longValue() < 0) { |
|
|
|
throw new SecurityException("参数id不正确"); |
|
|
|
} |
|
|
|
Sjkc sjkc = this.getById(form.getId()); |
|
|
|
if (sjkc == null) { |
|
|
|
Sj sj = this.getById(form.getId()); |
|
|
|
if (sj == null) { |
|
|
|
throw new SecurityException("试剂不存在或已删除"); |
|
|
|
} |
|
|
|
if (!sjkc.getZjzt().equals(ZjztEnum.rk.getValue())) { |
|
|
|
throw new SecurityException("试剂【" + sjkc.getMc() + "】不是入库状态,不能锁定"); |
|
|
|
if (!sj.getZjzt().equals(ZjztEnum.rk.getValue())) { |
|
|
|
throw new SecurityException("试剂【" + sj.getMc() + "】不是入库状态,不能锁定"); |
|
|
|
} |
|
|
|
sjkc.setZjzt(ZjztEnum.ysd.getValue()); |
|
|
|
this.updateById(sjkc); |
|
|
|
sj.setZjzt(ZjztEnum.ysd.getValue()); |
|
|
|
this.updateById(sj); |
|
|
|
//稽查轨迹 |
|
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
|
formData.put("备注", form.getRemark()); |
|
|
|
formData.put("签名意义", "锁定试剂"); |
|
|
|
formData.put("签名人", qmr.getNickName()); |
|
|
|
sjkcJcgjService.saveJcgj(sjkc.getId(), JcgjlxEnum.lc.getValue(), "锁定试剂", JcmcysEnum.green.getValue(), JctUtil.formatStr(formData)); |
|
|
|
sjkcJcgjService.saveJcgj(sj.getId(), JcgjlxEnum.lc.getValue(), "锁定试剂", JcmcysEnum.green.getValue(), JctUtil.formatStr(formData)); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@ -255,29 +252,29 @@ public class SjkcServiceImpl extends ServiceImpl implements IS |
|
|
|
SysUser qmr = sysUserService.selectUserById(form.getQmrId()); |
|
|
|
//验证签名人密码 todo |
|
|
|
|
|
|
|
List<Sjkc> sjkcList = new ArrayList<>(); |
|
|
|
List<Sj> sjList = new ArrayList<>(); |
|
|
|
for (Long id : form.getIds()) { |
|
|
|
if (id == null || id < 0) { |
|
|
|
throw new SecurityException("参数id不正确"); |
|
|
|
} |
|
|
|
Sjkc sjkc = this.getById(id); |
|
|
|
if (sjkc == null) { |
|
|
|
Sj sj = this.getById(id); |
|
|
|
if (sj == null) { |
|
|
|
throw new SecurityException("试剂不存在或已删除"); |
|
|
|
} |
|
|
|
if (!sjkc.getZjzt().equals(ZjztEnum.rk.getValue())) { |
|
|
|
throw new SecurityException("试剂【" + sjkc.getMc() + "】不是入库状态,不能锁定"); |
|
|
|
if (!sj.getZjzt().equals(ZjztEnum.rk.getValue())) { |
|
|
|
throw new SecurityException("试剂【" + sj.getMc() + "】不是入库状态,不能锁定"); |
|
|
|
} |
|
|
|
sjkc.setZjzt(ZjztEnum.ysd.getValue()); |
|
|
|
sjkcList.add(sjkc); |
|
|
|
sj.setZjzt(ZjztEnum.ysd.getValue()); |
|
|
|
sjList.add(sj); |
|
|
|
} |
|
|
|
this.updateBatchById(sjkcList); |
|
|
|
this.updateBatchById(sjList); |
|
|
|
//稽查轨迹 |
|
|
|
for (Sjkc sjkc : sjkcList) { |
|
|
|
for (Sj sj : sjList) { |
|
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
|
formData.put("备注", form.getRemark()); |
|
|
|
formData.put("签名意义", "锁定试剂"); |
|
|
|
formData.put("签名人", qmr.getNickName()); |
|
|
|
sjkcJcgjService.saveJcgj(sjkc.getId(), JcgjlxEnum.lc.getValue(), "锁定试剂", JcmcysEnum.green.getValue(), JctUtil.formatStr(formData)); |
|
|
|
sjkcJcgjService.saveJcgj(sj.getId(), JcgjlxEnum.lc.getValue(), "锁定试剂", JcmcysEnum.green.getValue(), JctUtil.formatStr(formData)); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
@ -289,7 +286,7 @@ public class SjkcServiceImpl extends ServiceImpl implements IS |
|
|
|
if (form.getId() == null || form.getId().longValue() < 0) { |
|
|
|
throw new SecurityException("参数id不正确"); |
|
|
|
} |
|
|
|
Sjkc sjOld = this.getById(form.getId()); |
|
|
|
Sj sjOld = this.getById(form.getId()); |
|
|
|
if (sjOld == null) { |
|
|
|
throw new SecurityException("试剂不存在或已删除"); |
|
|
|
} |
|
|
|
@ -314,7 +311,7 @@ public class SjkcServiceImpl extends ServiceImpl implements IS |
|
|
|
if (form.getId() == null || form.getId().longValue() < 0) { |
|
|
|
throw new SecurityException("参数id不正确"); |
|
|
|
} |
|
|
|
Sjkc sjOld = this.getById(form.getId()); |
|
|
|
Sj sjOld = this.getById(form.getId()); |
|
|
|
if (sjOld == null) { |
|
|
|
throw new SecurityException("试剂不存在或已删除"); |
|
|
|
} |
|
|
|
@ -346,7 +343,7 @@ public class SjkcServiceImpl extends ServiceImpl implements IS |
|
|
|
if (form.getId() == null || form.getId().longValue() < 0) { |
|
|
|
throw new SecurityException("参数id不正确"); |
|
|
|
} |
|
|
|
Sjkc sjOld = this.getById(form.getId()); |
|
|
|
Sj sjOld = this.getById(form.getId()); |
|
|
|
if (sjOld == null) { |
|
|
|
throw new SecurityException("试剂不存在或已删除"); |
|
|
|
} |
|
|
|
@ -371,7 +368,7 @@ public class SjkcServiceImpl extends ServiceImpl implements IS |
|
|
|
if (form.getId() == null || form.getId().longValue() < 0) { |
|
|
|
throw new SecurityException("参数id不正确"); |
|
|
|
} |
|
|
|
Sjkc sjOld = this.getById(form.getId()); |
|
|
|
Sj sjOld = this.getById(form.getId()); |
|
|
|
if (sjOld == null) { |
|
|
|
throw new SecurityException("试剂不存在或已删除"); |
|
|
|
} |
|
|
|
@ -394,12 +391,12 @@ public class SjkcServiceImpl extends ServiceImpl implements IS |
|
|
|
SysUser qmr = sysUserService.selectUserById(form.getQmrId()); |
|
|
|
//验证签名人密码 todo |
|
|
|
|
|
|
|
List<Sjkc> sjkcList = new ArrayList<>(); |
|
|
|
List<Sj> sjList = new ArrayList<>(); |
|
|
|
for (Long id : form.getIds()) { |
|
|
|
if (id == null || id < 0) { |
|
|
|
throw new SecurityException("参数id不正确"); |
|
|
|
} |
|
|
|
Sjkc sjOld = this.getById(id); |
|
|
|
Sj sjOld = this.getById(id); |
|
|
|
if (sjOld == null) { |
|
|
|
throw new SecurityException("试剂不存在或已删除"); |
|
|
|
} |
|
|
|
@ -408,17 +405,17 @@ public class SjkcServiceImpl extends ServiceImpl implements IS |
|
|
|
} |
|
|
|
//申请归档,档案员可在档案管理中进行确认归档审核;申请后状态更新成待归档; |
|
|
|
sjOld.setZjzt(ZjztEnum.dgd.getValue()); |
|
|
|
sjkcList.add(sjOld); |
|
|
|
sjList.add(sjOld); |
|
|
|
} |
|
|
|
this.updateBatchById(sjkcList); |
|
|
|
this.updateBatchById(sjList); |
|
|
|
|
|
|
|
//稽查轨迹 |
|
|
|
for (Sjkc sjkc : sjkcList) { |
|
|
|
for (Sj sj : sjList) { |
|
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
|
formData.put("备注", form.getRemark()); |
|
|
|
formData.put("签名意义", "申请归档"); |
|
|
|
formData.put("签名人", qmr.getNickName()); |
|
|
|
sjkcJcgjService.saveJcgj(sjkc.getId(), JcgjlxEnum.lc.getValue(), "申请归档", JcmcysEnum.green.getValue(), JctUtil.formatStr(formData)); |
|
|
|
sjkcJcgjService.saveJcgj(sj.getId(), JcgjlxEnum.lc.getValue(), "申请归档", JcmcysEnum.green.getValue(), JctUtil.formatStr(formData)); |
|
|
|
} |
|
|
|
|
|
|
|
} |