Browse Source

feat: 加上为空的选项

master
buaixuexideshitongxue 3 weeks ago
parent
commit
fcc18158f8
  1. 9
      src/main/resources/mapper/ComplaintCollectionMapper.xml

9
src/main/resources/mapper/ComplaintCollectionMapper.xml

@ -322,7 +322,14 @@
<if test="param.involveProblemIdList != null and param.involveProblemIdList.size > 0"> <if test="param.involveProblemIdList != null and param.involveProblemIdList.size > 0">
AND ( AND (
<foreach collection="param.involveProblemIdList" item="probItem" separator=" OR "> <foreach collection="param.involveProblemIdList" item="probItem" separator=" OR ">
FIND_IN_SET(#{probItem}, n.involveProblem) <choose>
<when test="probItem == '__EMPTY__'">
(n.involveProblem IS NULL OR TRIM(n.involveProblem) = '')
</when>
<otherwise>
FIND_IN_SET(#{probItem}, n.involveProblem)
</otherwise>
</choose>
</foreach> </foreach>
) )
</if> </if>

Loading…
Cancel
Save