From dedf9da2dc20825fbd3dee51f0a0546782ec0f9d Mon Sep 17 00:00:00 2001
From: 严智鑫 <test>
Date: 星期四, 03 四月 2025 07:27:32 +0800
Subject: [PATCH] 中间表客户增加两个字段:订单号,计划产量日期;用于看板分组和统计

---
 JiuMuMesParent/moduleService/DeviceInteractionModule/src/test/java/com/mes/DeviceInteractionModuleApplicationTest.java |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/JiuMuMesParent/moduleService/DeviceInteractionModule/src/test/java/com/mes/DeviceInteractionModuleApplicationTest.java b/JiuMuMesParent/moduleService/DeviceInteractionModule/src/test/java/com/mes/DeviceInteractionModuleApplicationTest.java
index 03644dd..86e2ad6 100644
--- a/JiuMuMesParent/moduleService/DeviceInteractionModule/src/test/java/com/mes/DeviceInteractionModuleApplicationTest.java
+++ b/JiuMuMesParent/moduleService/DeviceInteractionModule/src/test/java/com/mes/DeviceInteractionModuleApplicationTest.java
@@ -396,8 +396,9 @@
         cal.set(Calendar.MILLISECOND, 0);
         cal.add(Calendar.DATE, dayCount);
         QueryWrapper<KBBTJPDrawingBP> queryWrapper = new QueryWrapper<>();
-        queryWrapper.select("scan_id,(task_quantity-isNull(report_count,0)) as notComplete,isNull((length*width*(task_quantity-isNull(report_count,0)))/1000000,0) as area_sum").
-                gt("CreateDate",cal.getTime()).apply("task_quantity>isNull(report_count,0)");
+        queryWrapper.select("OrderNo,(sum(task_quantity-isNull(report_count,0))) as notComplete,sum(isNull((length*width*(task_quantity-isNull(report_count,0)))/1000000,0)) as area_sum").
+                gt("PlanDate",cal.getTime()).having("sum(task_quantity-isNull(report_count,0))>0")
+                .groupBy("OrderNo");
         List<Map> list=kBBTJPDrawingBPMapper.selectMaps((QueryWrapper)queryWrapper);
         log.info("鍐呭{}",list);
     }

--
Gitblit v1.8.0