1.修复无单据类型时查询单据表报错问题

master
x_z 2 years ago
parent 4ee7d7b528
commit b30ad9b3a8

@ -89,17 +89,22 @@
AND orderType = #{orderType} AND orderType = #{orderType}
</if> </if>
<if test="supInoivceSearch != null and invoiceActions1 !=null or invoiceActions2 !=null"> <if test="supInoivceSearch != null">
AND ((`action` in <if test="invoiceActions1 != null and invoiceActions1.size() != 0">
<foreach collection="invoiceActions1" index="index" item="item" open="(" close=")" separator=","> AND ((`action` in
#{item} <foreach collection="invoiceActions1" index="index" item="item" open="(" close=")" separator=",">
</foreach> #{item}
and status = 10) or (( </foreach>
`action` in and status = 10)
<foreach collection="invoiceActions2" index="index" item="item" open="(" close=")" separator=","> </if>
#{item} <if test="invoiceActions2 != null and invoiceActions2.size() != 0">
</foreach>) and status = 7 or ((
`action` in
<foreach collection="invoiceActions2" index="index" item="item" open="(" close=")" separator=",">
#{item}
</foreach>) and status = 7
)) ))
</if>
</if> </if>
</where> </where>
order by createTime desc order by createTime desc

Loading…
Cancel
Save