修改更新欠费状态
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user