From 1066eaeea52b3d8272a24af9617c88ef1764c1c4 Mon Sep 17 00:00:00 2001
From: guoyuji <guoyujie@ng.com>
Date: 星期三, 05 三月 2025 10:28:14 +0800
Subject: [PATCH] 界面拖动玻璃和汉玻流程卡查询修改
---
north-glass-erp/src/main/resources/mapper/pp/PatchLogMapper.xml | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/north-glass-erp/src/main/resources/mapper/pp/PatchLogMapper.xml b/north-glass-erp/src/main/resources/mapper/pp/PatchLogMapper.xml
index e332834..3fbe9ba 100644
--- a/north-glass-erp/src/main/resources/mapper/pp/PatchLogMapper.xml
+++ b/north-glass-erp/src/main/resources/mapper/pp/PatchLogMapper.xml
@@ -37,7 +37,7 @@
r.quality_inspector,
r.patch_processes,
r.reviewer,
- date(r.create_time) as create_time,
+ r.create_time as create_time,
date(r.update_time) as update_time,
JSON_UNQUOTE( JSON_EXTRACT( od.other_columns, '$.S01' )) AS glassNumber
from pp.patch_log r left join sd.order_detail od on r.order_id=od.order_id and r.order_sort=od.order_number
@@ -213,15 +213,18 @@
and r.reviewer regexp #{patchLog.reviewer}
</if>
</where>
- ) as zu
- limit #{offset},#{pageSize};
+ ) as zu
</select>
<select id="getMaximum" >
- select count(*) from pp.patch_log where date(create_time)=CURDATE()
+ SELECT IFNULL(patch_id,'00')
+ FROM patch_log
+ WHERE DATE(create_time) = CURDATE()
+ ORDER BY create_time DESC
+ LIMIT 1;
</select>
@@ -408,5 +411,10 @@
update pp.patch_log set reviewer=null,review_status=0,update_time=now() where id=#{patchLog.id}
</update>
+ <select id="selectProjectCount">
+ SELECT COUNT(*)
+ FROM flow_card
+ WHERE process_id= #{processId} and project_no IS not NULL;
+ </select>
</mapper>
\ No newline at end of file
--
Gitblit v1.8.0