|
|
@ -67,7 +67,7 @@ |
|
|
insert into xm_task_order( |
|
|
insert into xm_task_order( |
|
|
<include refid="columns"/> |
|
|
<include refid="columns"/> |
|
|
) values ( |
|
|
) values ( |
|
|
#{userid},#{branchId},#{ostatus},#{ctime},#{ltime},#{payType},#{payStatus},#{payTime},#{prepayId},#{id},#{finalFee},#{othFee},#{originFee},#{payAt},#{payAuthId},#{payOpenid},#{payUserid},#{payUsername},#{discount},#{topFee},#{topStime},#{topEtime},#{hotFee},#{hotStime},#{hotEtime},#{top},#{hot},#{crmSupFee},#{urgentFee},#{urgent},#{crmSup},#{efunds},#{estate},#{etoPlatTime},#{etoDevTime},#{ebackTime},#{taskId},#{topDays},#{hotDays},#{urgentDays},#{urgentStime},#{urgentEtime},#{calcStatus},#{calcTime},#{oshare},#{shareFee},#{payId} |
|
|
|
|
|
|
|
|
#{ouserid},#{obranchId},#{ostatus},#{ctime},#{ltime},#{payType},#{payStatus},#{payTime},#{prepayId},#{id},#{finalFee},#{othFee},#{originFee},#{payAt},#{payAuthId},#{payOpenid},#{payUserid},#{payUsername},#{discount},#{topFee},#{topStime},#{topEtime},#{hotFee},#{hotStime},#{hotEtime},#{top},#{hot},#{crmSupFee},#{urgentFee},#{urgent},#{crmSup},#{efunds},#{estate},#{etoPlatTime},#{etoDevTime},#{ebackTime},#{taskId},#{topDays},#{hotDays},#{urgentDays},#{urgentStime},#{urgentEtime},#{calcStatus},#{calcTime},#{oshare},#{shareFee},#{payId},#{tranId} |
|
|
) |
|
|
) |
|
|
</insert> |
|
|
</insert> |
|
|
|
|
|
|
|
|
@ -142,13 +142,13 @@ |
|
|
|
|
|
|
|
|
<!--sql片段 列--> |
|
|
<!--sql片段 列--> |
|
|
<sql id="columns"> |
|
|
<sql id="columns"> |
|
|
userid,branch_id,ostatus,ctime,ltime,pay_type,pay_status,pay_time,prepay_id,id,final_fee,oth_fee,origin_fee,pay_at,pay_auth_id,pay_openid,pay_userid,pay_username,discount,top_fee,top_stime,top_etime,hot_fee,hot_stime,hot_etime,top,hot,crm_sup_fee,urgent_fee,urgent,crm_sup,efunds,estate,eto_plat_time,eto_dev_time,eback_time,task_id,top_days,hot_days,urgent_days,urgent_stime,urgent_etime,calc_status,calc_time,oshare,share_fee,pay_id |
|
|
|
|
|
|
|
|
ouserid,obranch_id,ostatus,ctime,ltime,pay_type,pay_status,pay_time,prepay_id,id,final_fee,oth_fee,origin_fee,pay_at,pay_auth_id,pay_openid,pay_userid,pay_username,discount,top_fee,top_stime,top_etime,hot_fee,hot_stime,hot_etime,top,hot,crm_sup_fee,urgent_fee,urgent,crm_sup,efunds,estate,eto_plat_time,eto_dev_time,eback_time,task_id,top_days,hot_days,urgent_days,urgent_stime,urgent_etime,calc_status,calc_time,oshare,share_fee,pay_id,tran_id |
|
|
</sql> |
|
|
</sql> |
|
|
|
|
|
|
|
|
<!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS--> |
|
|
<!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS--> |
|
|
<sql id="where"> |
|
|
<sql id="where"> |
|
|
<if test="userid != null and userid != ''"> and res.userid = #{userid} </if> |
|
|
|
|
|
<if test="branchId != null and branchId != ''"> and res.branch_id = #{branchId} </if> |
|
|
|
|
|
|
|
|
<if test="ouserid != null and ouserid != ''"> and res.ouserid = #{ouserid} </if> |
|
|
|
|
|
<if test="obranchId != null and obranchId != ''"> and res.obranch_id = #{obranchId} </if> |
|
|
<if test="ostatus != null and ostatus != ''"> and res.ostatus = #{ostatus} </if> |
|
|
<if test="ostatus != null and ostatus != ''"> and res.ostatus = #{ostatus} </if> |
|
|
<if test="ctime != null"> and date_format(res.ctime,'%Y-%m-%d') = date_format(#{ctime},'%Y-%m-%d') </if> |
|
|
<if test="ctime != null"> and date_format(res.ctime,'%Y-%m-%d') = date_format(#{ctime},'%Y-%m-%d') </if> |
|
|
<if test="ltime != null"> and date_format(res.ltime,'%Y-%m-%d') = date_format(#{ltime},'%Y-%m-%d') </if> |
|
|
<if test="ltime != null"> and date_format(res.ltime,'%Y-%m-%d') = date_format(#{ltime},'%Y-%m-%d') </if> |
|
|
@ -194,11 +194,12 @@ |
|
|
<if test="oshare != null and oshare != ''"> and res.oshare = #{oshare} </if> |
|
|
<if test="oshare != null and oshare != ''"> and res.oshare = #{oshare} </if> |
|
|
<if test="shareFee != null and shareFee != ''"> and res.share_fee = #{shareFee} </if> |
|
|
<if test="shareFee != null and shareFee != ''"> and res.share_fee = #{shareFee} </if> |
|
|
<if test="payId != null and payId != ''"> and res.pay_id = #{payId} </if> |
|
|
<if test="payId != null and payId != ''"> and res.pay_id = #{payId} </if> |
|
|
|
|
|
<if test="tranId != null and tranId != ''"> and res.tran_id = #{tranId} </if> |
|
|
</sql> |
|
|
</sql> |
|
|
<!--sql片段 更新字段 --> |
|
|
<!--sql片段 更新字段 --> |
|
|
<sql id="set"> |
|
|
<sql id="set"> |
|
|
userid = #{userid}, |
|
|
|
|
|
branch_id = #{branchId}, |
|
|
|
|
|
|
|
|
ouserid = #{ouserid}, |
|
|
|
|
|
obranch_id = #{obranchId}, |
|
|
ostatus = #{ostatus}, |
|
|
ostatus = #{ostatus}, |
|
|
ctime = #{ctime}, |
|
|
ctime = #{ctime}, |
|
|
ltime = #{ltime}, |
|
|
ltime = #{ltime}, |
|
|
@ -242,11 +243,12 @@ |
|
|
calc_time = #{calcTime}, |
|
|
calc_time = #{calcTime}, |
|
|
oshare = #{oshare}, |
|
|
oshare = #{oshare}, |
|
|
share_fee = #{shareFee}, |
|
|
share_fee = #{shareFee}, |
|
|
pay_id = #{payId} |
|
|
|
|
|
|
|
|
pay_id = #{payId}, |
|
|
|
|
|
tran_id = #{tranId} |
|
|
</sql> |
|
|
</sql> |
|
|
<sql id="someFieldSet"> |
|
|
<sql id="someFieldSet"> |
|
|
<if test="userid != null and userid != ''"> userid = #{userid}, </if> |
|
|
|
|
|
<if test="branchId != null and branchId != ''"> branch_id = #{branchId}, </if> |
|
|
|
|
|
|
|
|
<if test="ouserid != null and ouserid != ''"> ouserid = #{ouserid}, </if> |
|
|
|
|
|
<if test="obranchId != null and obranchId != ''"> obranch_id = #{obranchId}, </if> |
|
|
<if test="ostatus != null and ostatus != ''"> ostatus = #{ostatus}, </if> |
|
|
<if test="ostatus != null and ostatus != ''"> ostatus = #{ostatus}, </if> |
|
|
<if test="ctime != null"> ctime = #{ctime}, </if> |
|
|
<if test="ctime != null"> ctime = #{ctime}, </if> |
|
|
<if test="ltime != null"> ltime = #{ltime}, </if> |
|
|
<if test="ltime != null"> ltime = #{ltime}, </if> |
|
|
@ -291,11 +293,12 @@ |
|
|
<if test="oshare != null and oshare != ''"> oshare = #{oshare}, </if> |
|
|
<if test="oshare != null and oshare != ''"> oshare = #{oshare}, </if> |
|
|
<if test="shareFee != null and shareFee != ''"> share_fee = #{shareFee}, </if> |
|
|
<if test="shareFee != null and shareFee != ''"> share_fee = #{shareFee}, </if> |
|
|
<if test="payId != null and payId != ''"> pay_id = #{payId}, </if> |
|
|
<if test="payId != null and payId != ''"> pay_id = #{payId}, </if> |
|
|
|
|
|
<if test="tranId != null and tranId != ''"> tran_id = #{tranId}, </if> |
|
|
</sql> |
|
|
</sql> |
|
|
<!--sql片段 批量更新 --> |
|
|
<!--sql片段 批量更新 --> |
|
|
<sql id="batchSet"> |
|
|
<sql id="batchSet"> |
|
|
userid = #{item.userid}, |
|
|
|
|
|
branch_id = #{item.branchId}, |
|
|
|
|
|
|
|
|
ouserid = #{item.ouserid}, |
|
|
|
|
|
obranch_id = #{item.obranchId}, |
|
|
ostatus = #{item.ostatus}, |
|
|
ostatus = #{item.ostatus}, |
|
|
ctime = #{item.ctime}, |
|
|
ctime = #{item.ctime}, |
|
|
ltime = #{item.ltime}, |
|
|
ltime = #{item.ltime}, |
|
|
@ -339,6 +342,7 @@ |
|
|
calc_time = #{item.calcTime}, |
|
|
calc_time = #{item.calcTime}, |
|
|
oshare = #{item.oshare}, |
|
|
oshare = #{item.oshare}, |
|
|
share_fee = #{item.shareFee}, |
|
|
share_fee = #{item.shareFee}, |
|
|
pay_id = #{item.payId} |
|
|
|
|
|
|
|
|
pay_id = #{item.payId}, |
|
|
|
|
|
tran_id = #{item.tranId} |
|
|
</sql> |
|
|
</sql> |
|
|
</mapper> |
|
|
</mapper> |