|
|
@@ -69,6 +69,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="packageId" column="package_id" />
|
|
|
<result property="finishTime" column="finish_time" />
|
|
|
<result property="deliveryStatus" column="delivery_status" />
|
|
|
+ <result property="deliveryExceptionRemark" column="delivery_exception_remark" />
|
|
|
+ <result property="deliveryExceptionStatus" column="delivery_exception_status" />
|
|
|
<result property="deliveryPayStatus" column="delivery_pay_status" />
|
|
|
<result property="deliveryTime" column="delivery_time" />
|
|
|
<result property="deliveryPayTime" column="delivery_pay_time" />
|
|
|
@@ -98,7 +100,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFsStoreOrderVo">
|
|
|
- select id, order_code,outer_oi_id,service_fee, extend_order_id,pay_order_id,bank_order_id, user_id,order_visit, real_name, user_phone, user_address, cart_id, freight_price, total_num, total_price, total_postage, pay_price, pay_postage,pay_delivery,pay_money, deduction_price, coupon_id, coupon_price, paid, pay_time, pay_type, create_time, update_time, status, refund_status, refund_reason_wap_img, refund_reason_wap_explain, refund_reason_time, refund_reason_wap, refund_reason, refund_price, delivery_sn, delivery_name, delivery_type, delivery_id, gain_integral, use_integral, pay_integral, back_integral, mark, is_del, remark, cost, verify_code, store_id, shipping_type, is_channel, is_remind, is_sys_del,is_prescribe,prescribe_id ,company_id,company_user_id,is_package,package_json,item_json,order_type,package_id,finish_time,delivery_status,delivery_pay_status,delivery_time,delivery_pay_time,delivery_pay_money,tui_money,tui_money_status,delivery_import_time,tui_user_id,tui_user_money_status,order_create_type,store_house_code,dept_id,is_edit_money,customer_id,is_pay_remain,delivery_send_time,certificates,schedule_id,backend_edit_product_type,video_id,course_id,project_id,period_id,virtual_phone,group_buy_id,live_id from fs_store_order_scrm
|
|
|
+ select id, order_code,outer_oi_id,service_fee, extend_order_id,pay_order_id,bank_order_id, user_id,order_visit, real_name, user_phone, user_address, cart_id, freight_price, total_num, total_price, total_postage, pay_price, pay_postage,pay_delivery,pay_money, deduction_price, coupon_id, coupon_price, paid, pay_time, pay_type, create_time, update_time, status, refund_status, refund_reason_wap_img, refund_reason_wap_explain, refund_reason_time, refund_reason_wap, refund_reason, refund_price, delivery_sn, delivery_name, delivery_type, delivery_id, gain_integral, use_integral, pay_integral, back_integral, mark, is_del, remark, cost, verify_code, store_id, shipping_type, is_channel, is_remind, is_sys_del,is_prescribe,prescribe_id ,company_id,company_user_id,is_package,package_json,item_json,order_type,package_id,finish_time,delivery_status,delivery_exception_remark,delivery_exception_status,delivery_pay_status,delivery_time,delivery_pay_time,delivery_pay_money,tui_money,tui_money_status,delivery_import_time,tui_user_id,tui_user_money_status,order_create_type,store_house_code,dept_id,is_edit_money,customer_id,is_pay_remain,delivery_send_time,certificates,schedule_id,backend_edit_product_type,video_id,course_id,project_id,period_id,virtual_phone,group_buy_id,live_id from fs_store_order_scrm
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectFsStoreOrderList" parameterType="FsStoreOrderScrm" resultMap="FsStoreOrderResult">
|
|
|
@@ -453,6 +455,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="packageId != null">package_id = #{packageId},</if>
|
|
|
<if test="finishTime != null">finish_time = #{finishTime},</if>
|
|
|
<if test="deliveryStatus != null">delivery_status = #{deliveryStatus},</if>
|
|
|
+ <if test="deliveryExceptionRemark != null">delivery_exception_remark = #{deliveryExceptionRemark},</if>
|
|
|
+ <if test="deliveryExceptionStatus != null">delivery_exception_status = #{deliveryExceptionStatus},</if>
|
|
|
<if test="deliveryPayStatus != null">delivery_pay_status = #{deliveryPayStatus},</if>
|
|
|
<if test="deliveryTime != null">delivery_time = #{deliveryTime},</if>
|
|
|
<if test="deliveryPayTime != null">delivery_pay_time = #{deliveryPayTime},</if>
|
|
|
@@ -1302,6 +1306,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="maps.deliveryStatus != null ">
|
|
|
and o.delivery_status =#{maps.deliveryStatus}
|
|
|
</if>
|
|
|
+ <if test="maps.deliveryExceptionStatus != null">
|
|
|
+ and o.delivery_exception_status = #{maps.deliveryExceptionStatus}
|
|
|
+ </if>
|
|
|
+ <if test="maps.onlyDeliveryAbnormal != null and maps.onlyDeliveryAbnormal == 1">
|
|
|
+ and o.delivery_exception_status is not null
|
|
|
+ </if>
|
|
|
+ <if test="maps.deliveryType != null and maps.deliveryType != ''">
|
|
|
+ and o.delivery_type = #{maps.deliveryType}
|
|
|
+ </if>
|
|
|
<if test="maps.deliveryPayStatus != null ">
|
|
|
and o.delivery_pay_status =#{maps.deliveryPayStatus}
|
|
|
</if>
|
|
|
@@ -1481,6 +1494,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="maps.deliveryStatus != null ">
|
|
|
and o.delivery_status =#{maps.deliveryStatus}
|
|
|
</if>
|
|
|
+ <if test="maps.deliveryExceptionStatus != null">
|
|
|
+ and o.delivery_exception_status = #{maps.deliveryExceptionStatus}
|
|
|
+ </if>
|
|
|
+ <if test="maps.onlyDeliveryAbnormal != null and maps.onlyDeliveryAbnormal == 1">
|
|
|
+ and o.delivery_exception_status is not null
|
|
|
+ </if>
|
|
|
+ <if test="maps.deliveryType != null and maps.deliveryType != ''">
|
|
|
+ and o.delivery_type = #{maps.deliveryType}
|
|
|
+ </if>
|
|
|
<if test="maps.deliveryPayStatus != null ">
|
|
|
and o.delivery_pay_status =#{maps.deliveryPayStatus}
|
|
|
</if>
|
|
|
@@ -1637,6 +1659,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="maps.deliveryStatus != null ">
|
|
|
and o.delivery_status =#{maps.deliveryStatus}
|
|
|
</if>
|
|
|
+ <if test="maps.deliveryExceptionStatus != null">
|
|
|
+ and o.delivery_exception_status = #{maps.deliveryExceptionStatus}
|
|
|
+ </if>
|
|
|
+ <if test="maps.onlyDeliveryAbnormal != null and maps.onlyDeliveryAbnormal == 1">
|
|
|
+ and o.delivery_exception_status is not null
|
|
|
+ </if>
|
|
|
+ <if test="maps.deliveryType != null and maps.deliveryType != ''">
|
|
|
+ and o.delivery_type = #{maps.deliveryType}
|
|
|
+ </if>
|
|
|
<if test="maps.deliveryPayStatus != null ">
|
|
|
and o.delivery_pay_status =#{maps.deliveryPayStatus}
|
|
|
</if>
|
|
|
@@ -1797,6 +1828,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="maps.deliveryStatus != null ">
|
|
|
and o.delivery_status =#{maps.deliveryStatus}
|
|
|
</if>
|
|
|
+ <if test="maps.deliveryExceptionStatus != null">
|
|
|
+ and o.delivery_exception_status = #{maps.deliveryExceptionStatus}
|
|
|
+ </if>
|
|
|
+ <if test="maps.onlyDeliveryAbnormal != null and maps.onlyDeliveryAbnormal == 1">
|
|
|
+ and o.delivery_exception_status is not null
|
|
|
+ </if>
|
|
|
+ <if test="maps.deliveryType != null and maps.deliveryType != ''">
|
|
|
+ and o.delivery_type = #{maps.deliveryType}
|
|
|
+ </if>
|
|
|
<if test="maps.deliveryPayStatus != null ">
|
|
|
and o.delivery_pay_status =#{maps.deliveryPayStatus}
|
|
|
</if>
|
|
|
@@ -1874,7 +1914,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
|
<!-- 商城订单查询接口-->
|
|
|
<select id="selectFsStoreOrderListVO" resultType="com.fs.hisStore.vo.FsStoreOrderVO">
|
|
|
- select DISTINCT o.id,o.order_code,o.extend_order_id,o.pay_order_id,o.bank_order_id,o.user_id,o.real_name,o.user_phone,o.user_address,o.cart_id,o.freight_price,o.total_num,o.total_price,o.total_postage,o.pay_price,o.pay_postage,o.pay_delivery,o.pay_money,o.deduction_price,o.coupon_id,o.coupon_price,o.paid,o.pay_time,o.pay_type,o.create_time,o.update_time,o.status,o.refund_status,o.refund_reason_wap_img,o.refund_reason_wap_explain,o.refund_reason_time,o.refund_reason_wap,o.refund_reason,o.refund_price,o.delivery_sn,o.delivery_name,o.delivery_type,o.delivery_id,o.gain_integral,o.use_integral,o.pay_integral,o.back_integral,o.mark,o.is_del,o.remark,o.verify_code,o.store_id,o.shipping_type,o.is_channel,o.is_remind,o.is_sys_del,o.is_prescribe,o.prescribe_id,o.company_id,o.company_user_id,o.is_package,o.package_json,o.order_type,o.package_id,o.finish_time,o.delivery_status,o.delivery_pay_status,o.delivery_time,o.delivery_pay_time,o.delivery_pay_money,o.tui_money,o.tui_money_status,o.delivery_import_time,o.tui_user_id,o.tui_user_money_status,o.order_create_type,o.store_house_code,o.dept_id,o.is_edit_money,o.customer_id,o.is_pay_remain,o.delivery_send_time,o.certificates,o.upload_time,o.item_json,o.schedule_id,o.delivery_pay_type,o.order_visit,o.service_fee,o.cycle,o.prescribe_price,o.follow_doctor_id,o.follow_time,o.user_coupon_id,o.order_medium,o.erp_phone,o.order_type
|
|
|
+ select DISTINCT o.id,o.order_code,o.extend_order_id,o.pay_order_id,o.bank_order_id,o.user_id,o.real_name,o.user_phone,o.user_address,o.cart_id,o.freight_price,o.total_num,o.total_price,o.total_postage,o.pay_price,o.pay_postage,o.pay_delivery,o.pay_money,o.deduction_price,o.coupon_id,o.coupon_price,o.paid,o.pay_time,o.pay_type,o.create_time,o.update_time,o.status,o.refund_status,o.refund_reason_wap_img,o.refund_reason_wap_explain,o.refund_reason_time,o.refund_reason_wap,o.refund_reason,o.refund_price,o.delivery_sn,o.delivery_name,o.delivery_type,o.delivery_id,o.gain_integral,o.use_integral,o.pay_integral,o.back_integral,o.mark,o.is_del,o.remark,o.verify_code,o.store_id,o.shipping_type,o.is_channel,o.is_remind,o.is_sys_del,o.is_prescribe,o.prescribe_id,o.company_id,o.company_user_id,o.is_package,o.package_json,o.order_type,o.package_id,o.finish_time,o.delivery_status,o.delivery_exception_remark,o.delivery_exception_status,o.delivery_pay_status,o.delivery_time,o.delivery_pay_time,o.delivery_pay_money,o.tui_money,o.tui_money_status,o.delivery_import_time,o.tui_user_id,o.tui_user_money_status,o.order_create_type,o.store_house_code,o.dept_id,o.is_edit_money,o.customer_id,o.is_pay_remain,o.delivery_send_time,o.certificates,o.upload_time,o.item_json,o.schedule_id,o.delivery_pay_type,o.order_visit,o.service_fee,o.cycle,o.prescribe_price,o.follow_doctor_id,o.follow_time,o.user_coupon_id,o.order_medium,o.erp_phone,o.order_type
|
|
|
,u.phone,u.register_code,u.register_date,u.source, c.company_name ,cu.nick_name as company_user_nick_name ,cu.phonenumber as company_usere_phonenumber
|
|
|
, csc.name miniProgramName,fsp.cost, fspc.cate_name,spavs.bar_code, sp_latest.bank_transaction_id as bankTransactionId,sp_latest.app_id, o.is_audit, o.audit_time,u.nick_name AS userNickName,oi.json_info
|
|
|
, aft.reason_level1_text as reasonValue1, aft.reason_level2_text as reasonValue2
|
|
|
@@ -1957,6 +1997,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="maps.deliveryStatus != null ">
|
|
|
and o.delivery_status =#{maps.deliveryStatus}
|
|
|
</if>
|
|
|
+ <if test="maps.deliveryExceptionStatus != null">
|
|
|
+ and o.delivery_exception_status = #{maps.deliveryExceptionStatus}
|
|
|
+ </if>
|
|
|
+ <if test="maps.onlyDeliveryAbnormal != null and maps.onlyDeliveryAbnormal == 1">
|
|
|
+ and o.delivery_status like '%4%'
|
|
|
+ </if>
|
|
|
+ <if test="maps.deliveryType != null and maps.deliveryType != ''">
|
|
|
+ and o.delivery_type = #{maps.deliveryType}
|
|
|
+ </if>
|
|
|
<if test="maps.deliveryPayStatus != null ">
|
|
|
and o.delivery_pay_status =#{maps.deliveryPayStatus}
|
|
|
</if>
|
|
|
@@ -2156,6 +2205,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="maps.deliveryStatus != null ">
|
|
|
and o.delivery_status =#{maps.deliveryStatus}
|
|
|
</if>
|
|
|
+ <if test="maps.deliveryExceptionStatus != null">
|
|
|
+ and o.delivery_exception_status = #{maps.deliveryExceptionStatus}
|
|
|
+ </if>
|
|
|
+ <if test="maps.onlyDeliveryAbnormal != null and maps.onlyDeliveryAbnormal == 1">
|
|
|
+ and o.delivery_exception_status is not null
|
|
|
+ </if>
|
|
|
+ <if test="maps.deliveryType != null and maps.deliveryType != ''">
|
|
|
+ and o.delivery_type = #{maps.deliveryType}
|
|
|
+ </if>
|
|
|
<if test="maps.deliveryPayStatus != null ">
|
|
|
and o.delivery_pay_status =#{maps.deliveryPayStatus}
|
|
|
</if>
|