|
|
|
@ -67,7 +67,7 @@ |
|
|
|
insert into xm_task_order( |
|
|
|
<include refid="columns"/> |
|
|
|
) 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} |
|
|
|
#{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} |
|
|
|
) |
|
|
|
</insert> |
|
|
|
|
|
|
|
@ -142,7 +142,7 @@ |
|
|
|
|
|
|
|
<!--sql片段 列--> |
|
|
|
<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 |
|
|
|
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 |
|
|
|
</sql> |
|
|
|
|
|
|
|
<!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS--> |
|
|
|
@ -191,6 +191,8 @@ |
|
|
|
<if test="urgentEtime != null"> and date_format(res.urgent_etime,'%Y-%m-%d') = date_format(#{urgentEtime},'%Y-%m-%d') </if> |
|
|
|
<if test="calcStatus != null and calcStatus != ''"> and res.calc_status = #{calcStatus} </if> |
|
|
|
<if test="calcTime != null"> and date_format(res.calc_time,'%Y-%m-%d') = date_format(#{calcTime},'%Y-%m-%d') </if> |
|
|
|
<if test="oshare != null and oshare != ''"> and res.oshare = #{oshare} </if> |
|
|
|
<if test="shareFee != null and shareFee != ''"> and res.share_fee = #{shareFee} </if> |
|
|
|
</sql> |
|
|
|
<!--sql片段 更新字段 --> |
|
|
|
<sql id="set"> |
|
|
|
@ -236,7 +238,9 @@ |
|
|
|
urgent_stime = #{urgentStime}, |
|
|
|
urgent_etime = #{urgentEtime}, |
|
|
|
calc_status = #{calcStatus}, |
|
|
|
calc_time = #{calcTime} |
|
|
|
calc_time = #{calcTime}, |
|
|
|
oshare = #{oshare}, |
|
|
|
share_fee = #{shareFee} |
|
|
|
</sql> |
|
|
|
<sql id="someFieldSet"> |
|
|
|
<if test="userid != null and userid != ''"> userid = #{userid}, </if> |
|
|
|
@ -282,6 +286,8 @@ |
|
|
|
<if test="urgentEtime != null"> urgent_etime = #{urgentEtime}, </if> |
|
|
|
<if test="calcStatus != null and calcStatus != ''"> calc_status = #{calcStatus}, </if> |
|
|
|
<if test="calcTime != null"> calc_time = #{calcTime}, </if> |
|
|
|
<if test="oshare != null and oshare != ''"> oshare = #{oshare}, </if> |
|
|
|
<if test="shareFee != null and shareFee != ''"> share_fee = #{shareFee}, </if> |
|
|
|
</sql> |
|
|
|
<!--sql片段 批量更新 --> |
|
|
|
<sql id="batchSet"> |
|
|
|
@ -327,6 +333,8 @@ |
|
|
|
urgent_stime = #{item.urgentStime}, |
|
|
|
urgent_etime = #{item.urgentEtime}, |
|
|
|
calc_status = #{item.calcStatus}, |
|
|
|
calc_time = #{item.calcTime} |
|
|
|
calc_time = #{item.calcTime}, |
|
|
|
oshare = #{item.oshare}, |
|
|
|
share_fee = #{item.shareFee} |
|
|
|
</sql> |
|
|
|
</mapper> |