Browse Source

task_order

master
陈裕财 4 years ago
parent
commit
f7a8601bbe
  1. 8
      xm-core/src/main/java/com/xm/core/entity/XmTaskOrder.java
  2. 16
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTaskOrderMapper.xml

8
xm-core/src/main/java/com/xm/core/entity/XmTaskOrder.java

@ -9,7 +9,7 @@ import java.math.BigDecimal;
/** /**
* 组织 com 顶级模块 xm 大模块 core 小模块 <br> * 组织 com 顶级模块 xm 大模块 core 小模块 <br>
* 实体 XmTaskOrder所有属性名: <br> * 实体 XmTaskOrder所有属性名: <br>
* "ouserid","下单用户编号","obranchId","公司ID-下单客户对应的企业","ostatus","订单状态0-初始,1-待确认,2-待付款,3-已付款,4-已完成,5-已取消-未付款前可取消,取消后可删除,6-退单-退单后变为已取消,8已关闭-售后完成后可以关闭订单","ctime","创建时间","ltime","更新时间","payType","支付方式","payStatus","支付状态0待付款,1已付款","payTime","支付时间","prepayId","第三方支付订单编号","id","订单编号","finalFee","最终总费用=origin_fee","othFee","其它费用","originFee","原始价格=top_fee+urgent_fee+crm_sup_fee+hot_fee+efunds+share_fee","payAt","最终付款金额-客户付款后回填","payAuthId","支付授权码","payOpenid","支付账户对应的第三方openid,注意,下单根付款不一定是同一个人","payUserid","付款用户编号","payUsername","付款用户名称","discount","折扣率0-199","topFee","置顶费用","topStime","置顶开始时间","topEtime","置顶结束时间","hotFee","热搜费用","hotStime","热搜开始时间","hotEtime","热搜结束时间","top","是否置顶0否1待付款2已开通3已过期","hot","是否热搜0否1待付款2已开通3已过期","crmSupFee","客服包办费用","urgentFee","加急费用","urgent","是否加急0否1待付款2已开通3已过期","crmSup","是否客服包办0否1待付款2已开通3已过期","efunds","托管金额","estate","资金托管状况0-无须托管,1-待付款,2-已托管资金,3-已付款给服务商,4-已退款","etoPlatTime","托管资金付款给平台的时间","etoDevTime","托管资金支付给服务商的时间","ebackTime","托管资金退回甲方时间","taskId","任务编号","topDays","置顶天数","hotDays","热搜天数","urgentDays","加急天数","urgentStime","加急开始时间","urgentEtime","加急结束时间","calcStatus","定时检查日期是否已过期,已过期则取消任务中的置顶、加急、热搜状态计算状态0-无须计算,1-本周期已计算待下周期计算,2-结束","calcTime","计算时间","oshare","是否开启分享赚0否1待付款2已开通3已过期","shareFee","分享赚佣金","payId","付款流水号(内部生成,传给第三方原样传回,如果不正确,不允许更新数据库,防止作弊)","tranId","第三方付款事务号";<br>
* "ouserid","下单用户编号","obranchId","公司ID-下单客户对应的企业","ostatus","订单状态0-初始,1-待确认,2-待付款,3-已付款,4-已完成,5-已取消-未付款前可取消,取消后可删除,6-退单-退单后变为已取消,8已关闭-售后完成后可以关闭订单","ctime","创建时间","ltime","更新时间","payType","支付方式","payStatus","支付状态0待付款,1已付款","payTime","支付时间","prepayId","第三方支付订单编号","id","订单编号","finalFee","最终总费用=origin_fee","othFee","其它费用","originFee","原始价格=top_fee+urgent_fee+crm_sup_fee+hot_fee+efunds+share_fee","payAt","最终付款金额-客户付款后回填","payAuthId","支付授权码","payOpenid","支付账户对应的第三方openid,注意,下单根付款不一定是同一个人","payUserid","付款用户编号","payUsername","付款用户名称","discount","折扣率0-199","topFee","置顶费用","topStime","置顶开始时间","topEtime","置顶结束时间","hotFee","热搜费用","hotStime","热搜开始时间","hotEtime","热搜结束时间","top","是否置顶0否1待付款2已开通3已过期","hot","是否热搜0否1待付款2已开通3已过期","crmSupFee","客服包办费用","urgentFee","加急费用","urgent","是否加急0否1待付款2已开通3已过期","crmSup","是否客服包办0否1待付款2已开通3已过期","efunds","托管金额","estate","资金托管状况0-无须托管,1-待付款,2-已托管资金,3-已付款给服务商,4-已退款","etoPlatTime","托管资金付款给平台的时间","etoDevTime","托管资金支付给服务商的时间","ebackTime","托管资金退回甲方时间","taskId","任务编号","topDays","置顶天数","hotDays","热搜天数","urgentDays","加急天数","urgentStime","加急开始时间","urgentEtime","加急结束时间","calcStatus","定时检查日期是否已过期,已过期则取消任务中的置顶、加急、热搜状态计算状态0-无须计算,1-本周期已计算待下周期计算,2-结束","calcTime","计算时间","oshare","是否开启分享赚0否1待付款2已开通3已过期","shareFee","分享赚佣金","payId","付款流水号(内部生成,传给第三方原样传回,如果不正确,不允许更新数据库,防止作弊)","tranId","第三方付款事务号","remark","订单备注","name","订单名称";<br>
* 当前主键(包括多主键):<br> * 当前主键(包括多主键):<br>
* id;<br> * id;<br>
*/ */
@ -163,6 +163,12 @@ public class XmTaskOrder implements java.io.Serializable {
@ApiModelProperty(notes="第三方付款事务号",allowEmptyValue=true,example="",allowableValues="") @ApiModelProperty(notes="第三方付款事务号",allowEmptyValue=true,example="",allowableValues="")
String tranId; String tranId;
@ApiModelProperty(notes="订单备注",allowEmptyValue=true,example="",allowableValues="")
String remark;
@ApiModelProperty(notes="订单名称",allowEmptyValue=true,example="",allowableValues="")
String name;
/** /**
*订单编号 *订单编号

16
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTaskOrderMapper.xml

@ -67,7 +67,7 @@
insert into xm_task_order( insert into xm_task_order(
<include refid="columns"/> <include refid="columns"/>
) values ( ) values (
#{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}
#{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},#{remark},#{name}
) )
</insert> </insert>
@ -142,7 +142,7 @@
<!--sql片段 列--> <!--sql片段 列-->
<sql id="columns"> <sql id="columns">
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
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,remark,name
</sql> </sql>
<!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS--> <!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS-->
@ -195,6 +195,8 @@
<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> <if test="tranId != null and tranId != ''"> and res.tran_id = #{tranId} </if>
<if test="remark != null and remark != ''"> and res.remark = #{remark} </if>
<if test="name != null and name != ''"> and res.name = #{name} </if>
</sql> </sql>
<!--sql片段 更新字段 --> <!--sql片段 更新字段 -->
<sql id="set"> <sql id="set">
@ -244,7 +246,9 @@
oshare = #{oshare}, oshare = #{oshare},
share_fee = #{shareFee}, share_fee = #{shareFee},
pay_id = #{payId}, pay_id = #{payId},
tran_id = #{tranId}
tran_id = #{tranId},
remark = #{remark},
name = #{name}
</sql> </sql>
<sql id="someFieldSet"> <sql id="someFieldSet">
<if test="ouserid != null and ouserid != ''"> ouserid = #{ouserid}, </if> <if test="ouserid != null and ouserid != ''"> ouserid = #{ouserid}, </if>
@ -294,6 +298,8 @@
<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> <if test="tranId != null and tranId != ''"> tran_id = #{tranId}, </if>
<if test="remark != null and remark != ''"> remark = #{remark}, </if>
<if test="name != null and name != ''"> name = #{name}, </if>
</sql> </sql>
<!--sql片段 批量更新 --> <!--sql片段 批量更新 -->
<sql id="batchSet"> <sql id="batchSet">
@ -343,6 +349,8 @@
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}
tran_id = #{item.tranId},
remark = #{item.remark},
name = #{item.name}
</sql> </sql>
</mapper> </mapper>
Loading…
Cancel
Save