refactor(service): 优化删除数据查询条件

- 在 DeleteU8cDataUtilEntity.xml 文件中,为 fstatus 字段添加了空值检查
- 仅当 fstatus 不为空且不为''时,才添加相应的查询条件
- 这样可以提高查询的灵活性和效率,避免不必要的条件判断
This commit is contained in:
liuy 2024-12-23 15:37:17 +08:00
parent e00f63cd87
commit 3502bae753
1 changed files with 3 additions and 1 deletions

View File

@ -84,7 +84,9 @@
a.cbiztype IN ( '0001A110000000001TH5', '0001A110000000001TH6' )
AND a.dbilldate >= '2024-11-01 00:00:00'
AND a.dbilldate <= '2024-11-30 23:59:59'
AND a.fstatus = #{fstatus}
<if test="fstatus!=null and fstatus!=''">
AND a.fstatus = #{fstatus}
</if>
AND a.dr = 0
</select>
</mapper>