<if test="busiForm.caseAddress != null and busiForm.caseAddress != ''">
<choose>
<when test="busiForm.caseAddress != '其他'">
and cc_busi_form.case_address = #{busiForm.caseAddress}
</when>
<otherwise>
and cc_busi_form.case_address not IN ( '天宁区', '新北区', '钟楼区', '经开区', '武进区', '金坛区', '溧阳市' )
</otherwise>
</choose>
</if>
mybatis 中条件判断 ,==是不支持的
最新推荐文章于 2024-05-23 14:45:07 发布