增加修改客户重新同步功能
This commit is contained in:
@@ -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') >= date_format(#{params.beginTime},'%Y%m%d')
|
||||
</if>
|
||||
<if test="params.endTime != null and params.endTime != ''">
|
||||
AND date_format(bill_time,'%Y%m%d') <= 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') >= 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') <= date_format(#{query.params.endTime},'%Y%m%d')
|
||||
</if>
|
||||
<if test="lastTaskId != null">
|
||||
AND task_id > #{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,
|
||||
|
||||
Reference in New Issue
Block a user