390 lines
22 KiB
XML
390 lines
22 KiB
XML
|
<?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.ruoyi.system.mapper.RlOrderMapper">
|
|||
|
|
|||
|
<resultMap type="RlOrderVO" id="RlOrderResult" autoMapping="true"/>
|
|||
|
|
|||
|
<sql id="selectRlOrderVo">
|
|||
|
select order_id, order_no, out_trade_no, user_id, rule_id, device_mac, sn, pay_time, pay_type, paid, type, total_fee, pay_fee, deposit, overdue_fee, dispatch_fee,
|
|||
|
lease_fee, mark, duration, status, create_time, return_time, deposit_deduction, deposit_order_no, deduction_amount, used_sn, change_reason,
|
|||
|
auto_refund_deposit, rental_unit, handling_charge, platform_service_fee, operator_dividend, pay_channel, delivery_method, pickup_time,
|
|||
|
agent_id, store_id, pickup_city, pickup_loc, pickup_lon, pickup_lat, model_id, expiry_time, original_order_no, num, price, explain,
|
|||
|
instructions, out_unit, out_price from rl_order
|
|||
|
</sql>
|
|||
|
|
|||
|
<sql id="selectRlOrderDetail">
|
|||
|
SELECT
|
|||
|
o.order_id,
|
|||
|
o.order_no,
|
|||
|
o.out_trade_no,
|
|||
|
o.user_id,
|
|||
|
o.rule_id,
|
|||
|
o.device_mac,
|
|||
|
o.sn,
|
|||
|
o.pay_time,
|
|||
|
o.pay_type,
|
|||
|
o.paid,
|
|||
|
o.type,
|
|||
|
o.total_fee,
|
|||
|
o.pay_fee,
|
|||
|
o.deposit,
|
|||
|
o.overdue_fee,
|
|||
|
o.dispatch_fee,
|
|||
|
o.lease_fee,
|
|||
|
o.mark,
|
|||
|
o.duration,
|
|||
|
o.status,
|
|||
|
o.create_time,
|
|||
|
o.return_time,
|
|||
|
o.deposit_deduction,
|
|||
|
o.deposit_order_no,
|
|||
|
o.deduction_amount,
|
|||
|
o.used_sn,
|
|||
|
o.change_reason,
|
|||
|
o.auto_refund_deposit,
|
|||
|
o.rental_unit,
|
|||
|
o.handling_charge,
|
|||
|
o.platform_service_fee,
|
|||
|
o.operator_dividend,
|
|||
|
o.pay_channel,
|
|||
|
o.delivery_method,
|
|||
|
o.pickup_time,
|
|||
|
o.agent_id,
|
|||
|
o.store_id,
|
|||
|
o.pickup_city,
|
|||
|
o.pickup_loc,
|
|||
|
o.pickup_lon,
|
|||
|
o.pickup_lat,
|
|||
|
o.expiry_time,
|
|||
|
o.original_order_no,
|
|||
|
o.num,
|
|||
|
o.price,
|
|||
|
o.explain,
|
|||
|
o.instructions,
|
|||
|
o.out_unit,
|
|||
|
o.out_price,
|
|||
|
u.user_name as userName,
|
|||
|
u.real_name as realName,
|
|||
|
s.name as storeName,
|
|||
|
s.address as storeAddress,
|
|||
|
m.model,
|
|||
|
a.name agentName,
|
|||
|
r.rental_unit as rentalUnit,
|
|||
|
CONCAT(
|
|||
|
CASE
|
|||
|
WHEN r.rental_unit = 'hours' THEN '时租'
|
|||
|
WHEN r.rental_unit = 'day' THEN '日租'
|
|||
|
WHEN r.rental_unit = 'week' THEN '周租'
|
|||
|
WHEN r.rental_unit = 'month' THEN '月租'
|
|||
|
WHEN r.rental_unit = 'quarter' THEN '季租'
|
|||
|
WHEN r.rental_unit = 'year' THEN '年租'
|
|||
|
ELSE r.rental_unit
|
|||
|
END,
|
|||
|
'(', r.num, '',
|
|||
|
CASE
|
|||
|
WHEN r.rental_unit = 'hours' THEN '小时'
|
|||
|
WHEN r.rental_unit = 'day' THEN '天'
|
|||
|
WHEN r.rental_unit = 'week' THEN '周'
|
|||
|
WHEN r.rental_unit = 'month' THEN '天'
|
|||
|
WHEN r.rental_unit = 'quarter' THEN '天'
|
|||
|
WHEN r.rental_unit = 'year' THEN '天'
|
|||
|
ELSE ''
|
|||
|
END, ')'
|
|||
|
) AS rentalPeriodText
|
|||
|
FROM
|
|||
|
rl_order o
|
|||
|
left join rl_user u on o.user_id = u.user_id
|
|||
|
left join rl_fee_rule r on o.rule_id = r.rule_id
|
|||
|
left join rl_store s on o.store_id = s.store_id
|
|||
|
left join rl_agent a on o.agent_id = a.agent_id
|
|||
|
left join rl_model m on o.model_id = m.model_id
|
|||
|
</sql>
|
|||
|
|
|||
|
<select id="selectRlOrderList" parameterType="RlOrderQuery" resultMap="RlOrderResult">
|
|||
|
<include refid="selectRlOrderDetail"/>
|
|||
|
<where>
|
|||
|
<if test="orderNo != null and orderNo != ''"> and o.order_no = #{orderNo}</if>
|
|||
|
<if test="outTradeNo != null and outTradeNo != ''"> and o.out_trade_no = #{outTradeNo}</if>
|
|||
|
<if test="userId != null"> and o.user_id = #{userId}</if>
|
|||
|
<if test="ruleId != null"> and o.rule_id = #{ruleId}</if>
|
|||
|
<if test="deviceMac != null and deviceMac != ''"> and o.device_mac = #{deviceMac}</if>
|
|||
|
<if test="sn != null and sn != ''"> and o.sn = #{sn}</if>
|
|||
|
<if test="payTime != null"> and o.pay_time = #{payTime}</if>
|
|||
|
<if test="payType != null and payType != ''"> and o.pay_type = #{payType}</if>
|
|||
|
<if test="paid != null and paid != ''"> and o.paid = #{paid}</if>
|
|||
|
<if test="type != null and type != ''"> and o.type = #{type}</if>
|
|||
|
<if test="totalFee != null"> and o.total_fee = #{totalFee}</if>
|
|||
|
<if test="payFee != null"> and o.pay_fee = #{payFee}</if>
|
|||
|
<if test="deposit != null"> and o.deposit = #{deposit}</if>
|
|||
|
<if test="dispatchFee != null"> and o.dispatch_fee = #{dispatchFee}</if>
|
|||
|
<if test="leaseFee != null"> and o.lease_fee = #{leaseFee}</if>
|
|||
|
<if test="mark != null and mark != ''"> and o.mark = #{mark}</if>
|
|||
|
<if test="duration != null"> and o.duration = #{duration}</if>
|
|||
|
<if test="status != null and status != ''"> and o.status = #{status}</if>
|
|||
|
<if test="returnTime != null"> and o.return_time = #{returnTime}</if>
|
|||
|
<if test="depositDeduction != null and depositDeduction != ''"> and o.deposit_deduction = #{depositDeduction}</if>
|
|||
|
<if test="deductionAmount != null"> and o.deduction_amount = #{deductionAmount}</if>
|
|||
|
<if test="autoRefundDeposit != null"> and o.auto_refund_deposit = #{autoRefundDeposit}</if>
|
|||
|
<if test="rentalUnit != null and rentalUnit != ''"> and o.rental_unit = #{rentalUnit}</if>
|
|||
|
<if test="handlingCharge != null"> and o.handling_charge = #{handlingCharge}</if>
|
|||
|
<if test="platformServiceFee != null"> and o.platform_service_fee = #{platformServiceFee}</if>
|
|||
|
<if test="operatorDividend != null"> and o.operator_dividend = #{operatorDividend}</if>
|
|||
|
<if test="payChannel != null"> and o.pay_channel = #{payChannel}</if>
|
|||
|
<if test="deliveryMethod != null"> and o.delivery_method = #{deliveryMethod}</if>
|
|||
|
<if test="pickupTime != null"> and o.pickup_time = #{pickupTime}</if>
|
|||
|
<if test="agentId != null"> and o.agent_id = #{agentId}</if>
|
|||
|
<if test="storeId != null"> and o.store_id = #{storeId}</if>
|
|||
|
<if test="pickupCity != null and pickupCity != ''"> and o.pickup_city = #{pickupCity}</if>
|
|||
|
<if test="pickupLoc != null and pickupLoc != ''"> and o.pickup_loc = #{pickupLoc}</if>
|
|||
|
<if test="pickupLon != null and pickupLon != ''"> and o.pickup_lon = #{pickupLon}</if>
|
|||
|
<if test="pickupLat != null and pickupLat != ''"> and o.pickup_lat = #{pickupLat}</if>
|
|||
|
<if test="expiryTime != null"> and o.expiry_time = #{expiryTime}</if>
|
|||
|
<if test="originalOrderNo != null and originalOrderNo != ''"> and o.original_order_no = #{originalOrderNo}</if>
|
|||
|
<if test="startTime != null and startTime != ''"><!-- 开始时间检索 -->
|
|||
|
and date_format(create_time,'%Y%m%d') >= date_format(#{startTime},'%Y%m%d')
|
|||
|
</if>
|
|||
|
<if test="endTime != null and endTime != ''">
|
|||
|
and date_format(create_time,'%Y%m%d') <= date_format(#{endTime},'%Y%m%d')
|
|||
|
</if>
|
|||
|
<if test="phone != null and phone != ''"> and u.phonenumber like concat('%', #{phone}, '%')</if>
|
|||
|
</where>
|
|||
|
</select>
|
|||
|
|
|||
|
<select id="selectRlOrderByOrderId" parameterType="Long" resultMap="RlOrderResult">
|
|||
|
<include refid="selectRlOrderDetail"/>
|
|||
|
where o.order_id = #{orderId}
|
|||
|
</select>
|
|||
|
|
|||
|
<select id="selectRlOrderByOrderNo" parameterType="String" resultMap="RlOrderResult">
|
|||
|
<include refid="selectRlOrderDetail"/>
|
|||
|
where o.order_no = #{orderNo}
|
|||
|
</select>
|
|||
|
|
|||
|
<insert id="insertRlOrder" parameterType="RlOrder" useGeneratedKeys="true" keyProperty="orderId">
|
|||
|
insert into rl_order
|
|||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|||
|
<if test="orderNo != null and orderNo != ''">order_no,</if>
|
|||
|
<if test="outTradeNo != null">out_trade_no,</if>
|
|||
|
<if test="userId != null">user_id,</if>
|
|||
|
<if test="ruleId != null">rule_id,</if>
|
|||
|
<if test="deviceMac != null">device_mac,</if>
|
|||
|
<if test="sn != null">sn,</if>
|
|||
|
<if test="payTime != null">pay_time,</if>
|
|||
|
<if test="payType != null">pay_type,</if>
|
|||
|
<if test="paid != null and paid != ''">paid,</if>
|
|||
|
<if test="type != null and type != ''">type,</if>
|
|||
|
<if test="totalFee != null">total_fee,</if>
|
|||
|
<if test="payFee != null">pay_fee,</if>
|
|||
|
<if test="deposit != null">deposit,</if>
|
|||
|
<if test="overdueFee != null">overdue_fee,</if>
|
|||
|
<if test="dispatchFee != null">dispatch_fee,</if>
|
|||
|
<if test="leaseFee != null">lease_fee,</if>
|
|||
|
<if test="mark != null">mark,</if>
|
|||
|
<if test="duration != null">duration,</if>
|
|||
|
<if test="status != null">status,</if>
|
|||
|
<if test="createTime != null">create_time,</if>
|
|||
|
<if test="returnTime != null">return_time,</if>
|
|||
|
<if test="depositDeduction != null">deposit_deduction,</if>
|
|||
|
<if test="depositOrderNo != null">deposit_order_no,</if>
|
|||
|
<if test="deductionAmount != null">deduction_amount,</if>
|
|||
|
<if test="usedSn != null">used_sn,</if>
|
|||
|
<if test="changeReason != null">change_reason,</if>
|
|||
|
<if test="autoRefundDeposit != null">auto_refund_deposit,</if>
|
|||
|
<if test="rentalUnit != null">rental_unit,</if>
|
|||
|
<if test="handlingCharge != null">handling_charge,</if>
|
|||
|
<if test="platformServiceFee != null">platform_service_fee,</if>
|
|||
|
<if test="operatorDividend != null">operator_dividend,</if>
|
|||
|
<if test="payChannel != null">pay_channel,</if>
|
|||
|
<if test="deliveryMethod != null">delivery_method,</if>
|
|||
|
<if test="pickupTime != null">pickup_time,</if>
|
|||
|
<if test="agentId != null">agent_id,</if>
|
|||
|
<if test="storeId != null">store_id,</if>
|
|||
|
<if test="pickupCity != null">pickup_city,</if>
|
|||
|
<if test="pickupLoc != null">pickup_loc,</if>
|
|||
|
<if test="pickupLon != null">pickup_lon,</if>
|
|||
|
<if test="pickupLat != null">pickup_lat,</if>
|
|||
|
<if test="expiryTime != null">expiry_time,</if>
|
|||
|
<if test="originalOrderNo != null">original_order_no,</if>
|
|||
|
<if test="num != null">num,</if>
|
|||
|
<if test="price != null">price,</if>
|
|||
|
<if test="explain != null">explain,</if>
|
|||
|
<if test="instructions != null">instructions,</if>
|
|||
|
<if test="outUnit != null">out_unit,</if>
|
|||
|
<if test="outPrice != null">out_price,</if>
|
|||
|
</trim>
|
|||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|||
|
<if test="orderNo != null and orderNo != ''">#{orderNo},</if>
|
|||
|
<if test="outTradeNo != null">#{outTradeNo},</if>
|
|||
|
<if test="userId != null">#{userId},</if>
|
|||
|
<if test="ruleId != null">#{ruleId},</if>
|
|||
|
<if test="deviceMac != null">#{deviceMac},</if>
|
|||
|
<if test="sn != null">#{sn},</if>
|
|||
|
<if test="payTime != null">#{payTime},</if>
|
|||
|
<if test="payType != null">#{payType},</if>
|
|||
|
<if test="paid != null and paid != ''">#{paid},</if>
|
|||
|
<if test="type != null and type != ''">#{type},</if>
|
|||
|
<if test="totalFee != null">#{totalFee},</if>
|
|||
|
<if test="payFee != null">#{payFee},</if>
|
|||
|
<if test="deposit != null">#{deposit},</if>
|
|||
|
<if test="overdueFee != null">#{overdueFee},</if>
|
|||
|
<if test="dispatchFee != null">#{dispatchFee},</if>
|
|||
|
<if test="leaseFee != null">#{leaseFee},</if>
|
|||
|
<if test="mark != null">#{mark},</if>
|
|||
|
<if test="duration != null">#{duration},</if>
|
|||
|
<if test="status != null">#{status},</if>
|
|||
|
<if test="createTime != null">#{createTime},</if>
|
|||
|
<if test="returnTime != null">#{returnTime},</if>
|
|||
|
<if test="depositDeduction != null">#{depositDeduction},</if>
|
|||
|
<if test="depositOrderNo != null">#{depositOrderNo},</if>
|
|||
|
<if test="deductionAmount != null">#{deductionAmount},</if>
|
|||
|
<if test="usedSn != null">#{usedSn},</if>
|
|||
|
<if test="changeReason != null">#{changeReason},</if>
|
|||
|
<if test="autoRefundDeposit != null">#{autoRefundDeposit},</if>
|
|||
|
<if test="rentalUnit != null">#{rentalUnit},</if>
|
|||
|
<if test="handlingCharge != null">#{handlingCharge},</if>
|
|||
|
<if test="platformServiceFee != null">#{platformServiceFee},</if>
|
|||
|
<if test="operatorDividend != null">#{operatorDividend},</if>
|
|||
|
<if test="payChannel != null">#{payChannel},</if>
|
|||
|
<if test="deliveryMethod != null">#{deliveryMethod},</if>
|
|||
|
<if test="pickupTime != null">#{pickupTime},</if>
|
|||
|
<if test="agentId != null">#{agentId},</if>
|
|||
|
<if test="storeId != null">#{storeId},</if>
|
|||
|
<if test="pickupCity != null">#{pickupCity},</if>
|
|||
|
<if test="pickupLoc != null">#{pickupLoc},</if>
|
|||
|
<if test="pickupLon != null">#{pickupLon},</if>
|
|||
|
<if test="pickupLat != null">#{pickupLat},</if>
|
|||
|
<if test="expiryTime != null">#{expiryTime},</if>
|
|||
|
<if test="originalOrderNo != null">#{originalOrderNo},</if>
|
|||
|
<if test="num != null">#{num},</if>
|
|||
|
<if test="price != null">#{price},</if>
|
|||
|
<if test="explain != null">#{explain},</if>
|
|||
|
<if test="instructions != null">#{instructions},</if>
|
|||
|
<if test="outUnit != null">#{outUnit},</if>
|
|||
|
<if test="outPrice != null">#{outPrice},</if>
|
|||
|
</trim>
|
|||
|
</insert>
|
|||
|
|
|||
|
<update id="updateRlOrder" parameterType="RlOrder">
|
|||
|
update rl_order
|
|||
|
<trim prefix="SET" suffixOverrides=",">
|
|||
|
<if test="orderNo != null and orderNo != ''">order_no = #{orderNo},</if>
|
|||
|
<if test="outTradeNo != null">out_trade_no = #{outTradeNo},</if>
|
|||
|
<if test="userId != null">user_id = #{userId},</if>
|
|||
|
<if test="ruleId != null">rule_id = #{ruleId},</if>
|
|||
|
<if test="deviceMac != null">device_mac = #{deviceMac},</if>
|
|||
|
<if test="sn != null">sn = #{sn},</if>
|
|||
|
<if test="payTime != null">pay_time = #{payTime},</if>
|
|||
|
<if test="payType != null">pay_type = #{payType},</if>
|
|||
|
<if test="paid != null and paid != ''">paid = #{paid},</if>
|
|||
|
<if test="type != null and type != ''">type = #{type},</if>
|
|||
|
<if test="totalFee != null">total_fee = #{totalFee},</if>
|
|||
|
<if test="payFee != null">pay_fee = #{payFee},</if>
|
|||
|
<if test="deposit != null">deposit = #{deposit},</if>
|
|||
|
<if test="overdueFee != null">overdue_fee = #{overdueFee},</if>
|
|||
|
<if test="dispatchFee != null">dispatch_fee = #{dispatchFee},</if>
|
|||
|
<if test="leaseFee != null">lease_fee = #{leaseFee},</if>
|
|||
|
<if test="mark != null">mark = #{mark},</if>
|
|||
|
<if test="duration != null">duration = #{duration},</if>
|
|||
|
<if test="status != null">status = #{status},</if>
|
|||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|||
|
<if test="returnTime != null">return_time = #{returnTime},</if>
|
|||
|
<if test="depositDeduction != null">deposit_deduction = #{depositDeduction},</if>
|
|||
|
<if test="depositOrderNo != null">deposit_order_no = #{depositOrderNo},</if>
|
|||
|
<if test="deductionAmount != null">deduction_amount = #{deductionAmount},</if>
|
|||
|
<if test="usedSn != null">used_sn = #{usedSn},</if>
|
|||
|
<if test="changeReason != null">change_reason = #{changeReason},</if>
|
|||
|
<if test="autoRefundDeposit != null">auto_refund_deposit = #{autoRefundDeposit},</if>
|
|||
|
<if test="rentalUnit != null">rental_unit = #{rentalUnit},</if>
|
|||
|
<if test="handlingCharge != null">handling_charge = #{handlingCharge},</if>
|
|||
|
<if test="platformServiceFee != null">platform_service_fee = #{platformServiceFee},</if>
|
|||
|
<if test="operatorDividend != null">operator_dividend = #{operatorDividend},</if>
|
|||
|
<if test="payChannel != null">pay_channel = #{payChannel},</if>
|
|||
|
<if test="deliveryMethod != null">delivery_method = #{deliveryMethod},</if>
|
|||
|
<if test="pickupTime != null">pickup_time = #{pickupTime},</if>
|
|||
|
<if test="agentId != null">agent_id = #{agentId},</if>
|
|||
|
<if test="storeId != null">store_id = #{storeId},</if>
|
|||
|
<if test="pickupCity != null">pickup_city = #{pickupCity},</if>
|
|||
|
<if test="pickupLoc != null">pickup_loc = #{pickupLoc},</if>
|
|||
|
<if test="pickupLon != null">pickup_lon = #{pickupLon},</if>
|
|||
|
<if test="pickupLat != null">pickup_lat = #{pickupLat},</if>
|
|||
|
<if test="expiryTime != null">expiry_time = #{expiryTime},</if>
|
|||
|
<if test="originalOrderNo != null">original_order_no = #{originalOrderNo},</if>
|
|||
|
<if test="num != null">num = #{num},</if>
|
|||
|
<if test="price != null">price = #{price},</if>
|
|||
|
<if test="explain != null">explain = #{explain},</if>
|
|||
|
<if test="instructions != null">instructions = #{instructions},</if>
|
|||
|
<if test="outUnit != null">out_unit = #{outUnit},</if>
|
|||
|
<if test="outPrice != null">out_price = #{outPrice},</if>
|
|||
|
</trim>
|
|||
|
where order_id = #{orderId}
|
|||
|
</update>
|
|||
|
|
|||
|
<update id="updateRlOrderByOrderNo" parameterType="RlOrder">
|
|||
|
update rl_order
|
|||
|
<trim prefix="SET" suffixOverrides=",">
|
|||
|
<if test="orderNo != null and orderNo != ''">order_no = #{orderNo},</if>
|
|||
|
<if test="outTradeNo != null">out_trade_no = #{outTradeNo},</if>
|
|||
|
<if test="userId != null">user_id = #{userId},</if>
|
|||
|
<if test="ruleId != null">rule_id = #{ruleId},</if>
|
|||
|
<if test="deviceMac != null">device_mac = #{deviceMac},</if>
|
|||
|
<if test="sn != null">sn = #{sn},</if>
|
|||
|
<if test="payTime != null">pay_time = #{payTime},</if>
|
|||
|
<if test="payType != null">pay_type = #{payType},</if>
|
|||
|
<if test="paid != null and paid != ''">paid = #{paid},</if>
|
|||
|
<if test="type != null and type != ''">type = #{type},</if>
|
|||
|
<if test="totalFee != null">total_fee = #{totalFee},</if>
|
|||
|
<if test="payFee != null">pay_fee = #{payFee},</if>
|
|||
|
<if test="deposit != null">deposit = #{deposit},</if>
|
|||
|
<if test="overdueFee != null">overdue_fee = #{overdueFee},</if>
|
|||
|
<if test="dispatchFee != null">dispatch_fee = #{dispatchFee},</if>
|
|||
|
<if test="leaseFee != null">lease_fee = #{leaseFee},</if>
|
|||
|
<if test="mark != null">mark = #{mark},</if>
|
|||
|
<if test="duration != null">duration = #{duration},</if>
|
|||
|
<if test="status != null">status = #{status},</if>
|
|||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|||
|
<if test="returnTime != null">return_time = #{returnTime},</if>
|
|||
|
<if test="depositDeduction != null">deposit_deduction = #{depositDeduction},</if>
|
|||
|
<if test="depositOrderNo != null">deposit_order_no = #{depositOrderNo},</if>
|
|||
|
<if test="deductionAmount != null">deduction_amount = #{deductionAmount},</if>
|
|||
|
<if test="usedSn != null">used_sn = #{usedSn},</if>
|
|||
|
<if test="changeReason != null">change_reason = #{changeReason},</if>
|
|||
|
<if test="autoRefundDeposit != null">auto_refund_deposit = #{autoRefundDeposit},</if>
|
|||
|
<if test="rentalUnit != null">rental_unit = #{rentalUnit},</if>
|
|||
|
<if test="handlingCharge != null">handling_charge = #{handlingCharge},</if>
|
|||
|
<if test="platformServiceFee != null">platform_service_fee = #{platformServiceFee},</if>
|
|||
|
<if test="operatorDividend != null">operator_dividend = #{operatorDividend},</if>
|
|||
|
<if test="payChannel != null">pay_channel = #{payChannel},</if>
|
|||
|
<if test="deliveryMethod != null">delivery_method = #{deliveryMethod},</if>
|
|||
|
<if test="pickupTime != null">pickup_time = #{pickupTime},</if>
|
|||
|
<if test="agentId != null">agent_id = #{agentId},</if>
|
|||
|
<if test="storeId != null">store_id = #{storeId},</if>
|
|||
|
<if test="pickupCity != null">pickup_city = #{pickupCity},</if>
|
|||
|
<if test="pickupLoc != null">pickup_loc = #{pickupLoc},</if>
|
|||
|
<if test="pickupLon != null">pickup_lon = #{pickupLon},</if>
|
|||
|
<if test="pickupLat != null">pickup_lat = #{pickupLat},</if>
|
|||
|
<if test="expiryTime != null">expiry_time = #{expiryTime},</if>
|
|||
|
<if test="originalOrderNo != null">original_order_no = #{originalOrderNo},</if>
|
|||
|
<if test="num != null">num = #{num},</if>
|
|||
|
<if test="price != null">price = #{price},</if>
|
|||
|
<if test="explain != null">explain = #{explain},</if>
|
|||
|
<if test="instructions != null">instructions = #{instructions},</if>
|
|||
|
<if test="outUnit != null">out_unit = #{outUnit},</if>
|
|||
|
<if test="outPrice != null">out_price = #{outPrice},</if>
|
|||
|
</trim>
|
|||
|
where order_no = #{orderNo}
|
|||
|
</update>
|
|||
|
|
|||
|
<delete id="deleteRlOrderByOrderId" parameterType="Long">
|
|||
|
delete from rl_order where order_id = #{orderId}
|
|||
|
</delete>
|
|||
|
|
|||
|
<delete id="deleteRlOrderByOrderIds" parameterType="String">
|
|||
|
delete from rl_order where order_id in
|
|||
|
<foreach item="orderId" collection="array" open="(" separator="," close=")">
|
|||
|
#{orderId}
|
|||
|
</foreach>
|
|||
|
</delete>
|
|||
|
</mapper>
|