|
@@ -88,10 +88,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="scheduleId" column="schedule_id" />
|
|
|
<result property="orderVisit" column="order_visit" />
|
|
|
<result property="serviceFee" column="service_fee" />
|
|
|
+ <result property="orderMedium" column="order_medium" />
|
|
|
</resultMap>
|
|
|
|
|
|
<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 from fs_store_order
|
|
|
+ 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,order_medium from fs_store_order
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectFsStoreOrderList" parameterType="FsStoreOrder" resultMap="FsStoreOrderResult">
|
|
@@ -242,6 +243,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="deliverySendTime != null">delivery_send_time,</if>
|
|
|
<if test="orderVisit != null">order_visit,</if>
|
|
|
<if test="serviceFee != null">service_fee,</if>
|
|
|
+ <if test="orderMedium != null">order_medium,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="orderCode != null and orderCode != ''">#{orderCode},</if>
|
|
@@ -323,6 +325,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="deliverySendTime != null">#{deliverySendTime},</if>
|
|
|
<if test="orderVisit != null">#{orderVisit},</if>
|
|
|
<if test="serviceFee != null">#{serviceFee},</if>
|
|
|
+ <if test="orderMedium != null">#{orderMedium},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -410,6 +413,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="scheduleId != null">schedule_id = #{scheduleId},</if>
|
|
|
<if test="orderVisit != null">order_visit = #{orderVisit},</if>
|
|
|
<if test="serviceFee != null">service_fee = #{serviceFee},</if>
|
|
|
+ <if test="orderMedium != null">order_medium = #{orderMedium},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|
|
@@ -509,7 +513,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
|
|
|
|
|
|
|
- <select id="selectFsStoreOrderByCount" resultType="int">
|
|
|
+ <select id="selectFsStoreOrderCountByParam" resultType="int">
|
|
|
select count(id) from fs_store_order
|
|
|
<where>
|
|
|
<if test="startTime != null and startTime != ''">AND date_format(create_time,'%y%m%d') >= date_format(#{startTime},'%y%m%d')</if>
|