bug: 体系搜索国内标准实施日期处理

This commit is contained in:
wxyclub
2023-11-29 19:26:16 +08:00
parent 9cfbafe2af
commit 4be04ee92a
2 changed files with 34 additions and 5 deletions
@@ -186,7 +186,10 @@
WHEN gb.ISSUE_TIME = '' THEN NULL
ELSE gb.ISSUE_TIME
END AS releaseDate,
gb.PUT_TIME AS implementDate,
CASE
WHEN gba.SSRQ = '' THEN NULL
ELSE gba.SSRQ
END AS implementDate,
gb.REPLACE_STAND_NUM AS replaceStandardNo,
gba.QCDW AS dept,
gba.WSSMR AS draftUserName,
@@ -231,11 +234,11 @@
AND gb.ISSUE_TIME <= CONCAT(#{param.endReleaseDateString}, ' 23:59:59')
</if>
<!-- 实施日期 -->
<if test="param.startImplementDate != null">
AND gb.PUT_TIME >= #{param.startImplementDate}
<if test="param.startImplementDateString != null and param.startImplementDateString != ''">
AND gba.SSRQ >= #{param.startImplementDateString}
</if>
<if test="param.endImplementDate != null">
AND gb.PUT_TIME &lt;= CONCAT(#{param.endImplementDate}, ' 23:59:59')
<if test="param.endImplementDateString != null and param.endImplementDateString != '' ">
AND gba.SSRQ &lt;= CONCAT(#{param.endImplementDateString}, ' 23:59:59')
</if>
<!--代替标准-->
<if test="param.replaceStandardNo != null and param.replaceStandardNo != ''">