|
|
@@ -0,0 +1,915 @@
|
|
|
+<?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.pine.admin.modules.business.dao.OrderDao">
|
|
|
+
|
|
|
+ <!-- 可根据自己的需求,是否要使用 -->
|
|
|
+ <resultMap type="com.pine.admin.modules.business.entity.Order" id="entityMap">
|
|
|
+ <result property="id" column="id"/>
|
|
|
+ <result property="orderCode" column="order_code"/>
|
|
|
+ <result property="masterOrderCode" column="master_order_code"/>
|
|
|
+ <result property="customerId" column="customer_id"/>
|
|
|
+ <result property="price" column="price"/>
|
|
|
+ <result property="presalePrice" column="presale_price"/>
|
|
|
+ <result property="originalPrice" column="original_price"/>
|
|
|
+ <result property="freightPrice" column="freight_price"/>
|
|
|
+ <result property="modifyPrice" column="modify_price"/>
|
|
|
+ <result property="pointPrice" column="point_price"/>
|
|
|
+ <result property="couponPrice" column="coupon_price"/>
|
|
|
+ <result property="redEnvelopePrice" column="red_envelope_price"/>
|
|
|
+ <result property="concessionalRate" column="concessional_rate"/>
|
|
|
+ <result property="status" column="status"/>
|
|
|
+ <result property="presaleStatus" column="presale_status"/>
|
|
|
+ <result property="evaluationStatus" column="evaluation_status"/>
|
|
|
+ <result property="redEnvelopeCode" column="red_envelope_code"/>
|
|
|
+ <result property="couponNo" column="coupon_no"/>
|
|
|
+ <result property="usePoint" column="use_point"/>
|
|
|
+ <result property="payType" column="pay_type"/>
|
|
|
+ <result property="storeId" column="store_id"/>
|
|
|
+ <result property="cancelReson" column="cancel_reson"/>
|
|
|
+ <result property="predepositPay" column="predeposit_pay"/>
|
|
|
+ <result property="source" column="source"/>
|
|
|
+ <result property="freightTemplateId" column="freight_template_id"/>
|
|
|
+ <result property="waybillCode" column="waybill_code"/>
|
|
|
+ <result property="orderType" column="order_type"/>
|
|
|
+ <result property="createTime" column="create_time"/>
|
|
|
+ <result property="payTime" column="pay_time"/>
|
|
|
+ <result property="deliveryTime" column="delivery_time"/>
|
|
|
+ <result property="receivingTime" column="receiving_time"/>
|
|
|
+ <result property="cancelTime" column="cancel_time"/>
|
|
|
+ <result property="modifyTime" column="modify_time"/>
|
|
|
+ <result property="evaluationTime" column="evaluation_time"/>
|
|
|
+ <result property="presaleTime" column="presale_time"/>
|
|
|
+ <result property="groupHead" column="group_head"/>
|
|
|
+ <result property="groupId" column="group_id"/>
|
|
|
+ <result property="groupMarketingId" column="group_marketing_id"/>
|
|
|
+ <result property="groupSkuId" column="group_sku_id"/>
|
|
|
+ <result property="groupStatus" column="group_status"/>
|
|
|
+ <result property="groupNum" column="group_num"/>
|
|
|
+ <result property="openGroupTime" column="open_group_time"/>
|
|
|
+ <result property="autoHandleStatus" column="auto_handle_status"/>
|
|
|
+ <result property="recommended" column="recommended"/>
|
|
|
+ <result property="crowdfundingId" column="crowdfunding_id"/>
|
|
|
+ <result property="lotteryStatus" column="lottery_status"/>
|
|
|
+ <result property="writeOffCode" column="write_off_code"/>
|
|
|
+ <result property="communityBuyCustomerId" column="community_buy_customer_id"/>
|
|
|
+ <result property="communityBuyId" column="community_buy_id"/>
|
|
|
+ <result property="profit" column="profit"/>
|
|
|
+ <result property="communityName" column="community_name"/>
|
|
|
+ <result property="communityBuyName" column="community_buy_name"/>
|
|
|
+ <result property="dealerId" column="dealer_id"/>
|
|
|
+ <result property="dealerInfo" column="dealer_info"/>
|
|
|
+ <result property="payChannel" column="pay_channel"/>
|
|
|
+ <result property="skuType" column="sku_type"/>
|
|
|
+ <result property="jetourSendFlag" column="jetour_send_flag"/>
|
|
|
+ <result property="incomingUrl" column="incoming_url"/>
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <sql id="Base_Column_List">
|
|
|
+ id,
|
|
|
+ order_code,
|
|
|
+ master_order_code,
|
|
|
+ customer_id,
|
|
|
+ price,
|
|
|
+ presale_price,
|
|
|
+ original_price,
|
|
|
+ freight_price,
|
|
|
+ modify_price,
|
|
|
+ point_price,
|
|
|
+ coupon_price,
|
|
|
+ red_envelope_price,
|
|
|
+ concessional_rate,
|
|
|
+ status,
|
|
|
+ presale_status,
|
|
|
+ evaluation_status,
|
|
|
+ red_envelope_code,
|
|
|
+ coupon_no,
|
|
|
+ use_point,
|
|
|
+ pay_type,
|
|
|
+ store_id,
|
|
|
+ cancel_reson,
|
|
|
+ predeposit_pay,
|
|
|
+ source,
|
|
|
+ freight_template_id,
|
|
|
+ waybill_code,
|
|
|
+ order_type,
|
|
|
+ create_time,
|
|
|
+ pay_time,
|
|
|
+ delivery_time,
|
|
|
+ receiving_time,
|
|
|
+ cancel_time,
|
|
|
+ modify_time,
|
|
|
+ evaluation_time,
|
|
|
+ presale_time,
|
|
|
+ group_head,
|
|
|
+ group_id,
|
|
|
+ group_marketing_id,
|
|
|
+ group_sku_id,
|
|
|
+ group_status,
|
|
|
+ group_num,
|
|
|
+ open_group_time,
|
|
|
+ auto_handle_status,
|
|
|
+ recommended,
|
|
|
+ crowdfunding_id,
|
|
|
+ lottery_status,
|
|
|
+ write_off_code,
|
|
|
+ community_buy_customer_id,
|
|
|
+ community_buy_id,
|
|
|
+ profit,
|
|
|
+ community_name,
|
|
|
+ community_buy_name,
|
|
|
+ bill_no,
|
|
|
+ dealer_id,
|
|
|
+ dealer_info,
|
|
|
+ pay_channel,
|
|
|
+ sku_type,
|
|
|
+ jetour_send_flag,
|
|
|
+ incoming_url </sql>
|
|
|
+ <!-- 根据Id查询-->
|
|
|
+ <select id="selectByPrimaryKey" resultMap="entityMap" parameterType="java.lang.Integer">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List"/>
|
|
|
+ from ls_order
|
|
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <!-- 根据Id删除-->
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
|
+ delete from ls_order
|
|
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <!-- 插入数据-->
|
|
|
+ <insert id="insertSelective" parameterType="com.pine.admin.modules.business.entity.Order"
|
|
|
+ useGeneratedKeys="true" keyProperty="id">
|
|
|
+ insert into ls_order
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">id,</if>
|
|
|
+ <if test="orderCode != null">order_code,</if>
|
|
|
+ <if test="masterOrderCode != null">master_order_code,</if>
|
|
|
+ <if test="customerId != null">customer_id,</if>
|
|
|
+ <if test="price != null">price,</if>
|
|
|
+ <if test="presalePrice != null">presale_price,</if>
|
|
|
+ <if test="originalPrice != null">original_price,</if>
|
|
|
+ <if test="freightPrice != null">freight_price,</if>
|
|
|
+ <if test="modifyPrice != null">modify_price,</if>
|
|
|
+ <if test="pointPrice != null">point_price,</if>
|
|
|
+ <if test="couponPrice != null">coupon_price,</if>
|
|
|
+ <if test="redEnvelopePrice != null">red_envelope_price,</if>
|
|
|
+ <if test="concessionalRate != null">concessional_rate,</if>
|
|
|
+ <if test="status != null">status,</if>
|
|
|
+ <if test="presaleStatus != null">presale_status,</if>
|
|
|
+ <if test="evaluationStatus != null">evaluation_status,</if>
|
|
|
+ <if test="redEnvelopeCode != null">red_envelope_code,</if>
|
|
|
+ <if test="couponNo != null">coupon_no,</if>
|
|
|
+ <if test="usePoint != null">use_point,</if>
|
|
|
+ <if test="payType != null">pay_type,</if>
|
|
|
+ <if test="storeId != null">store_id,</if>
|
|
|
+ <if test="cancelReson != null">cancel_reson,</if>
|
|
|
+ <if test="predepositPay != null">predeposit_pay,</if>
|
|
|
+ <if test="source != null">source,</if>
|
|
|
+ <if test="freightTemplateId != null">freight_template_id,</if>
|
|
|
+ <if test="waybillCode != null">waybill_code,</if>
|
|
|
+ <if test="orderType != null">order_type,</if>
|
|
|
+ <if test="createTime != null">create_time,</if>
|
|
|
+ <if test="payTime != null">pay_time,</if>
|
|
|
+ <if test="deliveryTime != null">delivery_time,</if>
|
|
|
+ <if test="receivingTime != null">receiving_time,</if>
|
|
|
+ <if test="cancelTime != null">cancel_time,</if>
|
|
|
+ <if test="modifyTime != null">modify_time,</if>
|
|
|
+ <if test="evaluationTime != null">evaluation_time,</if>
|
|
|
+ <if test="presaleTime != null">presale_time,</if>
|
|
|
+ <if test="groupHead != null">group_head,</if>
|
|
|
+ <if test="groupId != null">group_id,</if>
|
|
|
+ <if test="groupMarketingId != null">group_marketing_id,</if>
|
|
|
+ <if test="groupSkuId != null">group_sku_id,</if>
|
|
|
+ <if test="groupStatus != null">group_status,</if>
|
|
|
+ <if test="groupNum != null">group_num,</if>
|
|
|
+ <if test="openGroupTime != null">open_group_time,</if>
|
|
|
+ <if test="autoHandleStatus != null">auto_handle_status,</if>
|
|
|
+ <if test="recommended != null">recommended,</if>
|
|
|
+ <if test="crowdfundingId != null">crowdfunding_id,</if>
|
|
|
+ <if test="lotteryStatus != null">lottery_status,</if>
|
|
|
+ <if test="writeOffCode != null">write_off_code,</if>
|
|
|
+ <if test="communityBuyCustomerId != null">community_buy_customer_id,</if>
|
|
|
+ <if test="communityBuyId != null">community_buy_id,</if>
|
|
|
+ <if test="profit != null">profit,</if>
|
|
|
+ <if test="communityName != null">community_name,</if>
|
|
|
+ <if test="communityBuyName != null">community_buy_name,</if>
|
|
|
+ <if test="billNo != null">bill_no,</if>
|
|
|
+ <if test="dealerId != null">dealer_id,</if>
|
|
|
+ <if test="dealerInfo != null">dealer_info,</if>
|
|
|
+ <if test="payChannel != null">pay_channel,</if>
|
|
|
+ <if test="skuType != null">sku_type,</if>
|
|
|
+ <if test="jetourSendFlag != null">jetour_send_flag,</if>
|
|
|
+ <if test="incomingUrl != null">incoming_url,</if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">#{id},</if>
|
|
|
+ <if test="orderCode != null">#{orderCode},</if>
|
|
|
+ <if test="masterOrderCode != null">#{masterOrderCode},</if>
|
|
|
+ <if test="customerId != null">#{customerId},</if>
|
|
|
+ <if test="price != null">#{price},</if>
|
|
|
+ <if test="presalePrice != null">#{presalePrice},</if>
|
|
|
+ <if test="originalPrice != null">#{originalPrice},</if>
|
|
|
+ <if test="freightPrice != null">#{freightPrice},</if>
|
|
|
+ <if test="modifyPrice != null">#{modifyPrice},</if>
|
|
|
+ <if test="pointPrice != null">#{pointPrice},</if>
|
|
|
+ <if test="couponPrice != null">#{couponPrice},</if>
|
|
|
+ <if test="redEnvelopePrice != null">#{redEnvelopePrice},</if>
|
|
|
+ <if test="concessionalRate != null">#{concessionalRate},</if>
|
|
|
+ <if test="status != null">#{status},</if>
|
|
|
+ <if test="presaleStatus != null">#{presaleStatus},</if>
|
|
|
+ <if test="evaluationStatus != null">#{evaluationStatus},</if>
|
|
|
+ <if test="redEnvelopeCode != null">#{redEnvelopeCode},</if>
|
|
|
+ <if test="couponNo != null">#{couponNo},</if>
|
|
|
+ <if test="usePoint != null">#{usePoint},</if>
|
|
|
+ <if test="payType != null">#{payType},</if>
|
|
|
+ <if test="storeId != null">#{storeId},</if>
|
|
|
+ <if test="cancelReson != null">#{cancelReson},</if>
|
|
|
+ <if test="predepositPay != null">#{predepositPay},</if>
|
|
|
+ <if test="source != null">#{source},</if>
|
|
|
+ <if test="freightTemplateId != null">#{freightTemplateId},</if>
|
|
|
+ <if test="waybillCode != null">#{waybillCode},</if>
|
|
|
+ <if test="orderType != null">#{orderType},</if>
|
|
|
+ <if test="createTime != null">#{createTime},</if>
|
|
|
+ <if test="payTime != null">#{payTime},</if>
|
|
|
+ <if test="deliveryTime != null">#{deliveryTime},</if>
|
|
|
+ <if test="receivingTime != null">#{receivingTime},</if>
|
|
|
+ <if test="cancelTime != null">#{cancelTime},</if>
|
|
|
+ <if test="modifyTime != null">#{modifyTime},</if>
|
|
|
+ <if test="evaluationTime != null">#{evaluationTime},</if>
|
|
|
+ <if test="presaleTime != null">#{presaleTime},</if>
|
|
|
+ <if test="groupHead != null">#{groupHead},</if>
|
|
|
+ <if test="groupId != null">#{groupId},</if>
|
|
|
+ <if test="groupMarketingId != null">#{groupMarketingId},</if>
|
|
|
+ <if test="groupSkuId != null">#{groupSkuId},</if>
|
|
|
+ <if test="groupStatus != null">#{groupStatus},</if>
|
|
|
+ <if test="groupNum != null">#{groupNum},</if>
|
|
|
+ <if test="openGroupTime != null">#{openGroupTime},</if>
|
|
|
+ <if test="autoHandleStatus != null">#{autoHandleStatus},</if>
|
|
|
+ <if test="recommended != null">#{recommended},</if>
|
|
|
+ <if test="crowdfundingId != null">#{crowdfundingId},</if>
|
|
|
+ <if test="lotteryStatus != null">#{lotteryStatus},</if>
|
|
|
+ <if test="writeOffCode != null">#{writeOffCode},</if>
|
|
|
+ <if test="communityBuyCustomerId != null">#{communityBuyCustomerId},</if>
|
|
|
+ <if test="communityBuyId != null">#{communityBuyId},</if>
|
|
|
+ <if test="profit != null">#{profit},</if>
|
|
|
+ <if test="communityName != null">#{communityName},</if>
|
|
|
+ <if test="communityBuyName != null">#{communityBuyName},</if>
|
|
|
+ <if test="billNo != null">#{billNo},</if>
|
|
|
+ <if test="dealerId != null">#{dealerId},</if>
|
|
|
+ <if test="dealerInfo != null">#{dealerInfo},</if>
|
|
|
+ <if test="payChannel != null">#{payChannel},</if>
|
|
|
+ <if test="skuType != null">#{skuType},</if>
|
|
|
+ <if test="jetourSendFlag != null">#{jetourSendFlag},</if>
|
|
|
+ <if test="incomingUrl != null">#{incomingUrl},</if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <!-- 更新数据-->
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.pine.admin.modules.business.entity.Order">
|
|
|
+ update ls_order
|
|
|
+ <set>
|
|
|
+ <if test="orderCode != null">order_code = #{orderCode},</if>
|
|
|
+ <if test="masterOrderCode != null">master_order_code = #{masterOrderCode},</if>
|
|
|
+ <if test="customerId != null">customer_id = #{customerId},</if>
|
|
|
+ <if test="price != null">price = #{price},</if>
|
|
|
+ <if test="presalePrice != null">presale_price = #{presalePrice},</if>
|
|
|
+ <if test="originalPrice != null">original_price = #{originalPrice},</if>
|
|
|
+ <if test="freightPrice != null">freight_price = #{freightPrice},</if>
|
|
|
+ <if test="modifyPrice != null">modify_price = #{modifyPrice},</if>
|
|
|
+ <if test="pointPrice != null">point_price = #{pointPrice},</if>
|
|
|
+ <if test="couponPrice != null">coupon_price = #{couponPrice},</if>
|
|
|
+ <if test="redEnvelopePrice != null">red_envelope_price = #{redEnvelopePrice},</if>
|
|
|
+ <if test="concessionalRate != null">concessional_rate = #{concessionalRate},</if>
|
|
|
+ <if test="status != null">status = #{status},</if>
|
|
|
+ <if test="presaleStatus != null">presale_status = #{presaleStatus},</if>
|
|
|
+ <if test="evaluationStatus != null">evaluation_status = #{evaluationStatus},</if>
|
|
|
+ <if test="redEnvelopeCode != null">red_envelope_code = #{redEnvelopeCode},</if>
|
|
|
+ <if test="couponNo != null">coupon_no = #{couponNo},</if>
|
|
|
+ <if test="usePoint != null">use_point = #{usePoint},</if>
|
|
|
+ <if test="payType != null">pay_type = #{payType},</if>
|
|
|
+ <if test="storeId != null">store_id = #{storeId},</if>
|
|
|
+ <if test="cancelReson != null">cancel_reson = #{cancelReson},</if>
|
|
|
+ <if test="predepositPay != null">predeposit_pay = #{predepositPay},</if>
|
|
|
+ <if test="source != null">source = #{source},</if>
|
|
|
+ <if test="freightTemplateId != null">freight_template_id = #{freightTemplateId},</if>
|
|
|
+ <if test="waybillCode != null">waybill_code = #{waybillCode},</if>
|
|
|
+ <if test="orderType != null">order_type = #{orderType},</if>
|
|
|
+ <if test="createTime != null">create_time = #{createTime},</if>
|
|
|
+ <if test="payTime != null">pay_time = #{payTime},</if>
|
|
|
+ <if test="deliveryTime != null">delivery_time = #{deliveryTime},</if>
|
|
|
+ <if test="receivingTime != null">receiving_time = #{receivingTime},</if>
|
|
|
+ <if test="cancelTime != null">cancel_time = #{cancelTime},</if>
|
|
|
+ <if test="modifyTime != null">modify_time = #{modifyTime},</if>
|
|
|
+ <if test="evaluationTime != null">evaluation_time = #{evaluationTime},</if>
|
|
|
+ <if test="presaleTime != null">presale_time = #{presaleTime},</if>
|
|
|
+ <if test="groupHead != null">group_head = #{groupHead},</if>
|
|
|
+ <if test="groupId != null">group_id = #{groupId},</if>
|
|
|
+ <if test="groupMarketingId != null">group_marketing_id = #{groupMarketingId},</if>
|
|
|
+ <if test="groupSkuId != null">group_sku_id = #{groupSkuId},</if>
|
|
|
+ <if test="groupStatus != null">group_status = #{groupStatus},</if>
|
|
|
+ <if test="groupNum != null">group_num = #{groupNum},</if>
|
|
|
+ <if test="openGroupTime != null">open_group_time = #{openGroupTime},</if>
|
|
|
+ <if test="autoHandleStatus != null">auto_handle_status = #{autoHandleStatus},</if>
|
|
|
+ <if test="recommended != null">recommended = #{recommended},</if>
|
|
|
+ <if test="crowdfundingId != null">crowdfunding_id = #{crowdfundingId},</if>
|
|
|
+ <if test="lotteryStatus != null">lottery_status = #{lotteryStatus},</if>
|
|
|
+ <if test="writeOffCode != null">write_off_code = #{writeOffCode},</if>
|
|
|
+ <if test="communityBuyCustomerId != null">community_buy_customer_id = #{communityBuyCustomerId},</if>
|
|
|
+ <if test="communityBuyId != null">community_buy_id = #{communityBuyId},</if>
|
|
|
+ <if test="profit != null">profit = #{profit},</if>
|
|
|
+ <if test="communityName != null">community_name = #{communityName},</if>
|
|
|
+ <if test="communityBuyName != null">community_buy_name = #{communityBuyName},</if>
|
|
|
+ <if test="billNo != null">bill_no = #{billNo},</if>
|
|
|
+ <if test="dealerId != null">dealer_id = #{dealerId},</if>
|
|
|
+ <if test="dealerInfo != null">dealer_info = #{dealerInfo},</if>
|
|
|
+ <if test="payChannel != null">pay_channel = #{payChannel},</if>
|
|
|
+ <if test="skuType != null">sku_type = #{skuType},</if>
|
|
|
+ <if test="jetourSendFlag != null">jetour_send_flag = #{jetourSendFlag},</if>
|
|
|
+ <if test="incomingUrl != null">incoming_url = #{incomingUrl},</if>
|
|
|
+ </set>
|
|
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <!-- 分页查询-->
|
|
|
+ <select id="queryByPage" parameterType="java.util.Map"
|
|
|
+ resultMap="entityMap">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List"/>
|
|
|
+ from ls_order
|
|
|
+ <where>
|
|
|
+ <if test="record.id != null and !"".equals(record.id)">
|
|
|
+ and id = #{record.id}
|
|
|
+ </if>
|
|
|
+ <if test="record.orderCode != null and !"".equals(record.orderCode)">
|
|
|
+ and order_code = #{record.orderCode}
|
|
|
+ </if>
|
|
|
+ <if test="record.masterOrderCode != null and !"".equals(record.masterOrderCode)">
|
|
|
+ and master_order_code = #{record.masterOrderCode}
|
|
|
+ </if>
|
|
|
+ <if test="record.customerId != null and !"".equals(record.customerId)">
|
|
|
+ and customer_id = #{record.customerId}
|
|
|
+ </if>
|
|
|
+ <if test="record.price != null and !"".equals(record.price)">
|
|
|
+ and price = #{record.price}
|
|
|
+ </if>
|
|
|
+ <if test="record.presalePrice != null and !"".equals(record.presalePrice)">
|
|
|
+ and presale_price = #{record.presalePrice}
|
|
|
+ </if>
|
|
|
+ <if test="record.originalPrice != null and !"".equals(record.originalPrice)">
|
|
|
+ and original_price = #{record.originalPrice}
|
|
|
+ </if>
|
|
|
+ <if test="record.freightPrice != null and !"".equals(record.freightPrice)">
|
|
|
+ and freight_price = #{record.freightPrice}
|
|
|
+ </if>
|
|
|
+ <if test="record.modifyPrice != null and !"".equals(record.modifyPrice)">
|
|
|
+ and modify_price = #{record.modifyPrice}
|
|
|
+ </if>
|
|
|
+ <if test="record.pointPrice != null and !"".equals(record.pointPrice)">
|
|
|
+ and point_price = #{record.pointPrice}
|
|
|
+ </if>
|
|
|
+ <if test="record.couponPrice != null and !"".equals(record.couponPrice)">
|
|
|
+ and coupon_price = #{record.couponPrice}
|
|
|
+ </if>
|
|
|
+ <if test="record.redEnvelopePrice != null and !"".equals(record.redEnvelopePrice)">
|
|
|
+ and red_envelope_price = #{record.redEnvelopePrice}
|
|
|
+ </if>
|
|
|
+ <if test="record.concessionalRate != null and !"".equals(record.concessionalRate)">
|
|
|
+ and concessional_rate = #{record.concessionalRate}
|
|
|
+ </if>
|
|
|
+ <if test="record.status != null and !"".equals(record.status)">
|
|
|
+ and status = #{record.status}
|
|
|
+ </if>
|
|
|
+ <if test="record.presaleStatus != null and !"".equals(record.presaleStatus)">
|
|
|
+ and presale_status = #{record.presaleStatus}
|
|
|
+ </if>
|
|
|
+ <if test="record.evaluationStatus != null and !"".equals(record.evaluationStatus)">
|
|
|
+ and evaluation_status = #{record.evaluationStatus}
|
|
|
+ </if>
|
|
|
+ <if test="record.redEnvelopeCode != null and !"".equals(record.redEnvelopeCode)">
|
|
|
+ and red_envelope_code = #{record.redEnvelopeCode}
|
|
|
+ </if>
|
|
|
+ <if test="record.couponNo != null and !"".equals(record.couponNo)">
|
|
|
+ and coupon_no = #{record.couponNo}
|
|
|
+ </if>
|
|
|
+ <if test="record.usePoint != null and !"".equals(record.usePoint)">
|
|
|
+ and use_point = #{record.usePoint}
|
|
|
+ </if>
|
|
|
+ <if test="record.payType != null and !"".equals(record.payType)">
|
|
|
+ and pay_type = #{record.payType}
|
|
|
+ </if>
|
|
|
+ <if test="record.storeId != null and !"".equals(record.storeId)">
|
|
|
+ and store_id = #{record.storeId}
|
|
|
+ </if>
|
|
|
+ <if test="record.cancelReson != null and !"".equals(record.cancelReson)">
|
|
|
+ and cancel_reson = #{record.cancelReson}
|
|
|
+ </if>
|
|
|
+ <if test="record.predepositPay != null and !"".equals(record.predepositPay)">
|
|
|
+ and predeposit_pay = #{record.predepositPay}
|
|
|
+ </if>
|
|
|
+ <if test="record.source != null and !"".equals(record.source)">
|
|
|
+ and source = #{record.source}
|
|
|
+ </if>
|
|
|
+ <if test="record.freightTemplateId != null and !"".equals(record.freightTemplateId)">
|
|
|
+ and freight_template_id = #{record.freightTemplateId}
|
|
|
+ </if>
|
|
|
+ <if test="record.waybillCode != null and !"".equals(record.waybillCode)">
|
|
|
+ and waybill_code = #{record.waybillCode}
|
|
|
+ </if>
|
|
|
+ <if test="record.orderType != null and !"".equals(record.orderType)">
|
|
|
+ and order_type = #{record.orderType}
|
|
|
+ </if>
|
|
|
+ <if test="record.createTime != null and !"".equals(record.createTime)">
|
|
|
+ and create_time = #{record.createTime}
|
|
|
+ </if>
|
|
|
+ <if test="record.payTime != null and !"".equals(record.payTime)">
|
|
|
+ and pay_time = #{record.payTime}
|
|
|
+ </if>
|
|
|
+ <if test="record.deliveryTime != null and !"".equals(record.deliveryTime)">
|
|
|
+ and delivery_time = #{record.deliveryTime}
|
|
|
+ </if>
|
|
|
+ <if test="record.receivingTime != null and !"".equals(record.receivingTime)">
|
|
|
+ and receiving_time = #{record.receivingTime}
|
|
|
+ </if>
|
|
|
+ <if test="record.cancelTime != null and !"".equals(record.cancelTime)">
|
|
|
+ and cancel_time = #{record.cancelTime}
|
|
|
+ </if>
|
|
|
+ <if test="record.modifyTime != null and !"".equals(record.modifyTime)">
|
|
|
+ and modify_time = #{record.modifyTime}
|
|
|
+ </if>
|
|
|
+ <if test="record.evaluationTime != null and !"".equals(record.evaluationTime)">
|
|
|
+ and evaluation_time = #{record.evaluationTime}
|
|
|
+ </if>
|
|
|
+ <if test="record.presaleTime != null and !"".equals(record.presaleTime)">
|
|
|
+ and presale_time = #{record.presaleTime}
|
|
|
+ </if>
|
|
|
+ <if test="record.groupHead != null and !"".equals(record.groupHead)">
|
|
|
+ and group_head = #{record.groupHead}
|
|
|
+ </if>
|
|
|
+ <if test="record.groupId != null and !"".equals(record.groupId)">
|
|
|
+ and group_id = #{record.groupId}
|
|
|
+ </if>
|
|
|
+ <if test="record.groupMarketingId != null and !"".equals(record.groupMarketingId)">
|
|
|
+ and group_marketing_id = #{record.groupMarketingId}
|
|
|
+ </if>
|
|
|
+ <if test="record.groupSkuId != null and !"".equals(record.groupSkuId)">
|
|
|
+ and group_sku_id = #{record.groupSkuId}
|
|
|
+ </if>
|
|
|
+ <if test="record.groupStatus != null and !"".equals(record.groupStatus)">
|
|
|
+ and group_status = #{record.groupStatus}
|
|
|
+ </if>
|
|
|
+ <if test="record.groupNum != null and !"".equals(record.groupNum)">
|
|
|
+ and group_num = #{record.groupNum}
|
|
|
+ </if>
|
|
|
+ <if test="record.openGroupTime != null and !"".equals(record.openGroupTime)">
|
|
|
+ and open_group_time = #{record.openGroupTime}
|
|
|
+ </if>
|
|
|
+ <if test="record.autoHandleStatus != null and !"".equals(record.autoHandleStatus)">
|
|
|
+ and auto_handle_status = #{record.autoHandleStatus}
|
|
|
+ </if>
|
|
|
+ <if test="record.recommended != null and !"".equals(record.recommended)">
|
|
|
+ and recommended = #{record.recommended}
|
|
|
+ </if>
|
|
|
+ <if test="record.crowdfundingId != null and !"".equals(record.crowdfundingId)">
|
|
|
+ and crowdfunding_id = #{record.crowdfundingId}
|
|
|
+ </if>
|
|
|
+ <if test="record.lotteryStatus != null and !"".equals(record.lotteryStatus)">
|
|
|
+ and lottery_status = #{record.lotteryStatus}
|
|
|
+ </if>
|
|
|
+ <if test="record.writeOffCode != null and !"".equals(record.writeOffCode)">
|
|
|
+ and write_off_code = #{record.writeOffCode}
|
|
|
+ </if>
|
|
|
+ <if test="record.communityBuyCustomerId != null and !"".equals(record.communityBuyCustomerId)">
|
|
|
+ and community_buy_customer_id = #{record.communityBuyCustomerId}
|
|
|
+ </if>
|
|
|
+ <if test="record.communityBuyId != null and !"".equals(record.communityBuyId)">
|
|
|
+ and community_buy_id = #{record.communityBuyId}
|
|
|
+ </if>
|
|
|
+ <if test="record.profit != null and !"".equals(record.profit)">
|
|
|
+ and profit = #{record.profit}
|
|
|
+ </if>
|
|
|
+ <if test="record.communityName != null and !"".equals(record.communityName)">
|
|
|
+ and community_name = #{record.communityName}
|
|
|
+ </if>
|
|
|
+ <if test="record.communityBuyName != null and !"".equals(record.communityBuyName)">
|
|
|
+ and community_buy_name = #{record.communityBuyName}
|
|
|
+ </if>
|
|
|
+ <if test="record.billNo != null and !"".equals(record.billNo)">
|
|
|
+ and bill_no = #{record.billNo}
|
|
|
+ </if>
|
|
|
+ <if test="record.dealerId != null and !"".equals(record.dealerId)">
|
|
|
+ and dealer_id = #{record.dealerId}
|
|
|
+ </if>
|
|
|
+ <if test="record.dealerInfo != null and !"".equals(record.dealerInfo)">
|
|
|
+ and dealer_info = #{record.dealerInfo}
|
|
|
+ </if>
|
|
|
+ <if test="record.payChannel != null and !"".equals(record.payChannel)">
|
|
|
+ and pay_channel = #{record.payChannel}
|
|
|
+ </if>
|
|
|
+ <if test="record.skuType != null and !"".equals(record.skuType)">
|
|
|
+ and sku_type = #{record.skuType}
|
|
|
+ </if>
|
|
|
+ <if test="record.jetourSendFlag != null and !"".equals(record.jetourSendFlag)">
|
|
|
+ and jetour_send_flag = #{record.jetourSendFlag}
|
|
|
+ </if>
|
|
|
+ <if test="record.incomingUrl != null and !"".equals(record.incomingUrl)">
|
|
|
+ and incoming_url = #{record.incomingUrl}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ order by id desc
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <!-- 全部查询 -->
|
|
|
+ <select id="queryAll" parameterType="java.util.Map"
|
|
|
+ resultMap="entityMap">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List"/>
|
|
|
+ from ls_order
|
|
|
+ <where>
|
|
|
+ <if test="id != null and !"".equals(id)">
|
|
|
+ and id = #{id}
|
|
|
+ </if>
|
|
|
+ <if test="orderCode != null and !"".equals(orderCode)">
|
|
|
+ and order_code = #{orderCode}
|
|
|
+ </if>
|
|
|
+ <if test="masterOrderCode != null and !"".equals(masterOrderCode)">
|
|
|
+ and master_order_code = #{masterOrderCode}
|
|
|
+ </if>
|
|
|
+ <if test="customerId != null and !"".equals(customerId)">
|
|
|
+ and customer_id = #{customerId}
|
|
|
+ </if>
|
|
|
+ <if test="price != null and !"".equals(price)">
|
|
|
+ and price = #{price}
|
|
|
+ </if>
|
|
|
+ <if test="presalePrice != null and !"".equals(presalePrice)">
|
|
|
+ and presale_price = #{presalePrice}
|
|
|
+ </if>
|
|
|
+ <if test="originalPrice != null and !"".equals(originalPrice)">
|
|
|
+ and original_price = #{originalPrice}
|
|
|
+ </if>
|
|
|
+ <if test="freightPrice != null and !"".equals(freightPrice)">
|
|
|
+ and freight_price = #{freightPrice}
|
|
|
+ </if>
|
|
|
+ <if test="modifyPrice != null and !"".equals(modifyPrice)">
|
|
|
+ and modify_price = #{modifyPrice}
|
|
|
+ </if>
|
|
|
+ <if test="pointPrice != null and !"".equals(pointPrice)">
|
|
|
+ and point_price = #{pointPrice}
|
|
|
+ </if>
|
|
|
+ <if test="couponPrice != null and !"".equals(couponPrice)">
|
|
|
+ and coupon_price = #{couponPrice}
|
|
|
+ </if>
|
|
|
+ <if test="redEnvelopePrice != null and !"".equals(redEnvelopePrice)">
|
|
|
+ and red_envelope_price = #{redEnvelopePrice}
|
|
|
+ </if>
|
|
|
+ <if test="concessionalRate != null and !"".equals(concessionalRate)">
|
|
|
+ and concessional_rate = #{concessionalRate}
|
|
|
+ </if>
|
|
|
+ <if test="status != null and !"".equals(status)">
|
|
|
+ and status = #{status}
|
|
|
+ </if>
|
|
|
+ <if test="presaleStatus != null and !"".equals(presaleStatus)">
|
|
|
+ and presale_status = #{presaleStatus}
|
|
|
+ </if>
|
|
|
+ <if test="evaluationStatus != null and !"".equals(evaluationStatus)">
|
|
|
+ and evaluation_status = #{evaluationStatus}
|
|
|
+ </if>
|
|
|
+ <if test="redEnvelopeCode != null and !"".equals(redEnvelopeCode)">
|
|
|
+ and red_envelope_code = #{redEnvelopeCode}
|
|
|
+ </if>
|
|
|
+ <if test="couponNo != null and !"".equals(couponNo)">
|
|
|
+ and coupon_no = #{couponNo}
|
|
|
+ </if>
|
|
|
+ <if test="usePoint != null and !"".equals(usePoint)">
|
|
|
+ and use_point = #{usePoint}
|
|
|
+ </if>
|
|
|
+ <if test="payType != null and !"".equals(payType)">
|
|
|
+ and pay_type = #{payType}
|
|
|
+ </if>
|
|
|
+ <if test="storeId != null and !"".equals(storeId)">
|
|
|
+ and store_id = #{storeId}
|
|
|
+ </if>
|
|
|
+ <if test="cancelReson != null and !"".equals(cancelReson)">
|
|
|
+ and cancel_reson = #{cancelReson}
|
|
|
+ </if>
|
|
|
+ <if test="predepositPay != null and !"".equals(predepositPay)">
|
|
|
+ and predeposit_pay = #{predepositPay}
|
|
|
+ </if>
|
|
|
+ <if test="source != null and !"".equals(source)">
|
|
|
+ and source = #{source}
|
|
|
+ </if>
|
|
|
+ <if test="freightTemplateId != null and !"".equals(freightTemplateId)">
|
|
|
+ and freight_template_id = #{freightTemplateId}
|
|
|
+ </if>
|
|
|
+ <if test="waybillCode != null and !"".equals(waybillCode)">
|
|
|
+ and waybill_code = #{waybillCode}
|
|
|
+ </if>
|
|
|
+ <if test="orderType != null and !"".equals(orderType)">
|
|
|
+ and order_type = #{orderType}
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null and !"".equals(createTime)">
|
|
|
+ and create_time = #{createTime}
|
|
|
+ </if>
|
|
|
+ <if test="payTime != null and !"".equals(payTime)">
|
|
|
+ and pay_time = #{payTime}
|
|
|
+ </if>
|
|
|
+ <if test="deliveryTime != null and !"".equals(deliveryTime)">
|
|
|
+ and delivery_time = #{deliveryTime}
|
|
|
+ </if>
|
|
|
+ <if test="receivingTime != null and !"".equals(receivingTime)">
|
|
|
+ and receiving_time = #{receivingTime}
|
|
|
+ </if>
|
|
|
+ <if test="cancelTime != null and !"".equals(cancelTime)">
|
|
|
+ and cancel_time = #{cancelTime}
|
|
|
+ </if>
|
|
|
+ <if test="modifyTime != null and !"".equals(modifyTime)">
|
|
|
+ and modify_time = #{modifyTime}
|
|
|
+ </if>
|
|
|
+ <if test="evaluationTime != null and !"".equals(evaluationTime)">
|
|
|
+ and evaluation_time = #{evaluationTime}
|
|
|
+ </if>
|
|
|
+ <if test="presaleTime != null and !"".equals(presaleTime)">
|
|
|
+ and presale_time = #{presaleTime}
|
|
|
+ </if>
|
|
|
+ <if test="groupHead != null and !"".equals(groupHead)">
|
|
|
+ and group_head = #{groupHead}
|
|
|
+ </if>
|
|
|
+ <if test="groupId != null and !"".equals(groupId)">
|
|
|
+ and group_id = #{groupId}
|
|
|
+ </if>
|
|
|
+ <if test="groupMarketingId != null and !"".equals(groupMarketingId)">
|
|
|
+ and group_marketing_id = #{groupMarketingId}
|
|
|
+ </if>
|
|
|
+ <if test="groupSkuId != null and !"".equals(groupSkuId)">
|
|
|
+ and group_sku_id = #{groupSkuId}
|
|
|
+ </if>
|
|
|
+ <if test="groupStatus != null and !"".equals(groupStatus)">
|
|
|
+ and group_status = #{groupStatus}
|
|
|
+ </if>
|
|
|
+ <if test="groupNum != null and !"".equals(groupNum)">
|
|
|
+ and group_num = #{groupNum}
|
|
|
+ </if>
|
|
|
+ <if test="openGroupTime != null and !"".equals(openGroupTime)">
|
|
|
+ and open_group_time = #{openGroupTime}
|
|
|
+ </if>
|
|
|
+ <if test="autoHandleStatus != null and !"".equals(autoHandleStatus)">
|
|
|
+ and auto_handle_status = #{autoHandleStatus}
|
|
|
+ </if>
|
|
|
+ <if test="recommended != null and !"".equals(recommended)">
|
|
|
+ and recommended = #{recommended}
|
|
|
+ </if>
|
|
|
+ <if test="crowdfundingId != null and !"".equals(crowdfundingId)">
|
|
|
+ and crowdfunding_id = #{crowdfundingId}
|
|
|
+ </if>
|
|
|
+ <if test="lotteryStatus != null and !"".equals(lotteryStatus)">
|
|
|
+ and lottery_status = #{lotteryStatus}
|
|
|
+ </if>
|
|
|
+ <if test="writeOffCode != null and !"".equals(writeOffCode)">
|
|
|
+ and write_off_code = #{writeOffCode}
|
|
|
+ </if>
|
|
|
+ <if test="communityBuyCustomerId != null and !"".equals(communityBuyCustomerId)">
|
|
|
+ and community_buy_customer_id = #{communityBuyCustomerId}
|
|
|
+ </if>
|
|
|
+ <if test="communityBuyId != null and !"".equals(communityBuyId)">
|
|
|
+ and community_buy_id = #{communityBuyId}
|
|
|
+ </if>
|
|
|
+ <if test="profit != null and !"".equals(profit)">
|
|
|
+ and profit = #{profit}
|
|
|
+ </if>
|
|
|
+ <if test="communityName != null and !"".equals(communityName)">
|
|
|
+ and community_name = #{communityName}
|
|
|
+ </if>
|
|
|
+ <if test="communityBuyName != null and !"".equals(communityBuyName)">
|
|
|
+ and community_buy_name = #{communityBuyName}
|
|
|
+ </if>
|
|
|
+ <if test="billNo != null and !"".equals(billNo)">
|
|
|
+ and bill_no = #{billNo}
|
|
|
+ </if>
|
|
|
+ <if test="dealerId != null and !"".equals(dealerId)">
|
|
|
+ and dealer_id = #{dealerId}
|
|
|
+ </if>
|
|
|
+ <if test="dealerInfo != null and !"".equals(dealerInfo)">
|
|
|
+ and dealer_info = #{dealerInfo}
|
|
|
+ </if>
|
|
|
+ <if test="payChannel != null and !"".equals(payChannel)">
|
|
|
+ and pay_channel = #{payChannel}
|
|
|
+ </if>
|
|
|
+ <if test="skuType != null and !"".equals(skuType)">
|
|
|
+ and sku_type = #{skuType}
|
|
|
+ </if>
|
|
|
+ <if test="jetourSendFlag != null and !"".equals(jetourSendFlag)">
|
|
|
+ and jetour_send_flag = #{jetourSendFlag}
|
|
|
+ </if>
|
|
|
+ <if test="incomingUrl != null and !"".equals(incomingUrl)">
|
|
|
+ and incoming_url = #{incomingUrl}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ order by id desc
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <!-- 根据条件查询一个 -->
|
|
|
+ <select id="queryOne" parameterType="java.util.Map"
|
|
|
+ resultMap="entityMap">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List"/>
|
|
|
+ from ls_order
|
|
|
+ <where>
|
|
|
+ <if test="id != null and !"".equals(id)">
|
|
|
+ and id = #{id}
|
|
|
+ </if>
|
|
|
+ <if test="orderCode != null and !"".equals(orderCode)">
|
|
|
+ and order_code = #{orderCode}
|
|
|
+ </if>
|
|
|
+ <if test="masterOrderCode != null and !"".equals(masterOrderCode)">
|
|
|
+ and master_order_code = #{masterOrderCode}
|
|
|
+ </if>
|
|
|
+ <if test="customerId != null and !"".equals(customerId)">
|
|
|
+ and customer_id = #{customerId}
|
|
|
+ </if>
|
|
|
+ <if test="price != null and !"".equals(price)">
|
|
|
+ and price = #{price}
|
|
|
+ </if>
|
|
|
+ <if test="presalePrice != null and !"".equals(presalePrice)">
|
|
|
+ and presale_price = #{presalePrice}
|
|
|
+ </if>
|
|
|
+ <if test="originalPrice != null and !"".equals(originalPrice)">
|
|
|
+ and original_price = #{originalPrice}
|
|
|
+ </if>
|
|
|
+ <if test="freightPrice != null and !"".equals(freightPrice)">
|
|
|
+ and freight_price = #{freightPrice}
|
|
|
+ </if>
|
|
|
+ <if test="modifyPrice != null and !"".equals(modifyPrice)">
|
|
|
+ and modify_price = #{modifyPrice}
|
|
|
+ </if>
|
|
|
+ <if test="pointPrice != null and !"".equals(pointPrice)">
|
|
|
+ and point_price = #{pointPrice}
|
|
|
+ </if>
|
|
|
+ <if test="couponPrice != null and !"".equals(couponPrice)">
|
|
|
+ and coupon_price = #{couponPrice}
|
|
|
+ </if>
|
|
|
+ <if test="redEnvelopePrice != null and !"".equals(redEnvelopePrice)">
|
|
|
+ and red_envelope_price = #{redEnvelopePrice}
|
|
|
+ </if>
|
|
|
+ <if test="concessionalRate != null and !"".equals(concessionalRate)">
|
|
|
+ and concessional_rate = #{concessionalRate}
|
|
|
+ </if>
|
|
|
+ <if test="status != null and !"".equals(status)">
|
|
|
+ and status = #{status}
|
|
|
+ </if>
|
|
|
+ <if test="presaleStatus != null and !"".equals(presaleStatus)">
|
|
|
+ and presale_status = #{presaleStatus}
|
|
|
+ </if>
|
|
|
+ <if test="evaluationStatus != null and !"".equals(evaluationStatus)">
|
|
|
+ and evaluation_status = #{evaluationStatus}
|
|
|
+ </if>
|
|
|
+ <if test="redEnvelopeCode != null and !"".equals(redEnvelopeCode)">
|
|
|
+ and red_envelope_code = #{redEnvelopeCode}
|
|
|
+ </if>
|
|
|
+ <if test="couponNo != null and !"".equals(couponNo)">
|
|
|
+ and coupon_no = #{couponNo}
|
|
|
+ </if>
|
|
|
+ <if test="usePoint != null and !"".equals(usePoint)">
|
|
|
+ and use_point = #{usePoint}
|
|
|
+ </if>
|
|
|
+ <if test="payType != null and !"".equals(payType)">
|
|
|
+ and pay_type = #{payType}
|
|
|
+ </if>
|
|
|
+ <if test="storeId != null and !"".equals(storeId)">
|
|
|
+ and store_id = #{storeId}
|
|
|
+ </if>
|
|
|
+ <if test="cancelReson != null and !"".equals(cancelReson)">
|
|
|
+ and cancel_reson = #{cancelReson}
|
|
|
+ </if>
|
|
|
+ <if test="predepositPay != null and !"".equals(predepositPay)">
|
|
|
+ and predeposit_pay = #{predepositPay}
|
|
|
+ </if>
|
|
|
+ <if test="source != null and !"".equals(source)">
|
|
|
+ and source = #{source}
|
|
|
+ </if>
|
|
|
+ <if test="freightTemplateId != null and !"".equals(freightTemplateId)">
|
|
|
+ and freight_template_id = #{freightTemplateId}
|
|
|
+ </if>
|
|
|
+ <if test="waybillCode != null and !"".equals(waybillCode)">
|
|
|
+ and waybill_code = #{waybillCode}
|
|
|
+ </if>
|
|
|
+ <if test="orderType != null and !"".equals(orderType)">
|
|
|
+ and order_type = #{orderType}
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null and !"".equals(createTime)">
|
|
|
+ and create_time = #{createTime}
|
|
|
+ </if>
|
|
|
+ <if test="payTime != null and !"".equals(payTime)">
|
|
|
+ and pay_time = #{payTime}
|
|
|
+ </if>
|
|
|
+ <if test="deliveryTime != null and !"".equals(deliveryTime)">
|
|
|
+ and delivery_time = #{deliveryTime}
|
|
|
+ </if>
|
|
|
+ <if test="receivingTime != null and !"".equals(receivingTime)">
|
|
|
+ and receiving_time = #{receivingTime}
|
|
|
+ </if>
|
|
|
+ <if test="cancelTime != null and !"".equals(cancelTime)">
|
|
|
+ and cancel_time = #{cancelTime}
|
|
|
+ </if>
|
|
|
+ <if test="modifyTime != null and !"".equals(modifyTime)">
|
|
|
+ and modify_time = #{modifyTime}
|
|
|
+ </if>
|
|
|
+ <if test="evaluationTime != null and !"".equals(evaluationTime)">
|
|
|
+ and evaluation_time = #{evaluationTime}
|
|
|
+ </if>
|
|
|
+ <if test="presaleTime != null and !"".equals(presaleTime)">
|
|
|
+ and presale_time = #{presaleTime}
|
|
|
+ </if>
|
|
|
+ <if test="groupHead != null and !"".equals(groupHead)">
|
|
|
+ and group_head = #{groupHead}
|
|
|
+ </if>
|
|
|
+ <if test="groupId != null and !"".equals(groupId)">
|
|
|
+ and group_id = #{groupId}
|
|
|
+ </if>
|
|
|
+ <if test="groupMarketingId != null and !"".equals(groupMarketingId)">
|
|
|
+ and group_marketing_id = #{groupMarketingId}
|
|
|
+ </if>
|
|
|
+ <if test="groupSkuId != null and !"".equals(groupSkuId)">
|
|
|
+ and group_sku_id = #{groupSkuId}
|
|
|
+ </if>
|
|
|
+ <if test="groupStatus != null and !"".equals(groupStatus)">
|
|
|
+ and group_status = #{groupStatus}
|
|
|
+ </if>
|
|
|
+ <if test="groupNum != null and !"".equals(groupNum)">
|
|
|
+ and group_num = #{groupNum}
|
|
|
+ </if>
|
|
|
+ <if test="openGroupTime != null and !"".equals(openGroupTime)">
|
|
|
+ and open_group_time = #{openGroupTime}
|
|
|
+ </if>
|
|
|
+ <if test="autoHandleStatus != null and !"".equals(autoHandleStatus)">
|
|
|
+ and auto_handle_status = #{autoHandleStatus}
|
|
|
+ </if>
|
|
|
+ <if test="recommended != null and !"".equals(recommended)">
|
|
|
+ and recommended = #{recommended}
|
|
|
+ </if>
|
|
|
+ <if test="crowdfundingId != null and !"".equals(crowdfundingId)">
|
|
|
+ and crowdfunding_id = #{crowdfundingId}
|
|
|
+ </if>
|
|
|
+ <if test="lotteryStatus != null and !"".equals(lotteryStatus)">
|
|
|
+ and lottery_status = #{lotteryStatus}
|
|
|
+ </if>
|
|
|
+ <if test="writeOffCode != null and !"".equals(writeOffCode)">
|
|
|
+ and write_off_code = #{writeOffCode}
|
|
|
+ </if>
|
|
|
+ <if test="communityBuyCustomerId != null and !"".equals(communityBuyCustomerId)">
|
|
|
+ and community_buy_customer_id = #{communityBuyCustomerId}
|
|
|
+ </if>
|
|
|
+ <if test="communityBuyId != null and !"".equals(communityBuyId)">
|
|
|
+ and community_buy_id = #{communityBuyId}
|
|
|
+ </if>
|
|
|
+ <if test="profit != null and !"".equals(profit)">
|
|
|
+ and profit = #{profit}
|
|
|
+ </if>
|
|
|
+ <if test="communityName != null and !"".equals(communityName)">
|
|
|
+ and community_name = #{communityName}
|
|
|
+ </if>
|
|
|
+ <if test="communityBuyName != null and !"".equals(communityBuyName)">
|
|
|
+ and community_buy_name = #{communityBuyName}
|
|
|
+ </if>
|
|
|
+ <if test="billNo != null and !"".equals(billNo)">
|
|
|
+ and bill_no = #{billNo}
|
|
|
+ </if>
|
|
|
+ <if test="dealerId != null and !"".equals(dealerId)">
|
|
|
+ and dealer_id = #{dealerId}
|
|
|
+ </if>
|
|
|
+ <if test="dealerInfo != null and !"".equals(dealerInfo)">
|
|
|
+ and dealer_info = #{dealerInfo}
|
|
|
+ </if>
|
|
|
+ <if test="payChannel != null and !"".equals(payChannel)">
|
|
|
+ and pay_channel = #{payChannel}
|
|
|
+ </if>
|
|
|
+ <if test="skuType != null and !"".equals(skuType)">
|
|
|
+ and sku_type = #{skuType}
|
|
|
+ </if>
|
|
|
+ <if test="jetourSendFlag != null and !"".equals(jetourSendFlag)">
|
|
|
+ and jetour_send_flag = #{jetourSendFlag}
|
|
|
+ </if>
|
|
|
+ <if test="incomingUrl != null and !"".equals(incomingUrl)">
|
|
|
+ and incoming_url = #{incomingUrl}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ LIMIT 1
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <update id="delete">
|
|
|
+ UPDATE ls_order SET del_flag = 'Y'
|
|
|
+ <where>
|
|
|
+ AND id = #{id}
|
|
|
+ </where>
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <update id="deleteIds" parameterType="java.util.ArrayList">
|
|
|
+ UPDATE ls_order SET del_flag = 'Y'
|
|
|
+ WHERE id IN
|
|
|
+ <foreach item='ids' collection="array" index="index" open="(" separator="," close=")">
|
|
|
+ #{ids}
|
|
|
+ </foreach>
|
|
|
+ </update>
|
|
|
+
|
|
|
+</mapper>
|