diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/dto/gyzj/ListDto.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/dto/gyzj/ListDto.java index b52ed9f..ca7e002 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/dto/gyzj/ListDto.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/dto/gyzj/ListDto.java @@ -11,6 +11,9 @@ public class ListDto { /** id */ private Long id; + /** resourceId */ + private Long resourceId; + /** 名称 */ private String mc; @@ -54,6 +57,9 @@ public class ListDto { /** 入库申请状态:1:未申请;3:申请入库*/ private Integer rksqzt; + /** 存储状态:1:取出;3:存储*/ + private Integer cczt; + /** 暂存柜 */ private String zcgMc; @@ -95,6 +101,22 @@ public class ListDto { /** 发放目的其他 */ private String mdOther; + public Long getResourceId() { + return resourceId; + } + + public void setResourceId(Long resourceId) { + this.resourceId = resourceId; + } + + public Integer getCczt() { + return cczt; + } + + public void setCczt(Integer cczt) { + this.cczt = cczt; + } + public Integer getRksqzt() { return rksqzt; } diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/dto/mjy/ListDto.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/dto/mjy/ListDto.java index 8b541d7..f81f22d 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/dto/mjy/ListDto.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/dto/mjy/ListDto.java @@ -11,6 +11,9 @@ public class ListDto { /** id */ private Long id; + /** resourceId */ + private Long resourceId; + /** 名称 */ private String mc; @@ -51,6 +54,9 @@ public class ListDto { /** 归还状态:1:未申请;3:申请归还 */ private Integer ghzt; + /** 存储状态:1:取出;3:存储*/ + private Integer cczt; + /** 暂存柜 */ private String zcgMc; @@ -100,6 +106,22 @@ public class ListDto { /** 试验归还状态:1:未归还;10:已归还*/ private Integer syghzt; + public Integer getCczt() { + return cczt; + } + + public void setCczt(Integer cczt) { + this.cczt = cczt; + } + + public Long getResourceId() { + return resourceId; + } + + public void setResourceId(Long resourceId) { + this.resourceId = resourceId; + } + public Integer getSyghzt() { return syghzt; } diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/GyzjServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/GyzjServiceImpl.java index 5c24eed..bbbba0f 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/GyzjServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/GyzjServiceImpl.java @@ -1206,10 +1206,16 @@ public class GyzjServiceImpl extends ServiceImpl implements IG if (!gyzjOld.getZjzt().equals(ZjztEnum.yff.getValue())) { throw new ServiceException("给药制剂【" + gyzjOld.getMc() + "】不是已发放状态,不能解锁"); } + gyzjOld.setCcwz(form.getCcwz()); + gyzjOld.setCctj(form.getCctj()); + gyzjOld.setCczt(CcztEnum.Cc.getValue()); gyzjOld.setCczt(CcztEnum.Cc.getValue()); this.updateById(gyzjOld); //稽查轨迹 - gyzjJcgjService.saveJcgj(gyzjOld.getId(), JcgjlxEnum.lc.getValue(), "存储", JcmcysEnum.green.getValue(), null, qmr, form.getRemark()); + Map formData = new LinkedHashMap<>(); + formData.put("存储位置", form.getCcwz()); + formData.put("存储条件", form.getCctj()); + gyzjJcgjService.saveJcgj(gyzjOld.getId(), JcgjlxEnum.lc.getValue(), "存储", JcmcysEnum.green.getValue(), formData, qmr, form.getRemark()); } diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/MjyServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/MjyServiceImpl.java index b8b5448..e9a65aa 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/MjyServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/MjyServiceImpl.java @@ -1100,9 +1100,14 @@ public class MjyServiceImpl extends ServiceImpl implements IMjyS throw new ServiceException("麻精药【" + mjyOld.getMc() + "】不是已发放状态,不能解锁"); } mjyOld.setCczt(CcztEnum.Cc.getValue()); + mjyOld.setCcwz(form.getCcwz()); + mjyOld.setCctj(form.getCctj()); this.updateById(mjyOld); - //稽查轨迹 - mjyJcgjService.saveJcgj(mjyOld.getId(), JcgjlxEnum.lc.getValue(), "存储", JcmcysEnum.green.getValue(), null, qmr, form.getRemark()); + // 稽查轨迹 + Map formData = new LinkedHashMap<>(); + formData.put("存储位置", form.getCcwz()); + formData.put("存储条件", form.getCctj()); + mjyJcgjService.saveJcgj(mjyOld.getId(), JcgjlxEnum.lc.getValue(), "存储", JcmcysEnum.green.getValue(), formData, qmr, form.getRemark()); } diff --git a/hxhq-modules/hxhq-system/src/main/resources/mapper/business/GyzjMapper.xml b/hxhq-modules/hxhq-system/src/main/resources/mapper/business/GyzjMapper.xml index 4c35f53..12e0d88 100644 --- a/hxhq-modules/hxhq-system/src/main/resources/mapper/business/GyzjMapper.xml +++ b/hxhq-modules/hxhq-system/src/main/resources/mapper/business/GyzjMapper.xml @@ -28,7 +28,7 @@