From f96e13df01e5a0ea8c78662b66a1ad36e2ba86f4 Mon Sep 17 00:00:00 2001
From: 你好啊 <1536384743@qq.com>
Date: 星期日, 29 十二月 2024 12:37:35 +0800
Subject: [PATCH] 删除注释

---
 north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml |   59 ++++++++++++++++++++++++++++++++++++++++++-----------------
 1 files changed, 42 insertions(+), 17 deletions(-)

diff --git a/north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml b/north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml
index 3b5844b..efd51ed 100644
--- a/north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml
+++ b/north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml
@@ -484,7 +484,7 @@
     </select>
 
     <select id="selectPrintFlowCard">
-        select project_no,glass_total,glass_total_area
+        select project_no,glass_total,glass_total_area,labelPrintNum,processPrintNum
         from pp.optimize_project
         where date(create_time)>=#{selectTime1} and date(create_time) &lt;= #{selectTime2}
           and state >= 20
@@ -1318,9 +1318,9 @@
     <select id="getDetailListLikes">
         select fc.order_number,
                concat(round(ogd.child_width), "*", round(ogd.child_height))   as child_width,
-               #{quantity} as quantity,
-               round(ogd.child_width*ogd.child_height*#{quantity}/1000000, 2)                                       as total_area,
-               round((ogd.child_width+ogd.child_height)*2*#{quantity}/1000, 2)    as perimeter,
+               count(*) as quantity,
+               round(ogd.child_width*ogd.child_height*count(*)/1000000, 2)                                       as total_area,
+               round((ogd.child_width+ogd.child_height)*2*count(*)/1000, 2)    as perimeter,
                if(od.shape=2,JSON_UNQUOTE(JSON_EXTRACT(od.other_columns, '$.S04')),od.bend_radius) as bend_radius,
                concat(IFNULL(od.processing_note, ''), IFNULL(od.remarks, '')) as remarks,
                od.other_columns,
@@ -1330,20 +1330,20 @@
                fc.technology_number,
                IFNULL(JSON_UNQUOTE(JSON_EXTRACT(od.other_columns, '$.S02')),'') as mapNumber,
                od.building_number
-        from flow_card as fc
-                 left join sd.order_glass_detail as ogd
-                           on fc.order_id = ogd.order_id and fc.order_number = ogd.order_number and
-                              fc.technology_number = ogd.technology_number
-                 left join sd.order_detail as od on od.order_id = fc.order_id and od.order_number = fc.order_number
-                 left join sd.product_detail as pd
-                           on pd.prod_id = od.product_id and pd.glass_sort = ogd.technology_number
-                 left join flow_card_sort as fcs
-                           on fcs.process_id = fc.process_id and fcs.order_number = fc.order_number and
-                              fcs.technology_number = fc.technology_number
-                               and fcs.process = #{process}
-        where fc.process_id = #{processId}
+        from optimize_detail opt left join flow_card as fc on opt.process_id = fc.process_id and opt.order_sort = fc.order_number and
+                                                              opt.layer = fc.technology_number
+                                 left join sd.order_glass_detail as ogd
+                                           on fc.order_id = ogd.order_id and fc.order_number = ogd.order_number and
+                                              fc.technology_number = ogd.technology_number
+                                 left join sd.order_detail as od on od.order_id = fc.order_id and od.order_number = fc.order_number
+                                 left join sd.product_detail as pd
+                                           on pd.prod_id = od.product_id and pd.glass_sort = ogd.technology_number
+                                 left join flow_card_sort as fcs
+                                           on fcs.process_id = fc.process_id and fcs.order_number = fc.order_number and
+                                              fcs.technology_number = fc.technology_number
+                                               and fcs.process = #{process}
+        where opt.process_id = #{processId} and opt.project_no=#{printProject}
           and position(fc.technology_number in #{technologyNumber})
-          and fc.order_number=#{orderNumber}
         group by fc.process_id, fc.order_number, fc.technology_number
         order by IF(fcs.sort != NULL or fcs.sort != '', fcs.sort, fc.order_number)
     </select>
@@ -2211,6 +2211,13 @@
                    ' X ',
                    TRIM(TRAILING '.' FROM TRIM(TRAILING '0' FROM CAST(height AS CHAR))),
                    ' = ',#{printQuantity} )      as size,
+
+               CONCAT(
+                   od.order_number,')  ',
+                       TRIM(TRAILING '.' FROM TRIM(TRAILING '0' FROM CAST(width AS CHAR))),
+                       ' X ',
+                       TRIM(TRAILING '.' FROM TRIM(TRAILING '0' FROM CAST(height AS CHAR))),
+                       ' = ',#{printQuantity} )      as numberSize,
                od.order_number                                       as orderNumber,
                fc.technology_number                                  as technologyNumber,
                od.building_number                                    as buildingNumber,
@@ -2640,4 +2647,22 @@
         GROUP BY fc.process_id, ogd.technology_number
         order by fc.process_id, ogd.technology_number
     </select>
+
+    <update id="updateProjectLabelPrintCount">
+       update optimize_project set labelPrintNum=labelPrintNum+1 where project_no=#{projectNo}
+    </update>
+    
+    <select id="selectProjectLabelPrintCount">
+        select labelPrintNum from optimize_project where project_no=#{projectNo}
+    </select>
+
+    <update id="updateProjectProcessPrintCount">
+        update optimize_project set processPrintNum=processPrintNum+1 where project_no=#{projectNo}
+    </update>
+
+    <select id="selectProjectProcessPrintCount">
+        select processPrintNum from optimize_project where project_no=#{projectNo}
+    </select>
+
+
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0