修改计费文档,加上客户代码

This commit is contained in:
wuweihua
2026-09-29 09:20:59 +08:00
parent b8e1f8cd40
commit d08758aa35
7 changed files with 78 additions and 6 deletions
@@ -9,6 +9,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="transferNo" column="transfer_no" />
<result property="trackingNo" column="tracking_no" />
<result property="orderNo" column="order_no" />
<result property="customerCode" column="customer_code" />
<result property="billType" column="bill_type" />
<result property="successStatus" column="success_status" />
<result property="billTime" column="bill_time" />
@@ -22,7 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<sql id="selectPrcBillingTaskVo">
select task_id, transfer_no, tracking_no, order_no, bill_type, success_status,
select task_id, transfer_no, tracking_no, order_no, customer_code, bill_type, success_status,
bill_time, bill_id, fail_code, error_message, create_by, create_time, update_by, update_time
from prc_billing_task
</sql>
@@ -44,6 +45,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="orderNo != null and orderNo != ''">
AND order_no like concat('%', #{orderNo}, '%')
</if>
<if test="customerCode != null and customerCode != ''">
AND customer_code like concat('%', #{customerCode}, '%')
</if>
<if test="billType != null and billType != ''">
AND bill_type = #{billType}
</if>
@@ -65,10 +69,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<insert id="insertPrcBillingTask" parameterType="PrcBillingTask" useGeneratedKeys="true" keyProperty="taskId">
insert into prc_billing_task (
transfer_no, tracking_no, order_no, bill_type, success_status,
transfer_no, tracking_no, order_no, customer_code, bill_type, success_status,
bill_time, bill_id, fail_code, error_message, create_by, create_time
) values (
#{transferNo}, #{trackingNo}, #{orderNo}, #{billType}, #{successStatus},
#{transferNo}, #{trackingNo}, #{orderNo}, #{customerCode}, #{billType}, #{successStatus},
#{billTime}, #{billId}, #{failCode}, #{errorMessage}, #{createBy}, sysdate()
)
</insert>
@@ -79,6 +83,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="transferNo != null">transfer_no = #{transferNo},</if>
<if test="trackingNo != null">tracking_no = #{trackingNo},</if>
<if test="orderNo != null">order_no = #{orderNo},</if>
<if test="customerCode != null">customer_code = #{customerCode},</if>
<if test="billType != null">bill_type = #{billType},</if>
<if test="successStatus != null">success_status = #{successStatus},</if>
<if test="billTime != null">bill_time = #{billTime},</if>
@@ -91,13 +96,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where task_id = #{taskId}
</update>
<!-- Keep inbound transfer/tracking/order/bill_time; only write status result. -->
<!-- Keep inbound identity keys/bill_time; write status + optional customer_code snapshot. -->
<update id="updateBillingResult" parameterType="PrcBillingTask">
update prc_billing_task
set success_status = #{successStatus},
bill_id = #{billId},
fail_code = #{failCode},
error_message = #{errorMessage},
<if test="customerCode != null">
customer_code = #{customerCode},
</if>
update_time = sysdate()
where task_id = #{taskId}
</update>