From 1578ff18a22a51b0534ddbf3299f0d734a98f5a5 Mon Sep 17 00:00:00 2001
From: zm <2369059705qq.com>
Date: 星期二, 20 八月 2024 14:02:47 +0800
Subject: [PATCH] 考勤加流程调整

---
 src/main/java/com/product/administration/service/PunchRecordService.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/product/administration/service/PunchRecordService.java b/src/main/java/com/product/administration/service/PunchRecordService.java
index 83f72f5..42b282f 100644
--- a/src/main/java/com/product/administration/service/PunchRecordService.java
+++ b/src/main/java/com/product/administration/service/PunchRecordService.java
@@ -94,7 +94,7 @@
 			StringBuilder sbReplenish=new StringBuilder();
 			sbReplenish.append(" SELECT T1.id,T1.uuid,T1.created_by,T1.applicant,T1.replenish_date,T1.reason,");
 			sbReplenish.append(" SUBSTRING_INDEX( SUBSTRING_INDEX( T1.replacement_card_type, ',', T2.digit + 1 ), ',',- 1 ) AS type ");
-			sbReplenish.append(" FROM product_oa_replenish_punch T1 ");
+			sbReplenish.append(" FROM (select * from product_oa_replenish_punch where flow_flag=2) T1 ");
 			sbReplenish.append(" JOIN ( SELECT 0 AS digit UNION ALL SELECT 1 UNION ALL SELECT 2 UNION ALL SELECT 3 ) T2");
 			sbReplenish.append(" ON T2.digit < ( length( T1.replacement_card_type )- length( REPLACE ( T1.replacement_card_type, ',', '' ))+ 1 )");
 			sbReplenish.append(" where t1.created_by=? ");

--
Gitblit v1.9.2