refactor(service): 优化删除数据查询条件
- 在 DeleteU8cDataUtilEntity.xml 文件中,为 fstatus 字段添加了空值检查 - 仅当 fstatus 不为空且不为''时,才添加相应的查询条件 - 这样可以提高查询的灵活性和效率,避免不必要的条件判断
This commit is contained in:
parent
e00f63cd87
commit
3502bae753
|
@ -84,7 +84,9 @@
|
||||||
a.cbiztype IN ( '0001A110000000001TH5', '0001A110000000001TH6' )
|
a.cbiztype IN ( '0001A110000000001TH5', '0001A110000000001TH6' )
|
||||||
AND a.dbilldate >= '2024-11-01 00:00:00'
|
AND a.dbilldate >= '2024-11-01 00:00:00'
|
||||||
AND a.dbilldate <= '2024-11-30 23:59:59'
|
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
|
AND a.dr = 0
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
Loading…
Reference in New Issue