fix: 体系数据列表查询条件判断错误

This commit is contained in:
2023-11-15 14:46:58 +08:00
parent 43eb0769e1
commit ac9bf76ab2
@@ -185,29 +185,35 @@
AND gb.STAND_NAME LIKE CONCAT('%',#{param.standName},'%')
</if>
<!--发布时间-->
<if test="param.startReleaseDate != null and param.endReleaseDate != null">
<if test="param.startReleaseDate != null and param.endReleaseDate != ''">
AND gb.ISSUE_TIME BETWEEN #{param.startReleaseDate} AND #{param.endReleaseDate}
</if>
<!--实施日期-->
<if test="param.startImplementDate != null and param.endImplementDate != null">
<if test="param.startImplementDate != null and param.endImplementDate != ''">
AND gb.PUT_TIME BETWEEN #{param.startImplementDate} AND #{param.endImplementDate}
</if>
<!--代替标准-->
<if test="param.replaceStandardNo != null and param.replaceStandardNo != null">
<if test="param.replaceStandardNo != null and param.replaceStandardNo != ''">
AND gb.REPLACE_STAND_NUM LIKE CONCAT('%',#{param.replaceStandardNo},'%')
</if>
<!--编制单位-->
<if test="param.dept != null and param.dept != null">
<if test="param.dept != null and param.dept != ''">
AND o.ORG_NAME LIKE CONCAT('%',#{param.dept},'%')
</if>
<!--起草人-->
<if test="param.draftUserName != null and param.draftUserName != null">
<if test="param.draftUserName != null and param.draftUserName != ''">
AND u.UNAME LIKE CONCAT('%',#{param.draftUserName},'%')
</if>
<!--数据来源-->
<if test="param.dataSource != null and param.dataSource != null">
<if test="param.dataSource != null and param.dataSource != ''">
AND gb.STAND_TYPE = #{dataSource}
</if>
<if test="param.selectIdList != null and param.selectIdList.size() > 0">
AND gb.ID IN
<foreach item="item" index="index" collection="param.selectIdList" open="(" separator="," close=")">
#{item}
</foreach>
</if>
</select>
</mapper>