From 51f460f3b1a8b9fa365e4195c41bb9c5e16fcb7c Mon Sep 17 00:00:00 2001
From: luodangjia <luodangjia>
Date: 星期四, 02 一月 2025 10:55:24 +0800
Subject: [PATCH] merge

---
 medicalWaste-system/src/main/java/com/sinata/system/service/impl/MwStagingRoomServiceImpl.java |   29 +++++++++++++++++++++++++++++
 1 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/medicalWaste-system/src/main/java/com/sinata/system/service/impl/MwStagingRoomServiceImpl.java b/medicalWaste-system/src/main/java/com/sinata/system/service/impl/MwStagingRoomServiceImpl.java
index f9c2742..61e047f 100644
--- a/medicalWaste-system/src/main/java/com/sinata/system/service/impl/MwStagingRoomServiceImpl.java
+++ b/medicalWaste-system/src/main/java/com/sinata/system/service/impl/MwStagingRoomServiceImpl.java
@@ -83,6 +83,8 @@
         if (Objects.isNull(dto.getId())) {
             throw new ServiceException("暂存间id不能为空");
         }
+        MwStagingRoom mwStagingRoom = BeanUtils.copyBean(dto, MwStagingRoom.class);
+        updateById(mwStagingRoom);
     }
 
     /**
@@ -172,4 +174,31 @@
         response.setHeader("Content-disposition", "attachment;filename*=utf-8''" + fileName + ".xlsx");
         FastExcel.write(response.getOutputStream(), MwCheckoutRecordVO.class).sheet("暂存间出库记录").doWrite(list);
     }
+
+    @Override
+    public List<MwStagingRoomVO> queryStagingRoomList() {
+        return baseMapper.queryStagingRoomList();
+    }
+
+    /**
+     * 暂存间待处理医废分页列表
+     *
+     * @param query
+     * @return
+     */
+    @Override
+    public PageDTO<MwStorageRecordVO> temporarilyStoredMedicalWaste(StorageRecordQuery query) {
+        return PageDTO.of(baseMapper.temporarilyStoredMedicalWaste(query));
+    }
+
+    /**
+     * 根据医废查询使用列表
+     *
+     * @param id 微波设备id
+     * @return
+     */
+    @Override
+    public List<MwStorageRecordVO> queryMedicalWasteList(Long id) {
+        return baseMapper.queryMedicalWasteList(id);
+    }
 }

--
Gitblit v1.7.1