From 66f0597bf6a1e79540c6bc51dedf561c22f3bdb5 Mon Sep 17 00:00:00 2001
From: jinlin <jinlin>
Date: 星期二, 13 五月 2025 17:49:26 +0800
Subject: [PATCH] 修改

---
 src/main/resources/mapper/progressTrack/DjJdgzNetworkLevel3Dao.xml |   40 ++++++++++++++++++++++++++++++++++++++++
 1 files changed, 40 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/progressTrack/DjJdgzNetworkLevel3Dao.xml b/src/main/resources/mapper/progressTrack/DjJdgzNetworkLevel3Dao.xml
index 8ff478e..e017744 100644
--- a/src/main/resources/mapper/progressTrack/DjJdgzNetworkLevel3Dao.xml
+++ b/src/main/resources/mapper/progressTrack/DjJdgzNetworkLevel3Dao.xml
@@ -224,6 +224,46 @@
 
             LIMIT 1;
     </select>
+    <select id="getdata" resultType="com.example.server.progressTrack.Dto.Level3ExportCloum">
+        select c.NAME,b.PROCESS_NAME,b.CURRENT_STATUS,b.REQUIRED_COMPLETION_TIME,b.ACTUAL_COMPLETION,c.dept_id,c.teamgroup_id
+        FROM dj_jdgz_track_record a
+        LEFT JOIN dj_jdgz_network_level3_list b on b.ID = a.LEVEL3_NODE_ID
+        LEFT JOIN dj_jdgz_network_level3 c on c.ID = b.NETWORK_ID
+        LEFT JOIN dj_jdgz_network_level1 d on d.ID = c.LEVEL1_NETWORK_ID
+        where a.IS_DELETE = 0
+        and c.LEVEL1_NETWORK_ID = ${level1NetworkId}
+        and c.LEVEL1_NETWORK_ID = d.id
+        and b.IS_DELETE = 0
+        and b.NETWORK_ID = c.id
+        and c.IS_DELETE = 0
+        and d.IS_DELETE = 0
+        <if test="deptId!=null">
+            and c.DEPT_ID = ${deptId}
+        </if>
+        <if test="teamGroupId!=null">
+            and c.TEAMGROUP_ID = ${teamGroupId}
+        </if>
+        <if test="status!=null and status=='杩涜涓�'">
+            and (b.CURRENT_STATUS = 0 or b.CURRENT_STATUS is null)
+            and b.REQUIRED_COMPLETION_TIME &gt;= ( SELECT date( 'now', '-' || d.advent_day || ' days' ) )
+        </if>
+        <if test="status!=null and status=='涓存湡'">
+            and (b.CURRENT_STATUS = 0 or b.CURRENT_STATUS is null)
+            and b.REQUIRED_COMPLETION_TIME &lt; ( SELECT date( 'now', '-' || d.advent_day || ' days' ) )
+        </if>
+        <if test="status!=null and status=='閫炬湡'">
+            and (b.CURRENT_STATUS = 0 or b.CURRENT_STATUS is null)
+            and b.REQUIRED_COMPLETION_TIME &lt; ( SELECT datetime( 'now' ) )
+        </if>
+        <if test="status!=null and status=='姝e父瀹屾垚'">
+            and b.CURRENT_STATUS = 1
+            AND b.REQUIRED_COMPLETION_TIME &gt;= b.ACTUAL_COMPLETION
+        </if>
+        <if test="status!=null and status=='瓒呮湡瀹屾垚'">
+            and b.CURRENT_STATUS = 1
+            AND b.REQUIRED_COMPLETION_TIME &lt; b.ACTUAL_COMPLETION
+        </if>
+    </select>
 
 
 </mapper>

--
Gitblit v1.9.1