update优化清分账单逻辑

This commit is contained in:
2023-09-21 13:09:52 +08:00
parent b061442497
commit a465e75635
10 changed files with 72 additions and 18 deletions

View File

@@ -303,4 +303,9 @@
where del_flag = '0'
and order_code = #{orderCode,jdbcType=VARCHAR}
</select>
<delete id="deleteByClearingBillCode">
delete from clearing_bill_detail
where clearing_bill_code = #{clearingBillCode,jdbcType=VARCHAR}
</delete>
</mapper>

View File

@@ -746,6 +746,10 @@
<if test="billStatus != null and billStatus != ''">
and bill_status = #{billStatus,jdbcType=VARCHAR}
</if>
<if test="tradeDate != null and tradeDate != ''">
and trade_date = #{tradeDate,jdbcType=VARCHAR}
</if>
order by create_time DESC
</select>
<update id="updateStatus">