From bf5b01b14dc7bfc214e646425a62f5593890d7e3 Mon Sep 17 00:00:00 2001
From: jinlin <jinlin>
Date: 星期六, 08 十一月 2025 22:05:37 +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 >= ( 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 < ( 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 < ( SELECT datetime( 'now' ) )
+ </if>
+ <if test="status!=null and status=='姝e父瀹屾垚'">
+ and b.CURRENT_STATUS = 1
+ AND b.REQUIRED_COMPLETION_TIME >= b.ACTUAL_COMPLETION
+ </if>
+ <if test="status!=null and status=='瓒呮湡瀹屾垚'">
+ and b.CURRENT_STATUS = 1
+ AND b.REQUIRED_COMPLETION_TIME < b.ACTUAL_COMPLETION
+ </if>
+ </select>
</mapper>
--
Gitblit v1.9.1