From 70584075b3953045342a513bf3372efb204c9d5c Mon Sep 17 00:00:00 2001
From: luodangjia <luodangjia>
Date: 星期三, 25 十二月 2024 10:36:42 +0800
Subject: [PATCH] merge

---
 medicalWaste-system/src/main/java/com/sinata/system/service/impl/MwCheckoutRecordServiceImpl.java |   18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/medicalWaste-system/src/main/java/com/sinata/system/service/impl/MwCheckoutRecordServiceImpl.java b/medicalWaste-system/src/main/java/com/sinata/system/service/impl/MwCheckoutRecordServiceImpl.java
index e27052e..ba11eae 100644
--- a/medicalWaste-system/src/main/java/com/sinata/system/service/impl/MwCheckoutRecordServiceImpl.java
+++ b/medicalWaste-system/src/main/java/com/sinata/system/service/impl/MwCheckoutRecordServiceImpl.java
@@ -7,6 +7,7 @@
 import com.sinata.common.utils.BeanUtils;
 import com.sinata.common.utils.StringUtils;
 import com.sinata.system.domain.MwCheckoutRecord;
+import com.sinata.system.domain.dto.CollectTotalUpDto;
 import com.sinata.system.domain.query.CheckoutRecordQuery;
 import com.sinata.system.domain.query.MwCheckoutRecordItemQuery;
 import com.sinata.system.domain.query.MwTransitRecordQuery;
@@ -23,6 +24,8 @@
 import javax.servlet.http.HttpServletResponse;
 import java.io.IOException;
 import java.net.URLEncoder;
+import java.time.LocalDate;
+import java.util.Collections;
 import java.util.List;
 
 /**
@@ -46,7 +49,7 @@
      */
     @Override
     public PageDTO<MwCheckoutRecordVO> pageHospitalTransitList(CheckoutRecordQuery query) {
-        String treeCode = sysDepartmentService.getTreeCode(query.getDepartmentId());
+        String treeCode = sysDepartmentService.getTreeCodeByDepartmentId(query.getDepartmentId());
         if (StringUtils.isBlank(treeCode)) {
             return PageDTO.empty(0L, 0L);
         }
@@ -62,7 +65,7 @@
      */
     @Override
     public void checkoutRecordExport(CheckoutRecordQuery query, HttpServletResponse response) throws IOException {
-        String treeCode = sysDepartmentService.getTreeCode(query.getDepartmentId());
+        String treeCode = sysDepartmentService.getTreeCodeByDepartmentId(query.getDepartmentId());
         if (StringUtils.isBlank(treeCode)) {
             return;
         }
@@ -75,6 +78,15 @@
         String fileName = URLEncoder.encode("转运记录", "UTF-8").replaceAll("\\+", "%20");
         response.setHeader("Content-disposition", "attachment;filename*=utf-8''" + fileName + ".xlsx");
         EasyExcel.write(response.getOutputStream(), MwCheckoutRecordExcelVO.class).sheet("转运记录").doWrite(mwCheckoutRecordExcelVOS);
+    }
+
+    @Override
+    public List<CollectTotalUpDto> totalUp(LocalDate date, Long departmentId) {
+        return this.baseMapper.totalUp(date,departmentId);
+    }
+    @Override
+    public List<CollectTotalUpDto> totalUp1( Long outId) {
+        return this.baseMapper.totalUp1(outId);
     }
 
     /**
@@ -108,7 +120,7 @@
      */
     @Override
     public PageDTO<MwTransitRecordVO> transitPageList(MwTransitRecordQuery query) {
-        String treeCode = sysDepartmentService.getTreeCode(query.getDepartmentId());
+        String treeCode = sysDepartmentService.getTreeCodeByDepartmentId(query.getDepartmentId());
         Page<MwTransitRecordVO> page = baseMapper.transitPageList(new Page<>(query.getPageCurr(), query.getPageSize()), query, treeCode);
         return PageDTO.of(page);
     }

--
Gitblit v1.7.1