From bfb2de990eb9cdb3f1bf8dfbdab5135f78b7dc6f Mon Sep 17 00:00:00 2001
From: guoyujie <guoyujie@ng.com>
Date: 星期二, 23 十二月 2025 11:09:23 +0800
Subject: [PATCH] 提交 图片上传添加尺寸

---
 north-glass-erp/src/main/resources/mapper/mm/FinishedGlassShelf.xml |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/north-glass-erp/src/main/resources/mapper/mm/FinishedGlassShelf.xml b/north-glass-erp/src/main/resources/mapper/mm/FinishedGlassShelf.xml
index 66cf88b..ff6017c 100644
--- a/north-glass-erp/src/main/resources/mapper/mm/FinishedGlassShelf.xml
+++ b/north-glass-erp/src/main/resources/mapper/mm/FinishedGlassShelf.xml
@@ -37,7 +37,7 @@
 
     <select id="getSelectFinishedGlassShelfInformationInventoryArea">
         SELECT
-            MAX(CAST(REGEXP_REPLACE(glass_shelf_number, '[^0-9]', '')AS UNSIGNED)) AS maxDindex
+            ifnull(MAX(CAST(REGEXP_REPLACE(glass_shelf_number, '[^0-9]', '')AS UNSIGNED)),0) AS maxDindex
         FROM
             finished_glass_shelf_information
         WHERE
@@ -228,10 +228,10 @@
 
     <insert id="insertFinishedGlassShelfEmitDetailsLog"  useGeneratedKeys="true" >
         insert into mm.finished_glass_shelf_log(document_id,document_number,type,quantity,price,money,unit,
-                                                remarks,create_time,max_weight,max_width,max_height,glass_shelf_name)
+                                                remarks,create_time,max_weight,max_width,max_height,glass_shelf_name,operator)
         values (
                    #{emitId},#{emitNumber},#{type},#{quantity},#{price},#{money},#{unit},
-                #{remarks},now(),#{maxWeight},#{maxWidth},#{maxHeight},#{glassShelfName}
+                #{remarks},now(),#{maxWeight},#{maxWidth},#{maxHeight},#{glassShelfName},#{operator}
                )
     </insert>
 

--
Gitblit v1.8.0