|
|
@@ -0,0 +1,350 @@
|
|
|
+<?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.his.mapper.LifeSaluteOrderMapper">
|
|
|
+
|
|
|
+ <!-- 生命礼赞订单结果映射 -->
|
|
|
+ <resultMap type="LifeSaluteOrder" id="LifeSaluteOrderResult">
|
|
|
+ <result property="id" column="id" />
|
|
|
+ <result property="companyId" column="company_id" />
|
|
|
+ <result property="companyUserId" column="company_user_id" />
|
|
|
+ <result property="orderNo" column="order_no" />
|
|
|
+ <result property="merchantOrderNo" column="merchant_order_no" />
|
|
|
+ <result property="platformOrderNo" column="platform_order_no" />
|
|
|
+ <result property="preWaybillNo" column="pre_waybill_no" />
|
|
|
+ <result property="waybillNo" column="waybill_no" />
|
|
|
+ <result property="deliveryCode" column="delivery_code" />
|
|
|
+ <result property="deliveryStatus" column="delivery_status" />
|
|
|
+ <result property="deliveryType" column="delivery_type" />
|
|
|
+ <result property="deliveryUpdateTime" column="delivery_update_time" />
|
|
|
+ <result property="prescriptionNo" column="prescription_no" />
|
|
|
+ <result property="prescriptionName" column="prescription_name" />
|
|
|
+ <result property="senderName" column="sender_name" />
|
|
|
+ <result property="senderMobile" column="sender_mobile" />
|
|
|
+ <result property="senderTel" column="sender_tel" />
|
|
|
+ <result property="senderCompany" column="sender_company" />
|
|
|
+ <result property="senderProvince" column="sender_province" />
|
|
|
+ <result property="senderCity" column="sender_city" />
|
|
|
+ <result property="senderDistrict" column="sender_district" />
|
|
|
+ <result property="senderAddress" column="sender_address" />
|
|
|
+ <result property="receiverName" column="receiver_name" />
|
|
|
+ <result property="receiverMobile" column="receiver_mobile" />
|
|
|
+ <result property="receiverTel" column="receiver_tel" />
|
|
|
+ <result property="receiverCompany" column="receiver_company" />
|
|
|
+ <result property="receiverProvince" column="receiver_province" />
|
|
|
+ <result property="receiverCity" column="receiver_city" />
|
|
|
+ <result property="receiverDistrict" column="receiver_district" />
|
|
|
+ <result property="receiverAddress" column="receiver_address" />
|
|
|
+ <result property="goodsType" column="goods_type" />
|
|
|
+ <result property="packageCount" column="package_count" />
|
|
|
+ <result property="weight" column="weight" />
|
|
|
+ <result property="length" column="length" />
|
|
|
+ <result property="width" column="width" />
|
|
|
+ <result property="height" column="height" />
|
|
|
+ <result property="temperatureType" column="temperature_type" />
|
|
|
+ <result property="expressProductType" column="express_product_type" />
|
|
|
+ <result property="pickupDate" column="pickup_date" />
|
|
|
+ <result property="pickupTime" column="pickup_time" />
|
|
|
+ <result property="warehouseCode" column="warehouse_code" />
|
|
|
+ <result property="payType" column="pay_type" />
|
|
|
+ <result property="isUploadWaybillFile" column="is_upload_waybill_file" />
|
|
|
+ <result property="isPrintWaybill" column="is_print_waybill" />
|
|
|
+ <result property="insuredAmount" column="insured_amount" />
|
|
|
+ <result property="isSignReturn" column="is_sign_return" />
|
|
|
+ <result property="codAmount" column="cod_amount" />
|
|
|
+ <result property="isJdExpress" column="is_jd_express" />
|
|
|
+ <result property="isFraudCodeCollect" column="is_fraud_code_collect" />
|
|
|
+ <result property="isOpenCheck" column="is_open_check" />
|
|
|
+ <result property="isPackService" column="is_pack_service" />
|
|
|
+ <result property="isExpressWarehouse" column="is_express_warehouse" />
|
|
|
+ <result property="isReturnBox" column="is_return_box" />
|
|
|
+ <result property="isDesignatedSign" column="is_designated_sign" />
|
|
|
+ <result property="designatedSignVerifyCode" column="designated_sign_verify_code" />
|
|
|
+ <result property="isDesignatedSignIdcard" column="is_designated_sign_idcard" />
|
|
|
+ <result property="isPackageService" column="is_package_service" />
|
|
|
+ <result property="salesChannel" column="sales_channel" />
|
|
|
+ <result property="orderAmount" column="order_amount" />
|
|
|
+ <result property="customInfo" column="custom_info" />
|
|
|
+ <result property="orderStatus" column="order_status" />
|
|
|
+ <result property="createTime" column="create_time" />
|
|
|
+ <result property="updateTime" column="update_time" />
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <!-- 生命礼赞订单基础查询列 -->
|
|
|
+ <sql id="selectLifeSaluteOrderVo">
|
|
|
+ select id, company_id, company_user_id, order_no, merchant_order_no, platform_order_no, pre_waybill_no, waybill_no, delivery_code,
|
|
|
+ delivery_status, delivery_type, delivery_update_time,
|
|
|
+ prescription_no, prescription_name,
|
|
|
+ sender_name, sender_mobile, sender_tel, sender_company, sender_province, sender_city, sender_district, sender_address,
|
|
|
+ receiver_name, receiver_mobile, receiver_tel, receiver_company, receiver_province, receiver_city, receiver_district, receiver_address,
|
|
|
+ goods_type, package_count, weight, length, width, height, temperature_type,
|
|
|
+ express_product_type, pickup_date, pickup_time, warehouse_code,
|
|
|
+ pay_type, is_upload_waybill_file, is_print_waybill, insured_amount, is_sign_return, cod_amount,
|
|
|
+ is_jd_express, is_fraud_code_collect, is_open_check, is_pack_service, is_express_warehouse, is_return_box,
|
|
|
+ is_designated_sign, designated_sign_verify_code, is_designated_sign_idcard, is_package_service,
|
|
|
+ sales_channel, order_amount, custom_info, order_status,
|
|
|
+ create_time, update_time
|
|
|
+ from life_salute_order
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <!-- 查询生命礼赞订单列表(支持多条件动态过滤) -->
|
|
|
+ <select id="selectLifeSaluteOrderList" parameterType="LifeSaluteOrder" resultMap="LifeSaluteOrderResult">
|
|
|
+ <include refid="selectLifeSaluteOrderVo"/>
|
|
|
+ <where>
|
|
|
+<!-- <if test="companyId != null"> and company_id = #{companyId}</if>-->
|
|
|
+<!-- <if test="companyUserId != null"> and company_user_id = #{companyUserId}</if>-->
|
|
|
+ <if test="orderNo != null and orderNo != ''"> and order_no = #{orderNo}</if>
|
|
|
+ <if test="merchantOrderNo != null and merchantOrderNo != ''"> and merchant_order_no = #{merchantOrderNo}</if>
|
|
|
+ <if test="platformOrderNo != null and platformOrderNo != ''"> and platform_order_no = #{platformOrderNo}</if>
|
|
|
+ <if test="waybillNo != null and waybillNo != ''"> and waybill_no = #{waybillNo}</if>
|
|
|
+ <if test="deliveryStatus != null"> and delivery_status = #{deliveryStatus}</if>
|
|
|
+ <if test="deliveryType != null and deliveryType != ''"> and delivery_type = #{deliveryType}</if>
|
|
|
+ <if test="prescriptionNo != null and prescriptionNo != ''"> and prescription_no = #{prescriptionNo}</if>
|
|
|
+ <if test="prescriptionName != null and prescriptionName != ''"> and prescription_name like concat('%', #{prescriptionName}, '%')</if>
|
|
|
+ <if test="senderName != null and senderName != ''"> and sender_name =#{senderName} </if>
|
|
|
+ <if test="senderMobile != null and senderMobile != ''"> and sender_mobile = #{senderMobile}</if>
|
|
|
+ <if test="receiverName != null and receiverName != ''"> and receiver_name like concat('%', #{receiverName}, '%')</if>
|
|
|
+ <if test="receiverMobile != null and receiverMobile != ''"> and receiver_mobile = #{receiverMobile}</if>
|
|
|
+ <if test="goodsType != null and goodsType != ''"> and goods_type = #{goodsType}</if>
|
|
|
+ <if test="orderStatus != null"> and order_status = #{orderStatus}</if>
|
|
|
+ <if test="params.createTimeStart != null and params.createTimeStart != ''"> and create_time >= str_to_date(#{params.createTimeStart}, '%Y-%m-%d %H')</if>
|
|
|
+ <if test="params.createTimeEnd != null and params.createTimeEnd != ''"> and create_time < date_add(str_to_date(#{params.createTimeEnd}, '%Y-%m-%d %H'), interval 1 hour)</if>
|
|
|
+ </where>
|
|
|
+ order by create_time desc
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <!-- 根据主键查询生命礼赞订单 -->
|
|
|
+ <select id="selectLifeSaluteOrderById" parameterType="Long" resultMap="LifeSaluteOrderResult">
|
|
|
+ <include refid="selectLifeSaluteOrderVo"/>
|
|
|
+ where id = #{id}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <!-- 根据系统订单号查询生命礼赞订单 -->
|
|
|
+ <select id="selectLifeSaluteOrderByOrderNo" parameterType="String" resultMap="LifeSaluteOrderResult">
|
|
|
+ <include refid="selectLifeSaluteOrderVo"/>
|
|
|
+ where order_no = #{orderNo}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <!-- 根据ID列表批量查询生命礼赞订单 -->
|
|
|
+ <select id="selectLifeSaluteOrderByIds" resultMap="LifeSaluteOrderResult">
|
|
|
+ <include refid="selectLifeSaluteOrderVo"/>
|
|
|
+ where id in
|
|
|
+ <foreach collection="ids" item="id" open="(" separator="," close=")">
|
|
|
+ #{id}
|
|
|
+ </foreach>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <!-- 新增生命礼赞订单(动态插入,自动回填主键) -->
|
|
|
+ <insert id="insertLifeSaluteOrder" parameterType="LifeSaluteOrder" useGeneratedKeys="true" keyProperty="id">
|
|
|
+ insert into life_salute_order
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="companyId != null">company_id,</if>
|
|
|
+ <if test="companyUserId != null">company_user_id,</if>
|
|
|
+ <if test="orderNo != null and orderNo != ''">order_no,</if>
|
|
|
+ <if test="merchantOrderNo != null and merchantOrderNo != ''">merchant_order_no,</if>
|
|
|
+ <if test="platformOrderNo != null and platformOrderNo != ''">platform_order_no,</if>
|
|
|
+ <if test="preWaybillNo != null and preWaybillNo != ''">pre_waybill_no,</if>
|
|
|
+ <if test="waybillNo != null and waybillNo != ''">waybill_no,</if>
|
|
|
+ <if test="deliveryCode != null and deliveryCode != ''">delivery_code,</if>
|
|
|
+ <if test="deliveryStatus != null">delivery_status,</if>
|
|
|
+ <if test="deliveryType != null and deliveryType != ''">delivery_type,</if>
|
|
|
+ <if test="deliveryUpdateTime != null">delivery_update_time,</if>
|
|
|
+ <if test="prescriptionNo != null and prescriptionNo != ''">prescription_no,</if>
|
|
|
+ <if test="prescriptionName != null and prescriptionName != ''">prescription_name,</if>
|
|
|
+ <if test="senderName != null and senderName != ''">sender_name,</if>
|
|
|
+ <if test="senderMobile != null and senderMobile != ''">sender_mobile,</if>
|
|
|
+ <if test="senderTel != null and senderTel != ''">sender_tel,</if>
|
|
|
+ <if test="senderCompany != null and senderCompany != ''">sender_company,</if>
|
|
|
+ <if test="senderProvince != null and senderProvince != ''">sender_province,</if>
|
|
|
+ <if test="senderCity != null and senderCity != ''">sender_city,</if>
|
|
|
+ <if test="senderDistrict != null and senderDistrict != ''">sender_district,</if>
|
|
|
+ <if test="senderAddress != null and senderAddress != ''">sender_address,</if>
|
|
|
+ <if test="receiverName != null and receiverName != ''">receiver_name,</if>
|
|
|
+ <if test="receiverMobile != null and receiverMobile != ''">receiver_mobile,</if>
|
|
|
+ <if test="receiverTel != null and receiverTel != ''">receiver_tel,</if>
|
|
|
+ <if test="receiverCompany != null and receiverCompany != ''">receiver_company,</if>
|
|
|
+ <if test="receiverProvince != null and receiverProvince != ''">receiver_province,</if>
|
|
|
+ <if test="receiverCity != null and receiverCity != ''">receiver_city,</if>
|
|
|
+ <if test="receiverDistrict != null and receiverDistrict != ''">receiver_district,</if>
|
|
|
+ <if test="receiverAddress != null and receiverAddress != ''">receiver_address,</if>
|
|
|
+ <if test="goodsType != null and goodsType != ''">goods_type,</if>
|
|
|
+ <if test="packageCount != null">package_count,</if>
|
|
|
+ <if test="weight != null">weight,</if>
|
|
|
+ <if test="length != null">length,</if>
|
|
|
+ <if test="width != null">width,</if>
|
|
|
+ <if test="height != null">height,</if>
|
|
|
+ <if test="temperatureType != null">temperature_type,</if>
|
|
|
+ <if test="expressProductType != null and expressProductType != ''">express_product_type,</if>
|
|
|
+ <if test="pickupDate != null">pickup_date,</if>
|
|
|
+ <if test="pickupTime != null and pickupTime != ''">pickup_time,</if>
|
|
|
+ <if test="warehouseCode != null and warehouseCode != ''">warehouse_code,</if>
|
|
|
+ <if test="payType != null and payType != ''">pay_type,</if>
|
|
|
+ <if test="isUploadWaybillFile != null">is_upload_waybill_file,</if>
|
|
|
+ <if test="isPrintWaybill != null">is_print_waybill,</if>
|
|
|
+ <if test="insuredAmount != null">insured_amount,</if>
|
|
|
+ <if test="isSignReturn != null">is_sign_return,</if>
|
|
|
+ <if test="codAmount != null">cod_amount,</if>
|
|
|
+ <if test="isJdExpress != null">is_jd_express,</if>
|
|
|
+ <if test="isFraudCodeCollect != null">is_fraud_code_collect,</if>
|
|
|
+ <if test="isOpenCheck != null">is_open_check,</if>
|
|
|
+ <if test="isPackService != null">is_pack_service,</if>
|
|
|
+ <if test="isExpressWarehouse != null">is_express_warehouse,</if>
|
|
|
+ <if test="isReturnBox != null">is_return_box,</if>
|
|
|
+ <if test="isDesignatedSign != null">is_designated_sign,</if>
|
|
|
+ <if test="designatedSignVerifyCode != null and designatedSignVerifyCode != ''">designated_sign_verify_code,</if>
|
|
|
+ <if test="isDesignatedSignIdcard != null and isDesignatedSignIdcard != ''">is_designated_sign_idcard,</if>
|
|
|
+ <if test="isPackageService != null">is_package_service,</if>
|
|
|
+ <if test="salesChannel != null and salesChannel != ''">sales_channel,</if>
|
|
|
+ <if test="orderAmount != null">order_amount,</if>
|
|
|
+ <if test="customInfo != null and customInfo != ''">custom_info,</if>
|
|
|
+ <if test="orderStatus != null">order_status,</if>
|
|
|
+ create_time
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="companyId != null">#{companyId},</if>
|
|
|
+ <if test="companyUserId != null">#{companyUserId},</if>
|
|
|
+ <if test="orderNo != null and orderNo != ''">#{orderNo},</if>
|
|
|
+ <if test="merchantOrderNo != null and merchantOrderNo != ''">#{merchantOrderNo},</if>
|
|
|
+ <if test="platformOrderNo != null and platformOrderNo != ''">#{platformOrderNo},</if>
|
|
|
+ <if test="preWaybillNo != null and preWaybillNo != ''">#{preWaybillNo},</if>
|
|
|
+ <if test="waybillNo != null and waybillNo != ''">#{waybillNo},</if>
|
|
|
+ <if test="deliveryCode != null and deliveryCode != ''">#{deliveryCode},</if>
|
|
|
+ <if test="deliveryStatus != null">#{deliveryStatus},</if>
|
|
|
+ <if test="deliveryType != null and deliveryType != ''">#{deliveryType},</if>
|
|
|
+ <if test="deliveryUpdateTime != null">#{deliveryUpdateTime},</if>
|
|
|
+ <if test="prescriptionNo != null and prescriptionNo != ''">#{prescriptionNo},</if>
|
|
|
+ <if test="prescriptionName != null and prescriptionName != ''">#{prescriptionName},</if>
|
|
|
+ <if test="senderName != null and senderName != ''">#{senderName},</if>
|
|
|
+ <if test="senderMobile != null and senderMobile != ''">#{senderMobile},</if>
|
|
|
+ <if test="senderTel != null and senderTel != ''">#{senderTel},</if>
|
|
|
+ <if test="senderCompany != null and senderCompany != ''">#{senderCompany},</if>
|
|
|
+ <if test="senderProvince != null and senderProvince != ''">#{senderProvince},</if>
|
|
|
+ <if test="senderCity != null and senderCity != ''">#{senderCity},</if>
|
|
|
+ <if test="senderDistrict != null and senderDistrict != ''">#{senderDistrict},</if>
|
|
|
+ <if test="senderAddress != null and senderAddress != ''">#{senderAddress},</if>
|
|
|
+ <if test="receiverName != null and receiverName != ''">#{receiverName},</if>
|
|
|
+ <if test="receiverMobile != null and receiverMobile != ''">#{receiverMobile},</if>
|
|
|
+ <if test="receiverTel != null and receiverTel != ''">#{receiverTel},</if>
|
|
|
+ <if test="receiverCompany != null and receiverCompany != ''">#{receiverCompany},</if>
|
|
|
+ <if test="receiverProvince != null and receiverProvince != ''">#{receiverProvince},</if>
|
|
|
+ <if test="receiverCity != null and receiverCity != ''">#{receiverCity},</if>
|
|
|
+ <if test="receiverDistrict != null and receiverDistrict != ''">#{receiverDistrict},</if>
|
|
|
+ <if test="receiverAddress != null and receiverAddress != ''">#{receiverAddress},</if>
|
|
|
+ <if test="goodsType != null and goodsType != ''">#{goodsType},</if>
|
|
|
+ <if test="packageCount != null">#{packageCount},</if>
|
|
|
+ <if test="weight != null">#{weight},</if>
|
|
|
+ <if test="length != null">#{length},</if>
|
|
|
+ <if test="width != null">#{width},</if>
|
|
|
+ <if test="height != null">#{height},</if>
|
|
|
+ <if test="temperatureType != null">#{temperatureType},</if>
|
|
|
+ <if test="expressProductType != null and expressProductType != ''">#{expressProductType},</if>
|
|
|
+ <if test="pickupDate != null">#{pickupDate},</if>
|
|
|
+ <if test="pickupTime != null and pickupTime != ''">#{pickupTime},</if>
|
|
|
+ <if test="warehouseCode != null and warehouseCode != ''">#{warehouseCode},</if>
|
|
|
+ <if test="payType != null and payType != ''">#{payType},</if>
|
|
|
+ <if test="isUploadWaybillFile != null">#{isUploadWaybillFile},</if>
|
|
|
+ <if test="isPrintWaybill != null">#{isPrintWaybill},</if>
|
|
|
+ <if test="insuredAmount != null">#{insuredAmount},</if>
|
|
|
+ <if test="isSignReturn != null">#{isSignReturn},</if>
|
|
|
+ <if test="codAmount != null">#{codAmount},</if>
|
|
|
+ <if test="isJdExpress != null">#{isJdExpress},</if>
|
|
|
+ <if test="isFraudCodeCollect != null">#{isFraudCodeCollect},</if>
|
|
|
+ <if test="isOpenCheck != null">#{isOpenCheck},</if>
|
|
|
+ <if test="isPackService != null">#{isPackService},</if>
|
|
|
+ <if test="isExpressWarehouse != null">#{isExpressWarehouse},</if>
|
|
|
+ <if test="isReturnBox != null">#{isReturnBox},</if>
|
|
|
+ <if test="isDesignatedSign != null">#{isDesignatedSign},</if>
|
|
|
+ <if test="designatedSignVerifyCode != null and designatedSignVerifyCode != ''">#{designatedSignVerifyCode},</if>
|
|
|
+ <if test="isDesignatedSignIdcard != null and isDesignatedSignIdcard != ''">#{isDesignatedSignIdcard},</if>
|
|
|
+ <if test="isPackageService != null">#{isPackageService},</if>
|
|
|
+ <if test="salesChannel != null and salesChannel != ''">#{salesChannel},</if>
|
|
|
+ <if test="orderAmount != null">#{orderAmount},</if>
|
|
|
+ <if test="customInfo != null and customInfo != ''">#{customInfo},</if>
|
|
|
+ <if test="orderStatus != null">#{orderStatus},</if>
|
|
|
+ sysdate()
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <!-- 修改生命礼赞订单(动态更新非空字段) -->
|
|
|
+ <update id="updateLifeSaluteOrder" parameterType="LifeSaluteOrder">
|
|
|
+ update life_salute_order
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="companyId != null">company_id = #{companyId},</if>
|
|
|
+ <if test="companyUserId != null">company_user_id = #{companyUserId},</if>
|
|
|
+ <if test="orderNo != null and orderNo != ''">order_no = #{orderNo},</if>
|
|
|
+ <if test="merchantOrderNo != null and merchantOrderNo != ''">merchant_order_no = #{merchantOrderNo},</if>
|
|
|
+ <if test="platformOrderNo != null and platformOrderNo != ''">platform_order_no = #{platformOrderNo},</if>
|
|
|
+ <if test="preWaybillNo != null and preWaybillNo != ''">pre_waybill_no = #{preWaybillNo},</if>
|
|
|
+ <if test="waybillNo != null and waybillNo != ''">waybill_no = #{waybillNo},</if>
|
|
|
+ <if test="deliveryCode != null and deliveryCode != ''">delivery_code = #{deliveryCode},</if>
|
|
|
+ <if test="deliveryStatus != null">delivery_status = #{deliveryStatus},</if>
|
|
|
+ <if test="deliveryType != null and deliveryType != ''">delivery_type = #{deliveryType},</if>
|
|
|
+ <if test="deliveryUpdateTime != null">delivery_update_time = #{deliveryUpdateTime},</if>
|
|
|
+ <if test="prescriptionNo != null and prescriptionNo != ''">prescription_no = #{prescriptionNo},</if>
|
|
|
+ <if test="prescriptionName != null and prescriptionName != ''">prescription_name = #{prescriptionName},</if>
|
|
|
+ <if test="senderName != null and senderName != ''">sender_name = #{senderName},</if>
|
|
|
+ <if test="senderMobile != null and senderMobile != ''">sender_mobile = #{senderMobile},</if>
|
|
|
+ <if test="senderTel != null and senderTel != ''">sender_tel = #{senderTel},</if>
|
|
|
+ <if test="senderCompany != null and senderCompany != ''">sender_company = #{senderCompany},</if>
|
|
|
+ <if test="senderProvince != null and senderProvince != ''">sender_province = #{senderProvince},</if>
|
|
|
+ <if test="senderCity != null and senderCity != ''">sender_city = #{senderCity},</if>
|
|
|
+ <if test="senderDistrict != null and senderDistrict != ''">sender_district = #{senderDistrict},</if>
|
|
|
+ <if test="senderAddress != null and senderAddress != ''">sender_address = #{senderAddress},</if>
|
|
|
+ <if test="receiverName != null and receiverName != ''">receiver_name = #{receiverName},</if>
|
|
|
+ <if test="receiverMobile != null and receiverMobile != ''">receiver_mobile = #{receiverMobile},</if>
|
|
|
+ <if test="receiverTel != null and receiverTel != ''">receiver_tel = #{receiverTel},</if>
|
|
|
+ <if test="receiverCompany != null and receiverCompany != ''">receiver_company = #{receiverCompany},</if>
|
|
|
+ <if test="receiverProvince != null and receiverProvince != ''">receiver_province = #{receiverProvince},</if>
|
|
|
+ <if test="receiverCity != null and receiverCity != ''">receiver_city = #{receiverCity},</if>
|
|
|
+ <if test="receiverDistrict != null and receiverDistrict != ''">receiver_district = #{receiverDistrict},</if>
|
|
|
+ <if test="receiverAddress != null and receiverAddress != ''">receiver_address = #{receiverAddress},</if>
|
|
|
+ <if test="goodsType != null and goodsType != ''">goods_type = #{goodsType},</if>
|
|
|
+ <if test="packageCount != null">package_count = #{packageCount},</if>
|
|
|
+ <if test="weight != null">weight = #{weight},</if>
|
|
|
+ <if test="length != null">length = #{length},</if>
|
|
|
+ <if test="width != null">width = #{width},</if>
|
|
|
+ <if test="height != null">height = #{height},</if>
|
|
|
+ <if test="temperatureType != null">temperature_type = #{temperatureType},</if>
|
|
|
+ <if test="expressProductType != null and expressProductType != ''">express_product_type = #{expressProductType},</if>
|
|
|
+ <if test="pickupDate != null">pickup_date = #{pickupDate},</if>
|
|
|
+ <if test="pickupTime != null and pickupTime != ''">pickup_time = #{pickupTime},</if>
|
|
|
+ <if test="warehouseCode != null and warehouseCode != ''">warehouse_code = #{warehouseCode},</if>
|
|
|
+ <if test="payType != null and payType != ''">pay_type = #{payType},</if>
|
|
|
+ <if test="isUploadWaybillFile != null">is_upload_waybill_file = #{isUploadWaybillFile},</if>
|
|
|
+ <if test="isPrintWaybill != null">is_print_waybill = #{isPrintWaybill},</if>
|
|
|
+ <if test="insuredAmount != null">insured_amount = #{insuredAmount},</if>
|
|
|
+ <if test="isSignReturn != null">is_sign_return = #{isSignReturn},</if>
|
|
|
+ <if test="codAmount != null">cod_amount = #{codAmount},</if>
|
|
|
+ <if test="isJdExpress != null">is_jd_express = #{isJdExpress},</if>
|
|
|
+ <if test="isFraudCodeCollect != null">is_fraud_code_collect = #{isFraudCodeCollect},</if>
|
|
|
+ <if test="isOpenCheck != null">is_open_check = #{isOpenCheck},</if>
|
|
|
+ <if test="isPackService != null">is_pack_service = #{isPackService},</if>
|
|
|
+ <if test="isExpressWarehouse != null">is_express_warehouse = #{isExpressWarehouse},</if>
|
|
|
+ <if test="isReturnBox != null">is_return_box = #{isReturnBox},</if>
|
|
|
+ <if test="isDesignatedSign != null">is_designated_sign = #{isDesignatedSign},</if>
|
|
|
+ <if test="designatedSignVerifyCode != null and designatedSignVerifyCode != ''">designated_sign_verify_code = #{designatedSignVerifyCode},</if>
|
|
|
+ <if test="isDesignatedSignIdcard != null and isDesignatedSignIdcard != ''">is_designated_sign_idcard = #{isDesignatedSignIdcard},</if>
|
|
|
+ <if test="isPackageService != null">is_package_service = #{isPackageService},</if>
|
|
|
+ <if test="salesChannel != null and salesChannel != ''">sales_channel = #{salesChannel},</if>
|
|
|
+ <if test="orderAmount != null">order_amount = #{orderAmount},</if>
|
|
|
+ <if test="customInfo != null and customInfo != ''">custom_info = #{customInfo},</if>
|
|
|
+ <if test="orderStatus != null">order_status = #{orderStatus},</if>
|
|
|
+ update_time = sysdate()
|
|
|
+ </trim>
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <!-- 根据主键删除生命礼赞订单 -->
|
|
|
+ <delete id="deleteLifeSaluteOrderById" parameterType="Long">
|
|
|
+ delete from life_salute_order where id = #{id}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <!-- 批量删除生命礼赞订单 -->
|
|
|
+ <delete id="deleteLifeSaluteOrderByIds" parameterType="String">
|
|
|
+ delete from life_salute_order where id in
|
|
|
+ <foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
+ #{id}
|
|
|
+ </foreach>
|
|
|
+ </delete>
|
|
|
+</mapper>
|