工单结算逻辑补正

This commit is contained in:
xiaofajia 2024-11-23 11:11:47 +08:00
parent 69463a58c1
commit 07e9852265

View File

@ -169,11 +169,17 @@
</select> </select>
<select id="getTicketsPage" resultMap="BaseResultMap"> <select id="getTicketsPage" resultMap="BaseResultMap">
<include refid="Base_SQL"/> <include refid="Base_SQL"/>
<if test="map.ticketsStatus != null and map.ticketsStatus != '' and map.ticketsStatus != '01'"> -- 已结算的
<if test="map.ticketsStatus != null and map.ticketsStatus != '' and map.ticketsStatus == '02'">
and drt.tickets_status in ('08', #{map.ticketsStatus})
</if>
-- 已作废的
<if test="map.ticketsStatus != null and map.ticketsStatus != '' and map.ticketsStatus == '03'">
and drt.tickets_status = #{map.ticketsStatus} and drt.tickets_status = #{map.ticketsStatus}
</if> </if>
-- 待结算的
<if test="map.ticketsStatus != null and map.ticketsStatus != '' and map.ticketsStatus == '01'"> <if test="map.ticketsStatus != null and map.ticketsStatus != '' and map.ticketsStatus == '01'">
and (drt.tickets_status = #{map.ticketsStatus} or drt.tickets_status = '06') and (drt.tickets_status = #{map.ticketsStatus})
</if> </if>
<if test="map.ticketNo != null and map.ticketNo != ''"> <if test="map.ticketNo != null and map.ticketNo != ''">
and ( and (