请领单查询-参数status:多个状态使用英文逗号拼接 不传返回所有
This commit is contained in:
parent
4852e43705
commit
5338bea3c9
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Reference in New Issue