| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 | <?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE mapperPUBLIC "-//mybatis.org//DTD Mapper 3.0//EN""http://mybatis.org/dtd/mybatis-3-mapper.dtd"><mapper namespace="com.fs.live.mapper.LiveOrderDfMapper">    <resultMap type="LiveOrderDf" id="LiveOrderDfResult">        <result property="orderId"    column="order_id"    />        <result property="orderCode"    column="order_code"    />        <result property="appKey"    column="app_key"    />        <result property="appSecret"    column="app_secret"    />        <result property="loginAccount"    column="login_account"    />        <result property="monthlyCard"    column="monthly_card"    />        <result property="expressProductCode"    column="express_product_code"    />        <result property="totalPrice"    column="total_price"    />        <result property="platformPrice"    column="platform_price"    />        <result property="status"    column="status"    />        <result property="createTime"    column="create_time"    />        <result property="updateTime"    column="update_time"    />        <result property="failMsg"    column="fail_msg"    />        <result property="parcelQuantity"    column="parcel_quantity"    />    </resultMap>    <sql id="selectLiveOrderDfVo">        select order_id, order_code, app_key, app_secret, login_account, monthly_card, express_product_code,total_price,               platform_price, status, create_time, update_time,fail_msg ,parcel_quantity from live_order_df    </sql>    <select id="selectLiveOrderDfList" parameterType="LiveOrderDf" resultMap="LiveOrderDfResult">        <include refid="selectLiveOrderDfVo"/>        <where>            <if test="orderCode != null  and orderCode != ''"> and order_code = #{orderCode}</if>            <if test="appKey != null  and appKey != ''"> and app_key = #{appKey}</if>            <if test="appSecret != null  and appSecret != ''"> and app_secret = #{appSecret}</if>            <if test="loginAccount != null  and loginAccount != ''"> and login_account = #{loginAccount}</if>            <if test="monthlyCard != null  and monthlyCard != ''"> and monthly_card = #{monthlyCard}</if>            <if test="expressProductCode != null  and expressProductCode != ''"> and express_product_code = #{expressProductCode}</if>            <if test="totalPrice != null "> and total_price = #{totalPrice}</if>            <if test="platformPrice != null "> and platform_price = #{platformPrice}</if>            <if test="status != null "> and status = #{status}</if>            <if test="failMsg != null and failMsg != ''"> and fail_msg like concat(#{failMsg},'%')</if>            <if test="parcelQuantity != null"> and parcel_quantity = #{parcelQuantity}</if>        </where>    </select>    <select id="selectLiveOrderDfByOrderId" parameterType="Long" resultMap="LiveOrderDfResult">        <include refid="selectLiveOrderDfVo"/>        where order_id = #{orderId}    </select>    <insert id="insertLiveOrderDf" parameterType="LiveOrderDf">        insert into live_order_df        <trim prefix="(" suffix=")" suffixOverrides=",">            <if test="orderId != null">order_id,</if>            <if test="orderCode != null and orderCode != ''">order_code,</if>            <if test="appKey != null and appKey != ''">app_key,</if>            <if test="appSecret != null and appSecret != ''">app_secret,</if>            <if test="loginAccount != null and loginAccount != ''">login_account,</if>            <if test="monthlyCard != null and monthlyCard != ''">monthly_card,</if>            <if test="expressProductCode != null and expressProductCode != ''">express_product_code,</if>            <if test="totalPrice != null">total_price,</if>            <if test="platformPrice != null">platform_price,</if>            <if test="status != null">status,</if>            <if test="createTime != null">create_time,</if>            <if test="updateTime != null">update_time,</if>            <if test="failMsg != null">fail_msg,</if>            <if test="parcelQuantity != null">parcel_quantity,</if>         </trim>        <trim prefix="values (" suffix=")" suffixOverrides=",">            <if test="orderId != null">#{orderId},</if>            <if test="orderCode != null and orderCode != ''">#{orderCode},</if>            <if test="appKey != null and appKey != ''">#{appKey},</if>            <if test="appSecret != null and appSecret != ''">#{appSecret},</if>            <if test="loginAccount != null and loginAccount != ''">#{loginAccount},</if>            <if test="monthlyCard != null and monthlyCard != ''">#{monthlyCard},</if>            <if test="expressProductCode != null and expressProductCode != ''">#{expressProductCode},</if>            <if test="totalPrice != null">#{totalPrice},</if>            <if test="platformPrice != null">#{platformPrice},</if>            <if test="status != null">#{status},</if>            <if test="createTime != null">#{createTime},</if>            <if test="updateTime != null">#{updateTime},</if>            <if test="failMsg != null">#{failMsg},</if>            <if test="parcelQuantity != null">#{parcelQuantity},</if>         </trim>    </insert>    <update id="updateLiveOrderDf" parameterType="LiveOrderDf">        update live_order_df        <trim prefix="SET" suffixOverrides=",">            <if test="orderCode != null and orderCode != ''">order_code = #{orderCode},</if>            <if test="appKey != null and appKey != ''">app_key = #{appKey},</if>            <if test="appSecret != null and appSecret != ''">app_secret = #{appSecret},</if>            <if test="loginAccount != null and loginAccount != ''">login_account = #{loginAccount},</if>            <if test="monthlyCard != null and monthlyCard != ''">monthly_card = #{monthlyCard},</if>            <if test="expressProductCode != null and expressProductCode != ''">express_product_code = #{expressProductCode},</if>            <if test="totalPrice != null">total_price = #{totalPrice},</if>            <if test="platformPrice != null">platform_price = #{platformPrice},</if>            <if test="status != null">status = #{status},</if>            <if test="createTime != null">create_time = #{createTime},</if>            <if test="updateTime != null">update_time = #{updateTime},</if>            <if test="failMsg != null and failMsg != ''">fail_msg = #{failMsg},</if>            <if test="parcelQuantity != null">parcel_quantity = #{parcelQuantity},</if>        </trim>        where order_id = #{orderId}    </update>    <delete id="deleteLiveOrderDfByOrderId" parameterType="Long">        delete from live_order_df where order_id = #{orderId}    </delete>    <delete id="deleteLiveOrderDfByOrderIds" parameterType="String">        delete from live_order_df where order_id in        <foreach item="orderId" collection="array" open="(" separator="," close=")">            #{orderId}        </foreach>    </delete></mapper>
 |