|
@@ -93,7 +93,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<sql id="selectFsStoreOrderVo">
|
|
<sql id="selectFsStoreOrderVo">
|
|
|
- select id, order_code,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 from fs_store_order_scrm
|
|
|
|
|
|
|
+ select id, order_code,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 from fs_store_order_scrm
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<select id="selectFsStoreOrderList" parameterType="FsStoreOrderScrm" resultMap="FsStoreOrderResult">
|
|
<select id="selectFsStoreOrderList" parameterType="FsStoreOrderScrm" resultMap="FsStoreOrderResult">
|
|
@@ -157,6 +157,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="remark != null and remark != ''"> and remark = #{remark}</if>
|
|
<if test="remark != null and remark != ''"> and remark = #{remark}</if>
|
|
|
<if test="videoId != null and videoId != ''"> and video_id = #{videoId}</if>
|
|
<if test="videoId != null and videoId != ''"> and video_id = #{videoId}</if>
|
|
|
<if test="courseId != null and courseId != ''"> and course_id = #{courseId}</if>
|
|
<if test="courseId != null and courseId != ''"> and course_id = #{courseId}</if>
|
|
|
|
|
+ <if test="periodId != null"> and period_id = #{periodId}</if>
|
|
|
</where>
|
|
</where>
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
@@ -272,6 +273,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="backendEditProductType != null">backend_edit_product_type,</if>
|
|
<if test="backendEditProductType != null">backend_edit_product_type,</if>
|
|
|
<if test="videoId != null">video_id,</if>
|
|
<if test="videoId != null">video_id,</if>
|
|
|
<if test="courseId != null" >course_id,</if>
|
|
<if test="courseId != null" >course_id,</if>
|
|
|
|
|
+ <if test="projectId != null" >project_id,</if>
|
|
|
|
|
+ <if test="periodId != null" >period_id,</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="orderCode != null and orderCode != ''">#{orderCode},</if>
|
|
<if test="orderCode != null and orderCode != ''">#{orderCode},</if>
|
|
@@ -361,6 +364,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="backendEditProductType != null">#{backendEditProductType},</if>
|
|
<if test="backendEditProductType != null">#{backendEditProductType},</if>
|
|
|
<if test="videoId != null">#{videoId},</if>
|
|
<if test="videoId != null">#{videoId},</if>
|
|
|
<if test="courseId != null" >#{courseId},</if>
|
|
<if test="courseId != null" >#{courseId},</if>
|
|
|
|
|
+ <if test="projectId != null" >#{projectId},</if>
|
|
|
|
|
+ <if test="periodId != null" >#{periodId},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
@@ -1154,10 +1159,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</if>
|
|
</if>
|
|
|
<if test="maps.isHealth != null and maps.isHealth != '' ">
|
|
<if test="maps.isHealth != null and maps.isHealth != '' ">
|
|
|
and (o.company_id is null
|
|
and (o.company_id is null
|
|
|
- or o.order_type = 2)
|
|
|
|
|
|
|
+ or o.order_type = 2 or o.order_type = 3)
|
|
|
</if>
|
|
</if>
|
|
|
<if test="maps.notHealth != null ">
|
|
<if test="maps.notHealth != null ">
|
|
|
- and o.company_id is not null
|
|
|
|
|
|
|
+ and o.company_id is not null and o.order_type = 0
|
|
|
</if>
|
|
</if>
|
|
|
<if test="maps.companyUserId != null ">
|
|
<if test="maps.companyUserId != null ">
|
|
|
and o.company_user_id =#{maps.companyUserId}
|
|
and o.company_user_id =#{maps.companyUserId}
|
|
@@ -1174,9 +1179,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="maps.productName != null and maps.productName != '' ">
|
|
<if test="maps.productName != null and maps.productName != '' ">
|
|
|
and fsp.product_name like concat('%', #{maps.productName}, '%')
|
|
and fsp.product_name like concat('%', #{maps.productName}, '%')
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="maps.orderType != null ">
|
|
|
|
|
|
|
+ <if test="maps.orderType != null and maps.orderType != -1">
|
|
|
and o.order_type =#{maps.orderType}
|
|
and o.order_type =#{maps.orderType}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="maps.orderType != null and maps.orderType == -1">
|
|
|
|
|
+ and o.order_type in (2, 3)
|
|
|
|
|
+ </if>
|
|
|
<if test="maps.payType != null ">
|
|
<if test="maps.payType != null ">
|
|
|
and o.pay_type =#{maps.payType}
|
|
and o.pay_type =#{maps.payType}
|
|
|
</if>
|
|
</if>
|
|
@@ -1330,10 +1338,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</if>
|
|
</if>
|
|
|
<if test="maps.isHealth != null and maps.isHealth != '' ">
|
|
<if test="maps.isHealth != null and maps.isHealth != '' ">
|
|
|
and (o.company_id is null
|
|
and (o.company_id is null
|
|
|
- or o.order_type = 2)
|
|
|
|
|
|
|
+ or o.order_type = 2 or o.order_type = 3)
|
|
|
</if>
|
|
</if>
|
|
|
<if test="maps.notHealth != null ">
|
|
<if test="maps.notHealth != null ">
|
|
|
- and o.company_id is not null
|
|
|
|
|
|
|
+ and o.company_id is not null and o.order_type = 0
|
|
|
</if>
|
|
</if>
|
|
|
<if test="maps.companyUserId != null ">
|
|
<if test="maps.companyUserId != null ">
|
|
|
and o.company_user_id =#{maps.companyUserId}
|
|
and o.company_user_id =#{maps.companyUserId}
|
|
@@ -1350,9 +1358,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="maps.productName != null and maps.productName != '' ">
|
|
<if test="maps.productName != null and maps.productName != '' ">
|
|
|
and fsp.product_name like concat('%', #{maps.productName}, '%')
|
|
and fsp.product_name like concat('%', #{maps.productName}, '%')
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="maps.orderType != null ">
|
|
|
|
|
|
|
+ <if test="maps.orderType != null and maps.orderType != -1">
|
|
|
and o.order_type =#{maps.orderType}
|
|
and o.order_type =#{maps.orderType}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="maps.orderType != null and maps.orderType == -1">
|
|
|
|
|
+ and o.order_type in (2, 3)
|
|
|
|
|
+ </if>
|
|
|
<if test="maps.payType != null ">
|
|
<if test="maps.payType != null ">
|
|
|
and o.pay_type =#{maps.payType}
|
|
and o.pay_type =#{maps.payType}
|
|
|
</if>
|
|
</if>
|
|
@@ -1483,10 +1494,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</if>
|
|
</if>
|
|
|
<if test="maps.isHealth != null and maps.isHealth != '' ">
|
|
<if test="maps.isHealth != null and maps.isHealth != '' ">
|
|
|
and (o.company_id is null
|
|
and (o.company_id is null
|
|
|
- or o.order_type = 2)
|
|
|
|
|
|
|
+ or o.order_type = 2 or o.order_type = 3)
|
|
|
</if>
|
|
</if>
|
|
|
<if test="maps.notHealth != null ">
|
|
<if test="maps.notHealth != null ">
|
|
|
- and o.company_id is not null
|
|
|
|
|
|
|
+ and o.company_id is not null and o.order_type = 0
|
|
|
</if>
|
|
</if>
|
|
|
<if test="maps.companyUserId != null ">
|
|
<if test="maps.companyUserId != null ">
|
|
|
and o.company_user_id =#{maps.companyUserId}
|
|
and o.company_user_id =#{maps.companyUserId}
|
|
@@ -1503,9 +1514,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="maps.productName != null and maps.productName != '' ">
|
|
<if test="maps.productName != null and maps.productName != '' ">
|
|
|
and fsp.product_name like concat('%', #{maps.productName}, '%')
|
|
and fsp.product_name like concat('%', #{maps.productName}, '%')
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="maps.orderType != null ">
|
|
|
|
|
|
|
+ <if test="maps.orderType != null and maps.orderType != -1">
|
|
|
and o.order_type =#{maps.orderType}
|
|
and o.order_type =#{maps.orderType}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="maps.orderType != null and maps.orderType == -1">
|
|
|
|
|
+ and o.order_type in (2, 3)
|
|
|
|
|
+ </if>
|
|
|
<if test="maps.payType != null ">
|
|
<if test="maps.payType != null ">
|
|
|
and o.pay_type =#{maps.payType}
|
|
and o.pay_type =#{maps.payType}
|
|
|
</if>
|
|
</if>
|
|
@@ -1640,10 +1654,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</if>
|
|
</if>
|
|
|
<if test="maps.isHealth != null and maps.isHealth != '' ">
|
|
<if test="maps.isHealth != null and maps.isHealth != '' ">
|
|
|
and (o.company_id is null
|
|
and (o.company_id is null
|
|
|
- or o.order_type = 2)
|
|
|
|
|
|
|
+ or o.order_type = 2 or o.order_type = 3)
|
|
|
</if>
|
|
</if>
|
|
|
<if test="maps.notHealth != null ">
|
|
<if test="maps.notHealth != null ">
|
|
|
- and o.company_id is not null
|
|
|
|
|
|
|
+ and o.company_id is not null and o.order_type = 0
|
|
|
</if>
|
|
</if>
|
|
|
<if test="maps.companyUserId != null ">
|
|
<if test="maps.companyUserId != null ">
|
|
|
and o.company_user_id =#{maps.companyUserId}
|
|
and o.company_user_id =#{maps.companyUserId}
|
|
@@ -1660,9 +1674,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="maps.productName != null and maps.productName != '' ">
|
|
<if test="maps.productName != null and maps.productName != '' ">
|
|
|
and fsp.product_name like concat('%', #{maps.productName}, '%')
|
|
and fsp.product_name like concat('%', #{maps.productName}, '%')
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="maps.orderType != null ">
|
|
|
|
|
|
|
+ <if test="maps.orderType != null and maps.orderType != -1">
|
|
|
and o.order_type =#{maps.orderType}
|
|
and o.order_type =#{maps.orderType}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="maps.orderType != null and maps.orderType == -1">
|
|
|
|
|
+ and o.order_type in (2, 3)
|
|
|
|
|
+ </if>
|
|
|
<if test="maps.payType != null ">
|
|
<if test="maps.payType != null ">
|
|
|
and o.pay_type =#{maps.payType}
|
|
and o.pay_type =#{maps.payType}
|
|
|
</if>
|
|
</if>
|
|
@@ -1793,10 +1810,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</if>
|
|
</if>
|
|
|
<if test="maps.isHealth != null and maps.isHealth != '' ">
|
|
<if test="maps.isHealth != null and maps.isHealth != '' ">
|
|
|
and (o.company_id is null
|
|
and (o.company_id is null
|
|
|
- or o.order_type = 2)
|
|
|
|
|
|
|
+ or o.order_type = 2 or o.order_type = 3)
|
|
|
</if>
|
|
</if>
|
|
|
<if test="maps.notHealth != null ">
|
|
<if test="maps.notHealth != null ">
|
|
|
- and o.company_id is not null
|
|
|
|
|
|
|
+ and o.company_id is not null and o.order_type = 0
|
|
|
</if>
|
|
</if>
|
|
|
<if test="maps.companyUserId != null ">
|
|
<if test="maps.companyUserId != null ">
|
|
|
and o.company_user_id =#{maps.companyUserId}
|
|
and o.company_user_id =#{maps.companyUserId}
|
|
@@ -1813,9 +1830,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="maps.productName != null and maps.productName != '' ">
|
|
<if test="maps.productName != null and maps.productName != '' ">
|
|
|
and fsp.product_name like concat('%', #{maps.productName}, '%')
|
|
and fsp.product_name like concat('%', #{maps.productName}, '%')
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="maps.orderType != null ">
|
|
|
|
|
|
|
+ <if test="maps.orderType != null and maps.orderType != -1">
|
|
|
and o.order_type =#{maps.orderType}
|
|
and o.order_type =#{maps.orderType}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="maps.orderType != null and maps.orderType == -1">
|
|
|
|
|
+ and o.order_type in (2, 3)
|
|
|
|
|
+ </if>
|
|
|
<if test="maps.payType != null ">
|
|
<if test="maps.payType != null ">
|
|
|
and o.pay_type =#{maps.payType}
|
|
and o.pay_type =#{maps.payType}
|
|
|
</if>
|
|
</if>
|
|
@@ -1989,10 +2009,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</if>
|
|
</if>
|
|
|
<if test="maps.isHealth != null and maps.isHealth != '' ">
|
|
<if test="maps.isHealth != null and maps.isHealth != '' ">
|
|
|
and (o.company_id is null
|
|
and (o.company_id is null
|
|
|
- or o.order_type = 2)
|
|
|
|
|
|
|
+ or o.order_type = 2 or o.order_type = 3)
|
|
|
</if>
|
|
</if>
|
|
|
<if test="maps.notHealth != null ">
|
|
<if test="maps.notHealth != null ">
|
|
|
- and o.company_id is not null
|
|
|
|
|
|
|
+ and o.company_id is not null and o.order_type = 0
|
|
|
</if>
|
|
</if>
|
|
|
<if test="maps.companyUserId != null ">
|
|
<if test="maps.companyUserId != null ">
|
|
|
and o.company_user_id =#{maps.companyUserId}
|
|
and o.company_user_id =#{maps.companyUserId}
|
|
@@ -2009,9 +2029,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="maps.productName != null and maps.productName != '' ">
|
|
<if test="maps.productName != null and maps.productName != '' ">
|
|
|
and fsp.product_name like concat('%', #{maps.productName}, '%')
|
|
and fsp.product_name like concat('%', #{maps.productName}, '%')
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="maps.orderType != null ">
|
|
|
|
|
|
|
+ <if test="maps.orderType != null and maps.orderType != -1">
|
|
|
and o.order_type =#{maps.orderType}
|
|
and o.order_type =#{maps.orderType}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="maps.orderType != null and maps.orderType == -1">
|
|
|
|
|
+ and o.order_type in (2, 3)
|
|
|
|
|
+ </if>
|
|
|
<if test="maps.payType != null ">
|
|
<if test="maps.payType != null ">
|
|
|
and o.pay_type =#{maps.payType}
|
|
and o.pay_type =#{maps.payType}
|
|
|
</if>
|
|
</if>
|
|
@@ -2183,9 +2206,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="maps.companyUserNickName != null and maps.companyUserNickName != ''">
|
|
<if test="maps.companyUserNickName != null and maps.companyUserNickName != ''">
|
|
|
AND cu.nick_name LIKE CONCAT('%', #{maps.companyUserNickName}, '%')
|
|
AND cu.nick_name LIKE CONCAT('%', #{maps.companyUserNickName}, '%')
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="maps.orderType != null">
|
|
|
|
|
|
|
+ <if test="maps.orderType != null and maps.orderType != -1">
|
|
|
AND o.order_type = #{maps.orderType}
|
|
AND o.order_type = #{maps.orderType}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="maps.orderType != null and maps.orderType == -1">
|
|
|
|
|
+ AND o.order_type in (2, 3)
|
|
|
|
|
+ </if>
|
|
|
<if test="maps.payType != null">
|
|
<if test="maps.payType != null">
|
|
|
AND o.pay_type = #{maps.payType}
|
|
AND o.pay_type = #{maps.payType}
|
|
|
</if>
|
|
</if>
|