lineSource

This commit is contained in:
苏竹红
2024-05-10 11:16:01 +08:00
parent 09eed587d4
commit 18a9982182

View File

@@ -332,20 +332,18 @@
<select id="getLinePayByLineIds" resultMap="BaseResultMap">
select * from xfsg_line_pay where deleted = 0
<where>
<if test="businessType!=null">
and pay_business_type = #{businessType}
</if>
<if test="lineIds !=null and lineIds.size>0">
<foreach collection="lineIds" item="lineId" open="and line_id in (" close=")" separator=",">
#{lineId}
</foreach>
</if>
<if test="shopIds !=null and shopIds.size>0">
<foreach collection="shopIds" item="shopId" open="and shop_id in (" close=")" separator=",">
#{shopId}
</foreach>
</if>
</where>
<if test="businessType!=null">
and pay_business_type = #{businessType}
</if>
<if test="lineIds !=null and lineIds.size>0">
<foreach collection="lineIds" item="lineId" open="and line_id in (" close=")" separator=",">
#{lineId}
</foreach>
</if>
<if test="shopIds !=null and shopIds.size>0">
<foreach collection="shopIds" item="shopId" open="and shop_id in (" close=")" separator=",">
#{shopId}
</foreach>
</if>
</select>
</mapper>