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/controller/InsOrderController.java |   29 ++++++++++++++++++++++++++---
 1 files changed, 26 insertions(+), 3 deletions(-)

diff --git a/inspect-server/src/main/java/com/ruoyi/inspect/controller/InsOrderController.java b/inspect-server/src/main/java/com/ruoyi/inspect/controller/InsOrderController.java
index 6250602..4b6ccdf 100644
--- a/inspect-server/src/main/java/com/ruoyi/inspect/controller/InsOrderController.java
+++ b/inspect-server/src/main/java/com/ruoyi/inspect/controller/InsOrderController.java
@@ -2,6 +2,7 @@
 
 import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.ruoyi.basic.dto.InventoryDetailDTO;
 import com.ruoyi.basic.mapper.IfsInventoryQuantityMapper;
 import com.ruoyi.basic.pojo.IfsInventoryQuantity;
 import com.ruoyi.basic.pojo.StandardProductList;
@@ -52,8 +53,15 @@
     //鑾峰彇妫�楠屼笅鍗曟暟鎹�
     @ApiOperation(value = "鏌ヨ鍗曚綅妫�楠屽崟")
     @GetMapping("/selectInsOrderParameter")
-    public Result selectInsOrderParameter(Page page, SampleOrderDto sampleOrderDto) throws Exception {
+    public Result selectInsOrderParameter(Page page, SampleOrderDto sampleOrderDto) {
         return Result.success(insOrderService.selectInsOrderParameter(page, sampleOrderDto));
+    }
+
+    @ApiOperation(value = "澶栬喘涓嬪崟鎴愬搧鏍囩鎵撳嵃")
+    @PostMapping("/labelOutsideOrderPrinting")
+    public Result<List<InventoryDetailDTO>> labelOutsideOrderPrinting(@RequestBody Map<String, Object> param) {
+        List<Integer> ids = (List<Integer>) param.get("ids");
+        return Result.success(insOrderService.labelOutsideOrderPrinting(ids));
     }
 
     //鐢ㄤ簬妫�楠屼笅鍗曞尯鍒煡鐪嬫墍鏈夎鍗曞拰鍙煡鐪嬪悓涓�涓鎵樺崟浣嶇殑璁㈠崟
@@ -67,14 +75,23 @@
     @ApiOperation(value = "妫�楠屽垎閰�")
     @PostMapping("/upInsOrder")
     public Result<?> upInsOrder(Integer orderId, Integer sampleId, String appointed, Integer userId,String sonLaboratory) {
-        return Result.success(insOrderService.upInsOrder(orderId, sampleId, appointed, userId,sonLaboratory));
+        return Result.fail("璇峰湪鏍峰搧鎺ユ敹椤甸潰閫夋嫨涓绘楠屼汉鍚庢彁浜ゆ楠�");
     }
 
     @ApiOperation(value = "娣诲姞妫�楠屼笅鍗曟暟鎹�")
     @PreAuthorize("@ss.hasPermi('add:insOrder')")
     @PostMapping("/addInsOrder")
     public Result<?> addInsOrder(@RequestBody InsPlaceOrderDto insPlaceOrderDto) {
+        if (insPlaceOrderDto.getStandardTreeId() != null) {
+            return Result.success(insOrderService.addNewJuInsOrder(insPlaceOrderDto));
+        }
         return Result.success(insOrderService.addInsOrder(insPlaceOrderDto.getSampleList(), insPlaceOrderDto.getInsOrder()));
+    }
+
+    @ApiOperation(value = "淇敼鏂拌仛妫�楠屼笅鍗曟暟鎹�")
+    @PostMapping("/updateNewJuInsOrder")
+    public Result<?> updateNewJuInsOrder(@RequestBody InsPlaceOrderDto insPlaceOrderDto) {
+        return Result.success(insOrderService.updateNewJuInsOrder(insPlaceOrderDto));
     }
 
     @ApiOperation(value = "鏌ヨ璁㈠崟鏈�闀块璁℃椂闂�")
@@ -145,6 +162,12 @@
         return Result.success(insProductService.selectNoProducts(page, insProduct,orderId,ids));
     }
 
+    //鎾ら攢瀹℃牳锛屾煡璇㈡挙閿�鐨勬娴嬮」
+    @GetMapping("/getRevocationInsProductList")
+    public Result<?> getRevocationInsProductList(@RequestParam("orderId") Integer orderId){
+        return Result.success(insProductService.getRevocationInsProductList(orderId));
+    }
+
 
     @ApiOperation(value = "寰呮鐨勬挙閿�")
     @PostMapping("/updateInspected")
@@ -152,8 +175,8 @@
         Integer orderId = (Integer) param.get("orderId");
         String ids = (String) param.get("ids");
         Integer typeSource = (Integer) param.get("typeSource");
-        Long ifsInventoryId = (Long) param.get("ifsInventoryId");
         if(Objects.nonNull(typeSource) && typeSource == 1){
+            Long ifsInventoryId = Long.parseLong(param.get("ifsInventoryId").toString());
             ifsInventoryQuantityMapper.update(null,new LambdaUpdateWrapper<IfsInventoryQuantity>()
                     .set(IfsInventoryQuantity::getState,0)
                     .eq(IfsInventoryQuantity::getId,ifsInventoryId));

--
Gitblit v1.9.3