|
|
@@ -0,0 +1,150 @@
|
|
|
+<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
+<!DOCTYPE mapper
|
|
|
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
+<mapper namespace="com.fs.admin.mapper.AdminStoreOrderMapper">
|
|
|
+
|
|
|
+ <resultMap type="com.fs.admin.vo.AdminStoreOrderVO" id="AdminStoreOrderVOResult">
|
|
|
+ <id property="id" column="id" />
|
|
|
+ <result property="orderCode" column="order_code" />
|
|
|
+ <result property="extendOrderId" column="extend_order_id" />
|
|
|
+ <result property="payOrderId" column="pay_order_id" />
|
|
|
+ <result property="bankOrderId" column="bank_order_id" />
|
|
|
+ <result property="userId" column="user_id" />
|
|
|
+ <result property="realName" column="real_name" />
|
|
|
+ <result property="userPhone" column="user_phone" />
|
|
|
+ <result property="userAddress" column="user_address" />
|
|
|
+ <result property="cartId" column="cart_id" />
|
|
|
+ <result property="freightPrice" column="freight_price" />
|
|
|
+ <result property="totalNum" column="total_num" />
|
|
|
+ <result property="totalPrice" column="total_price" />
|
|
|
+ <result property="totalPostage" column="total_postage" />
|
|
|
+ <result property="payPrice" column="pay_price" />
|
|
|
+ <result property="payPostage" column="pay_postage" />
|
|
|
+ <result property="payDelivery" column="pay_delivery" />
|
|
|
+ <result property="payMoney" column="pay_money" />
|
|
|
+ <result property="deductionPrice" column="deduction_price" />
|
|
|
+ <result property="couponId" column="coupon_id" />
|
|
|
+ <result property="couponPrice" column="coupon_price" />
|
|
|
+ <result property="paid" column="paid" />
|
|
|
+ <result property="payTime" column="pay_time" />
|
|
|
+ <result property="payType" column="pay_type" />
|
|
|
+ <result property="createTime" column="create_time" />
|
|
|
+ <result property="updateTime" column="update_time" />
|
|
|
+ <result property="status" column="status" />
|
|
|
+ <result property="refundStatus" column="refund_status" />
|
|
|
+ <result property="refundReasonWapImg" column="refund_reason_wap_img" />
|
|
|
+ <result property="refundReasonWapExplain" column="refund_reason_wap_explain"/>
|
|
|
+ <result property="refundReasonTime" column="refund_reason_time" />
|
|
|
+ <result property="refundReasonWap" column="refund_reason_wap" />
|
|
|
+ <result property="refundReason" column="refund_reason" />
|
|
|
+ <result property="refundPrice" column="refund_price" />
|
|
|
+ <result property="deliverySn" column="delivery_sn" />
|
|
|
+ <result property="deliveryName" column="delivery_name" />
|
|
|
+ <result property="deliveryType" column="delivery_type" />
|
|
|
+ <result property="deliveryId" column="delivery_id" />
|
|
|
+ <result property="gainIntegral" column="gain_integral" />
|
|
|
+ <result property="useIntegral" column="use_integral" />
|
|
|
+ <result property="payIntegral" column="pay_integral" />
|
|
|
+ <result property="backIntegral" column="back_integral" />
|
|
|
+ <result property="mark" column="mark" />
|
|
|
+ <result property="isDel" column="is_del" />
|
|
|
+ <result property="remark" column="remark" />
|
|
|
+ <result property="cost" column="cost" />
|
|
|
+ <result property="verifyCode" column="verify_code" />
|
|
|
+ <result property="storeId" column="store_id" />
|
|
|
+ <result property="shippingType" column="shipping_type" />
|
|
|
+ <result property="isChannel" column="is_channel" />
|
|
|
+ <result property="isRemind" column="is_remind" />
|
|
|
+ <result property="isSysDel" column="is_sys_del" />
|
|
|
+ <result property="isPrescribe" column="is_prescribe" />
|
|
|
+ <result property="prescribeId" column="prescribe_id" />
|
|
|
+ <result property="companyId" column="company_id" />
|
|
|
+ <result property="companyUserId" column="company_user_id" />
|
|
|
+ <result property="isPackage" column="is_package" />
|
|
|
+ <result property="packageJson" column="package_json" />
|
|
|
+ <result property="orderType" column="order_type" />
|
|
|
+ <result property="packageId" column="package_id" />
|
|
|
+ <result property="finishTime" column="finish_time" />
|
|
|
+ <result property="deliveryStatus" column="delivery_status" />
|
|
|
+ <result property="deliveryPayStatus" column="delivery_pay_status" />
|
|
|
+ <result property="deliveryTime" column="delivery_time" />
|
|
|
+ <result property="deliveryPayTime" column="delivery_pay_time" />
|
|
|
+ <result property="deliveryPayMoney" column="delivery_pay_money" />
|
|
|
+ <result property="tuiMoney" column="tui_money" />
|
|
|
+ <result property="tuiMoneyStatus" column="tui_money_status" />
|
|
|
+ <result property="deliveryImportTime" column="delivery_import_time" />
|
|
|
+ <result property="tuiUserId" column="tui_user_id" />
|
|
|
+ <result property="tuiUserMoneyStatus" column="tui_user_money_status" />
|
|
|
+ <result property="orderCreateType" column="order_create_type" />
|
|
|
+ <result property="storeHouseCode" column="store_house_code" />
|
|
|
+ <result property="deptId" column="dept_id" />
|
|
|
+ <result property="isEditMoney" column="is_edit_money" />
|
|
|
+ <result property="customerId" column="customer_id" />
|
|
|
+ <result property="isPayRemain" column="is_pay_remain" />
|
|
|
+ <result property="deliverySendTime" column="delivery_send_time" />
|
|
|
+ <result property="certificates" column="certificates" />
|
|
|
+ <result property="uploadTime" column="upload_time" />
|
|
|
+ <result property="itemJson" column="item_json" />
|
|
|
+ <result property="scheduleId" column="schedule_id" />
|
|
|
+ <result property="deliveryPayType" column="delivery_pay_type" />
|
|
|
+ <result property="orderVisit" column="order_visit" />
|
|
|
+ <result property="serviceFee" column="service_fee" />
|
|
|
+ <result property="cycle" column="cycle" />
|
|
|
+ <result property="prescribePrice" column="prescribe_price" />
|
|
|
+ <result property="followDoctorId" column="follow_doctor_id" />
|
|
|
+ <result property="followTime" column="follow_time" />
|
|
|
+ <result property="userCouponId" column="user_coupon_id" />
|
|
|
+ <result property="orderMedium" column="order_medium" />
|
|
|
+ <result property="erpPhone" column="erp_phone" />
|
|
|
+ <result property="isAudit" column="is_audit" />
|
|
|
+ <result property="orderRemark" column="order_remark" />
|
|
|
+ <result property="backendEditProductType" column="backend_edit_product_type"/>
|
|
|
+ <result property="auditTime" column="audit_time" />
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <sql id="selectAdminStoreOrderVo">
|
|
|
+ SELECT 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.cost, 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.is_audit, o.order_remark, o.backend_edit_product_type,
|
|
|
+ o.audit_time
|
|
|
+ FROM fs_store_order_scrm o
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <select id="selectStoreOrderList" resultMap="AdminStoreOrderVOResult">
|
|
|
+ <include refid="selectAdminStoreOrderVo"/>
|
|
|
+ <where>
|
|
|
+ <if test="orderNo != null and orderNo != ''">
|
|
|
+ AND o.order_code LIKE CONCAT('%', #{orderNo}, '%')
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ ORDER BY o.create_time DESC
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectStoreOrderById" resultMap="AdminStoreOrderVOResult">
|
|
|
+ <include refid="selectAdminStoreOrderVo"/>
|
|
|
+ WHERE o.id = #{id}
|
|
|
+ </select>
|
|
|
+
|
|
|
+</mapper>
|