增加修改客户重新同步功能

This commit is contained in:
wuweihua
2026-09-29 11:58:01 +08:00
parent b9746e3801
commit 2d002e7291
13 changed files with 1098 additions and 167 deletions
@@ -67,6 +67,47 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
order by task_id desc
</select>
<select id="countTaskIdsByFilter" parameterType="PrcBillingTask" resultType="int">
select count(1) from prc_billing_task
<where>
<if test="customerCode != null and customerCode != ''">
AND customer_code = #{customerCode}
</if>
<if test="successStatus != null and successStatus != ''">
AND success_status = #{successStatus}
</if>
<if test="params.beginTime != null and params.beginTime != ''">
AND date_format(bill_time,'%Y%m%d') &gt;= date_format(#{params.beginTime},'%Y%m%d')
</if>
<if test="params.endTime != null and params.endTime != ''">
AND date_format(bill_time,'%Y%m%d') &lt;= date_format(#{params.endTime},'%Y%m%d')
</if>
</where>
</select>
<select id="selectTaskIdsByFilter" resultType="long">
select task_id from prc_billing_task
<where>
<if test="query.customerCode != null and query.customerCode != ''">
AND customer_code = #{query.customerCode}
</if>
<if test="query.successStatus != null and query.successStatus != ''">
AND success_status = #{query.successStatus}
</if>
<if test="query.params != null and query.params.beginTime != null and query.params.beginTime != ''">
AND date_format(bill_time,'%Y%m%d') &gt;= date_format(#{query.params.beginTime},'%Y%m%d')
</if>
<if test="query.params != null and query.params.endTime != null and query.params.endTime != ''">
AND date_format(bill_time,'%Y%m%d') &lt;= date_format(#{query.params.endTime},'%Y%m%d')
</if>
<if test="lastTaskId != null">
AND task_id &gt; #{lastTaskId}
</if>
</where>
order by task_id asc
limit #{limit}
</select>
<insert id="insertPrcBillingTask" parameterType="PrcBillingTask" useGeneratedKeys="true" keyProperty="taskId">
insert into prc_billing_task (
transfer_no, tracking_no, order_no, customer_code, bill_type, success_status,