请领单查询-参数status:多个状态使用英文逗号拼接 不传返回所有

This commit is contained in:
1378012178@qq.com 2025-12-02 15:20:39 +08:00
parent 4852e43705
commit 5338bea3c9
1 changed files with 4 additions and 1 deletions

View File

@ -37,7 +37,10 @@
#{dto.searchContent}, '%') )
</if>
<if test="dto.status != null and dto.status != ''">
AND main.status = #{dto.status}
AND main.status IN
<foreach collection="dto.status.split(',')" item="status" open="(" separator="," close=")">
#{status}
</foreach>
</if>
<if test="dto.nuId != null and dto.nuId != ''">
AND main.nu_id = #{dto.nuId}