From a158ed9136af588b82d365f98074b29c70cdb601 Mon Sep 17 00:00:00 2001
From: guoyujie <guoyujie@ng.com>
Date: 星期五, 08 八月 2025 15:58:35 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/ERP_override

---
 north-glass-erp/src/main/resources/mapper/pp/GlassOptimize.xml |   38 +++++++++++++++++++++++++++++++++++---
 1 files changed, 35 insertions(+), 3 deletions(-)

diff --git a/north-glass-erp/src/main/resources/mapper/pp/GlassOptimize.xml b/north-glass-erp/src/main/resources/mapper/pp/GlassOptimize.xml
index b8e3b09..44f15fe 100644
--- a/north-glass-erp/src/main/resources/mapper/pp/GlassOptimize.xml
+++ b/north-glass-erp/src/main/resources/mapper/pp/GlassOptimize.xml
@@ -746,7 +746,7 @@
         from pp.optimize_project as p
                  left join pp.optimize_admin as a on p.creater = a.Id
         where (`p`.`state` > 0)
-            and (tempering_state>0 or optimize_state>0)
+#             and (tempering_state>0 or optimize_state>0)
             and DATE (`p`.`create_time`) BETWEEN #{startSelectTime} AND #{endSelectTime}
         <if test="optimizeProjectMange.projectNumber != null and optimizeProjectMange.projectNumber != ''">
             and p.project_no regexp #{optimizeProjectMange.projectNumber}
@@ -1232,6 +1232,7 @@
             y_axis,
             patch_state,
             mark_icon,
+            isRotate,
             rack_no
             ) VALUES (
             #{projectId},
@@ -1249,6 +1250,7 @@
             #{glass.y},
             #{glass.patchState},
             #{glass.markIcon},
+            #{glass.isRotate},
             #{glass.rackNo}
             );
         </foreach>
@@ -1341,6 +1343,28 @@
             now()
             );
         </foreach>
+    </insert>
+    <insert id="addOptimizeOffcut">
+        INSERT INTO pp.optimize_offcut (
+        project_no,
+        stock_id,
+        width,
+        height,
+        x_axis,
+        y_axis,
+        model,
+        thickness
+        ) VALUES (
+        #{projectId},
+        #{map.stockSort},
+        #{map.width},
+        #{map.height},
+        #{map.x},
+        #{map.y},
+        #{glassType},
+        #{glassThickness}
+
+        )
     </insert>
 
 
@@ -1749,8 +1773,16 @@
         where
             project_no =#{projectNo}
     </select>
-
-
+    <select id="getGlassInfo" resultType="java.util.Map">
+        select
+            project_no,
+            glass_type,
+            glass_thickness
+        from
+            pp.optimize_project
+        where
+            project_no = #{projectId}
+    </select>
 
 
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0