修改更新欠费状态

This commit is contained in:
wuweihua
2026-09-23 11:37:30 +08:00
parent 67c9d28c8c
commit c038621b3c
9 changed files with 273 additions and 20 deletions
@@ -621,4 +621,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
end,
o.update_time = sysdate()
</update>
<!-- 核销清欠:按客户代码+欠费状态查询,下单时间升序 -->
<select id="selectArrearsByCustomerCode" resultMap="PrcOrderBillResult">
<include refid="selectPrcOrderBillVo"/>
where customer_code = #{customerCode}
and credit_arrears_status = #{creditArrearsStatus}
order by (order_time is null), order_time asc, bill_id asc
</select>
<update id="updateCreditArrearsStatus">
update prc_order_bill
set credit_arrears_status = #{creditArrearsStatus},
updated_by = #{updateBy},
update_time = sysdate()
where bill_id = #{billId}
</update>
</mapper>