From 82ce59218139d9fefeae7b9e5fbc88b499ff023f Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期四, 08 十月 2026 13:35:06 +0800
Subject: [PATCH] feat(inspect): 新增新聚检验订单编辑功能并优化报告生成流程 - 新增 updateNewJuInsOrder 接口支持新聚检验订单修改 - 增加文件上传大小限制至200MB,请求大小限制至400MB - 在设备信息中新增出厂编号字段显示 - 优化温湿度处理逻辑,报告中仅显示温度信息 - 新增印章管理功能,支持MA标志章、报告章和骑缝章配置 - 完善检验报告生成流程,增加多种报告类型常量定义 - 优化附件上传功能,增加空值检查和返回值处理 - 调整委托编号生成逻辑,完善新聚订单可编辑性判断 - 更新CNAS流程中报告编号使用正式报告编号替代委托编号

---
 inspect-server/src/main/java/com/ruoyi/inspect/service/InsOrderService.java |   55 +++++++++++++++++++++++++++++++++++++++++++------------
 1 files changed, 43 insertions(+), 12 deletions(-)

diff --git a/inspect-server/src/main/java/com/ruoyi/inspect/service/InsOrderService.java b/inspect-server/src/main/java/com/ruoyi/inspect/service/InsOrderService.java
index 07dd05d..a3025a2 100644
--- a/inspect-server/src/main/java/com/ruoyi/inspect/service/InsOrderService.java
+++ b/inspect-server/src/main/java/com/ruoyi/inspect/service/InsOrderService.java
@@ -3,9 +3,15 @@
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 import com.baomidou.mybatisplus.extension.service.IService;
+import com.ruoyi.basic.dto.InventoryDetailDTO;
+import com.ruoyi.basic.pojo.IfsInventoryQuantity;
+import com.ruoyi.basic.pojo.StandardProductList;
+import com.ruoyi.common.core.domain.Result;
 import com.ruoyi.inspect.pojo.InsOrder;
+import com.ruoyi.inspect.pojo.InsSample;
 import com.ruoyi.inspect.pojo.InsUnqualifiedRetestProduct;
 import com.ruoyi.inspect.dto.*;
+import com.ruoyi.inspect.vo.InsOrderPrintingVo;
 
 import javax.servlet.ServletException;
 import javax.servlet.http.HttpServletResponse;
@@ -21,13 +27,17 @@
 public interface InsOrderService extends IService<InsOrder> {
 
     //鑾峰彇鍗曚綅妫�楠屼笅鍗曟暟鎹�
-    Map<String, Object> selectInsOrderParameter(IPage<InsOrder> page, SampleOrderDto sampleOrderDto);
+    IPage<SampleOrderDto> selectInsOrderParameter(IPage<InsOrder> page, SampleOrderDto sampleOrderDto);
 
 
     //淇敼妫�楠屼笅鍗曟暟鎹�
     int upInsOrder(Integer orderId,Integer sampleId, String appointed, Integer userId,String sonLaboratory);
 
-    int addInsOrder(List<SampleProductDto> list, InsOrder insOrder, List<List<Integer>> pairing);
+    int addInsOrder(List<SampleProductDto> list, InsOrder insOrder);
+
+    int addNewJuInsOrder(InsPlaceOrderDto insPlaceOrderDto);
+
+    int updateNewJuInsOrder(InsPlaceOrderDto insPlaceOrderDto);
 
     Map<String, Object> getInsOrder(Integer id);
 
@@ -35,21 +45,14 @@
 
     Map<String, Object> getInsOrderAndSample(Integer id, String laboratory);
 
-    Map<String, Object> selectSampleAndProductByOrderId(IPage<SampleProductDto2> page, SampleProductDto2 sampleProductDto);
+    IPage<SampleProductDto2> selectSampleAndProductByOrderId(IPage<SampleProductDto2> page, SampleProductDto2 sampleProductDto);
 
-    Map<String, Object> costStatistics(IPage<CostStatisticsDto> page, CostStatisticsDto costStatisticsDto);
-
-    Map<String, Object> costStatistics2(CostStatisticsDto costStatisticsDto);
-
-    Map<String, Object> selectSampleDefects(Page page, String inspectionItems, String orderNumber);
 
     int updateStatus(Integer id);
 
 
-    void export(CostStatisticsDto costStatisticsDto,HttpServletResponse response)throws IOException, ServletException;
-
     // 鑾峰彇ifs搴撳瓨淇℃伅
-    void getIfsOrder();
+    void getIfsOrder(Map<String,Object> objectMap,Boolean isSplitOrder);
 
     /**
      * 淇敼璁㈠崟鍗曞彿
@@ -61,7 +64,7 @@
 
 
 
-    void updateIfsInventoryQuantity(Integer id);
+    void updateIfsInventoryQuantity(Long id);
 
     /**
      * 閾滄潗涓嬪崟
@@ -93,6 +96,13 @@
     List<InsOrderPrintingVo> labelOrderPrinting(List<Integer> ids);
 
     /**
+     * 澶栬喘浜у搧鏍囩鎵撳嵃
+     * @param ids
+     * @return
+     */
+    List<InventoryDetailDTO> labelOutsideOrderPrinting(List<Integer> ids);
+
+    /**
      * 鏍规嵁鏍峰搧id鏌ヨ妫�楠岄」鏍�
      * @param insSampleId
      * @return
@@ -112,4 +122,25 @@
      * @param response
      */
     void rawAllInsOrderExport(SampleOrderDto sampleOrderDto, HttpServletResponse response);
+
+    /**
+     * 淇敼鏍峰搧鍨嬪彿
+     * @param insSample
+     */
+    void updateSampleModel(InsSample insSample);
+
+    /**
+     * 鏌ヨ褰撳墠鏃堕棿鏄惁娌℃湁璇ユ娴嬮」鐨勬娊鏍疯鍒�
+     * @param sampleList
+     * @param insOrder
+     * @return
+     */
+    Result judgeNotSpotCheckOrder(List<SampleProductDto> sampleList, InsOrder insOrder);
+
+    /**
+     * 绉诲簱鎿嶄綔
+     * @param one
+     * @return
+     */
+    String moveRawMaterial(IfsInventoryQuantity one);
 }

--
Gitblit v1.9.3