|
|
@ -50,6 +50,9 @@ |
|
|
|
<result column="kppzh" property="kppzh" jdbcType="VARCHAR"/> |
|
|
|
<result column="kppzh" property="kppzh" jdbcType="VARCHAR"/> |
|
|
|
<result column="pzgzrq" property="pzgzrq" jdbcType="TIMESTAMP"/> |
|
|
|
<result column="pzgzrq" property="pzgzrq" jdbcType="TIMESTAMP"/> |
|
|
|
<result column="yzfp" property="yzfp" jdbcType="VARCHAR"/> |
|
|
|
<result column="yzfp" property="yzfp" jdbcType="VARCHAR"/> |
|
|
|
|
|
|
|
<result column="origin_ddh" property="originDdh" jdbcType="VARCHAR"/> |
|
|
|
|
|
|
|
<result column="origin_order_id" property="originOrderId" jdbcType="VARCHAR"/> |
|
|
|
|
|
|
|
<result column="kb" property="kb" jdbcType="VARCHAR"/> |
|
|
|
</resultMap> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
|
|
|
|
<resultMap id="selectYwlxCountResultMap" type="com.dxhy.order.consumer.modules.order.model.bo.YwlxCountBO"> |
|
|
|
<resultMap id="selectYwlxCountResultMap" type="com.dxhy.order.consumer.modules.order.model.bo.YwlxCountBO"> |
|
|
@ -85,7 +88,7 @@ |
|
|
|
ghf_mc, ghf_nsrsbh, |
|
|
|
ghf_mc, ghf_nsrsbh, |
|
|
|
kpxm, ddcjsj, ddlx, ddzt, ddly, ywlx,ywlx_id,kpfs, sbyy, order_status, create_time, |
|
|
|
kpxm, ddcjsj, ddlx, ddzt, ddly, ywlx,ywlx_id,kpfs, sbyy, order_status, create_time, |
|
|
|
update_time,xhf_nsrsbh,xhf_mc,ent_id,sksbdm,fg_status,edit_status,num,check_status,check_time, |
|
|
|
update_time,xhf_nsrsbh,xhf_mc,ent_id,sksbdm,fg_status,edit_status,num,check_status,check_time, |
|
|
|
bzdh,xtly,gsdm,bhzt,ygxm,kppzh,pzgzrq,yzfp |
|
|
|
bzdh,xtly,gsdm,bhzt,ygxm,kppzh,pzgzrq,yzfp,origin_ddh,origin_order_id,kb |
|
|
|
</sql> |
|
|
|
</sql> |
|
|
|
|
|
|
|
|
|
|
|
<select id="selectOrderProcessInfoByProcessId" resultMap="BaseResultMap" |
|
|
|
<select id="selectOrderProcessInfoByProcessId" resultMap="BaseResultMap" |
|
|
@ -170,7 +173,7 @@ |
|
|
|
sbyy, order_status, create_time, |
|
|
|
sbyy, order_status, create_time, |
|
|
|
update_time, xhf_nsrsbh, xhf_mc,ent_id,sksbdm, |
|
|
|
update_time, xhf_nsrsbh, xhf_mc,ent_id,sksbdm, |
|
|
|
edit_status, num, check_status, check_time, |
|
|
|
edit_status, num, check_status, check_time, |
|
|
|
bzdh,xtly,gsdm,bhzt,ygxm,kppzh,pzgzrq,yzfp) |
|
|
|
bzdh,xtly,gsdm,bhzt,ygxm,kppzh,pzgzrq,yzfp,origin_ddh,origin_order_id,kb) |
|
|
|
values (#{id,jdbcType=VARCHAR}, #{orderInfoId,jdbcType=VARCHAR}, #{ddqqpch,jdbcType=VARCHAR}, |
|
|
|
values (#{id,jdbcType=VARCHAR}, #{orderInfoId,jdbcType=VARCHAR}, #{ddqqpch,jdbcType=VARCHAR}, |
|
|
|
#{fpqqlsh,jdbcType=VARCHAR}, |
|
|
|
#{fpqqlsh,jdbcType=VARCHAR}, |
|
|
|
#{ddh,jdbcType=VARCHAR}, #{tqm,jdbcType=VARCHAR}, #{kphjje,jdbcType=VARCHAR}, |
|
|
|
#{ddh,jdbcType=VARCHAR}, #{tqm,jdbcType=VARCHAR}, #{kphjje,jdbcType=VARCHAR}, |
|
|
@ -187,7 +190,8 @@ |
|
|
|
#{xhfNsrsbh,jdbcType=VARCHAR}, #{xhfMc,jdbcType=VARCHAR}, #{entId,jdbcType=VARCHAR}, #{sksbCode,jdbcType=VARCHAR}, |
|
|
|
#{xhfNsrsbh,jdbcType=VARCHAR}, #{xhfMc,jdbcType=VARCHAR}, #{entId,jdbcType=VARCHAR}, #{sksbCode,jdbcType=VARCHAR}, |
|
|
|
#{editStatus,jdbcType=VARCHAR}, #{num,jdbcType=INTEGER}, #{checkStatus,jdbcType=VARCHAR}, |
|
|
|
#{editStatus,jdbcType=VARCHAR}, #{num,jdbcType=INTEGER}, #{checkStatus,jdbcType=VARCHAR}, |
|
|
|
#{checkTime,jdbcType=VARCHAR}, #{bzdh,jdbcType=VARCHAR}, #{xtly,jdbcType=VARCHAR}, #{gsdm,jdbcType=VARCHAR}, |
|
|
|
#{checkTime,jdbcType=VARCHAR}, #{bzdh,jdbcType=VARCHAR}, #{xtly,jdbcType=VARCHAR}, #{gsdm,jdbcType=VARCHAR}, |
|
|
|
#{bhzt,jdbcType=VARCHAR}, #{ygxm,jdbcType=VARCHAR}, #{kppzh,jdbcType=VARCHAR}, #{pzgzrq,jdbcType=TIMESTAMP}, #{yzfp,jdbcType=VARCHAR}) |
|
|
|
#{bhzt,jdbcType=VARCHAR}, #{ygxm,jdbcType=VARCHAR}, #{kppzh,jdbcType=VARCHAR}, #{pzgzrq,jdbcType=TIMESTAMP}, |
|
|
|
|
|
|
|
#{yzfp,jdbcType=VARCHAR}, #{originDdh,jdbcType=VARCHAR}, #{originOrderId,jdbcType=VARCHAR}, #{kb,jdbcType=VARCHAR}) |
|
|
|
</insert> |
|
|
|
</insert> |
|
|
|
|
|
|
|
|
|
|
|
<update id="updateOrderProcessInfoByProcessId" parameterType="com.dxhy.order.model.OrderProcessInfo"> |
|
|
|
<update id="updateOrderProcessInfoByProcessId" parameterType="com.dxhy.order.model.OrderProcessInfo"> |
|
|
@ -307,6 +311,15 @@ |
|
|
|
<if test="processInfo.yzfp != null"> |
|
|
|
<if test="processInfo.yzfp != null"> |
|
|
|
yzfp = #{processInfo.yzfp,jdbcType=VARCHAR}, |
|
|
|
yzfp = #{processInfo.yzfp,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="processInfo.originDdh != null"> |
|
|
|
|
|
|
|
origin_ddh = #{processInfo.originDdh,jdbcType=VARCHAR}, |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="processInfo.originOrderId != null"> |
|
|
|
|
|
|
|
origin_order_id = #{processInfo.originOrderId,jdbcType=VARCHAR}, |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="processInfo.kb != null"> |
|
|
|
|
|
|
|
kb = #{processInfo.kb,jdbcType=VARCHAR}, |
|
|
|
|
|
|
|
</if> |
|
|
|
</set> |
|
|
|
</set> |
|
|
|
<where> |
|
|
|
<where> |
|
|
|
<if test="processInfo.id != null and processInfo.id != '' "> |
|
|
|
<if test="processInfo.id != null and processInfo.id != '' "> |
|
|
@ -350,7 +363,7 @@ |
|
|
|
op.ghf_mc, op.ghf_nsrsbh, |
|
|
|
op.ghf_mc, op.ghf_nsrsbh, |
|
|
|
op.kpxm, op.ddcjsj, op.ddlx, op.ddzt, op.ddly, op.ywlx,op.ywlx_id,op.kpfs, op.sbyy, op.order_status, op.create_time, |
|
|
|
op.kpxm, op.ddcjsj, op.ddlx, op.ddzt, op.ddly, op.ywlx,op.ywlx_id,op.kpfs, op.sbyy, op.order_status, op.create_time, |
|
|
|
op.update_time,op.xhf_nsrsbh,op.ent_id,op.xhf_mc,op.fg_status,op.edit_status,num,op.check_status,op.check_time, |
|
|
|
op.update_time,op.xhf_nsrsbh,op.ent_id,op.xhf_mc,op.fg_status,op.edit_status,num,op.check_status,op.check_time, |
|
|
|
op.bzdh,op.xtly,op.gsdm,op.bhzt,op.ygxm,op.kppzh,op.pzgzrq,op.yzfp |
|
|
|
op.bzdh,op.xtly,op.gsdm,op.bhzt,op.ygxm,op.kppzh,op.pzgzrq,op.yzfp,op.origin_ddh,op.origin_order_id,op.kb |
|
|
|
from order_process_info op |
|
|
|
from order_process_info op |
|
|
|
left join order_invoice_info oii on op.id = oii.order_process_info_id |
|
|
|
left join order_invoice_info oii on op.id = oii.order_process_info_id |
|
|
|
|
|
|
|
|
|
|
@ -562,19 +575,6 @@ |
|
|
|
#{item} |
|
|
|
#{item} |
|
|
|
</foreach> or op.ent_id is null) |
|
|
|
</foreach> or op.ent_id is null) |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 异常订单列表根据订单更新时间排序 --> |
|
|
|
|
|
|
|
<choose> |
|
|
|
|
|
|
|
<when test="map.orderBy !=null and map.orderBy == 'updateTime' "> |
|
|
|
|
|
|
|
order by op.update_time desc |
|
|
|
|
|
|
|
</when> |
|
|
|
|
|
|
|
<when test="map.orderBy !=null and map.orderBy == 'createTimeAsc' "> |
|
|
|
|
|
|
|
order by op.ddcjsj asc |
|
|
|
|
|
|
|
</when> |
|
|
|
|
|
|
|
<otherwise> |
|
|
|
|
|
|
|
order by op.ddcjsj desc,op.num desc,op.create_time desc,op.id desc |
|
|
|
|
|
|
|
</otherwise> |
|
|
|
|
|
|
|
</choose> |
|
|
|
|
|
|
|
<if test="map.bzdh != null and map.bzdh != ''"> |
|
|
|
<if test="map.bzdh != null and map.bzdh != ''"> |
|
|
|
and op.bzdh = #{map.bzdh,jdbcType=VARCHAR} |
|
|
|
and op.bzdh = #{map.bzdh,jdbcType=VARCHAR} |
|
|
|
</if> |
|
|
|
</if> |
|
|
@ -599,6 +599,29 @@ |
|
|
|
<if test="map.yzfp != null and map.yzfp != ''"> |
|
|
|
<if test="map.yzfp != null and map.yzfp != ''"> |
|
|
|
and op.yzfp = #{map.yzfp,jdbcType=VARCHAR} |
|
|
|
and op.yzfp = #{map.yzfp,jdbcType=VARCHAR} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="map.originDdh != null and map.originDdh != ''"> |
|
|
|
|
|
|
|
and op.origin_ddh = #{map.originDdh,jdbcType=VARCHAR} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="map.originOrderId != null and map.originOrderId != ''"> |
|
|
|
|
|
|
|
and op.origin_order_id = #{map.originOrderId,jdbcType=VARCHAR} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="map.kb != null and map.kb != ''"> |
|
|
|
|
|
|
|
and op.kb = #{map.kb,jdbcType=VARCHAR} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 异常订单列表根据订单更新时间排序 --> |
|
|
|
|
|
|
|
<choose> |
|
|
|
|
|
|
|
<when test="map.orderBy !=null and map.orderBy == 'updateTime' "> |
|
|
|
|
|
|
|
order by op.update_time desc |
|
|
|
|
|
|
|
</when> |
|
|
|
|
|
|
|
<when test="map.orderBy !=null and map.orderBy == 'createTimeAsc' "> |
|
|
|
|
|
|
|
order by op.ddcjsj asc |
|
|
|
|
|
|
|
</when> |
|
|
|
|
|
|
|
<otherwise> |
|
|
|
|
|
|
|
order by op.ddcjsj desc,op.num desc,op.create_time desc,op.id desc |
|
|
|
|
|
|
|
</otherwise> |
|
|
|
|
|
|
|
</choose> |
|
|
|
|
|
|
|
|
|
|
|
</where> |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
@ -853,6 +876,15 @@ |
|
|
|
<if test="processInfo.yzfp != null"> |
|
|
|
<if test="processInfo.yzfp != null"> |
|
|
|
yzfp = #{processInfo.yzfp,jdbcType=VARCHAR}, |
|
|
|
yzfp = #{processInfo.yzfp,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="processInfo.originDdh != null"> |
|
|
|
|
|
|
|
origin_ddh = #{processInfo.originDdh,jdbcType=VARCHAR}, |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="processInfo.originOrderId != null"> |
|
|
|
|
|
|
|
origin_order_id = #{processInfo.originOrderId,jdbcType=VARCHAR}, |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="processInfo.kb != null"> |
|
|
|
|
|
|
|
kb = #{processInfo.kb,jdbcType=VARCHAR}, |
|
|
|
|
|
|
|
</if> |
|
|
|
</set> |
|
|
|
</set> |
|
|
|
<where> |
|
|
|
<where> |
|
|
|
<if test="processInfo.id != null and processInfo.id != '' "> |
|
|
|
<if test="processInfo.id != null and processInfo.id != '' "> |
|
|
|