|
@@ -1,60 +1,96 @@
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<!DOCTYPE mapper
|
|
<!DOCTYPE mapper
|
|
- PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
- "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
|
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.yijia.station.mapper.PayOrderMapper">
|
|
<mapper namespace="com.yijia.station.mapper.PayOrderMapper">
|
|
-
|
|
|
|
|
|
+
|
|
<resultMap type="PayOrder" id="PayOrderResult">
|
|
<resultMap type="PayOrder" id="PayOrderResult">
|
|
<result property="orderId" column="order_id" />
|
|
<result property="orderId" column="order_id" />
|
|
<result property="orderNo" column="order_no" />
|
|
<result property="orderNo" column="order_no" />
|
|
|
|
+ <result property="stationId" column="station_id" />
|
|
|
|
+ <result property="stationName" column="station_name" />
|
|
|
|
+ <result property="status" column="status" />
|
|
|
|
+ <result property="consumerId" column="consumer_id" />
|
|
|
|
+ <result property="consumer" column="consumer" />
|
|
<result property="oilGun" column="oil_gun" />
|
|
<result property="oilGun" column="oil_gun" />
|
|
<result property="oilName" column="oil_name" />
|
|
<result property="oilName" column="oil_name" />
|
|
<result property="oilPirce" column="oil_pirce" />
|
|
<result property="oilPirce" column="oil_pirce" />
|
|
- <result property="consumerId" column="consumer_id" />
|
|
|
|
- <result property="consumer" column="consumer" />
|
|
|
|
- <result property="amt" column="amt" />
|
|
|
|
- <result property="stationId" column="station_id" />
|
|
|
|
- <result property="status" column="status" />
|
|
|
|
|
|
+ <result property="oilType" column="oil_type" />
|
|
<result property="orderLiters" column="order_liters" />
|
|
<result property="orderLiters" column="order_liters" />
|
|
|
|
+ <result property="amt" column="amt" />
|
|
|
|
+ <result property="receivableAmt" column="receivable_amt" />
|
|
|
|
+ <result property="discountAmt" column="discount_amt" />
|
|
|
|
+ <result property="discountCouponAmt" column="discount_coupon_amt" />
|
|
|
|
+ <result property="discountCoupon" column="discount_coupon" />
|
|
|
|
+ <result property="wxAmt" column="wx_amt" />
|
|
|
|
+ <result property="zfbAmt" column="zfb_amt" />
|
|
|
|
+ <result property="posAmt" column="pos_amt" />
|
|
|
|
+ <result property="xjAmt" column="xj_amt" />
|
|
|
|
+ <result property="didiAppAmt" column="didi_app_amt" />
|
|
|
|
+ <result property="tyAppAmt" column="ty_app_amt" />
|
|
|
|
+ <result property="otherAmt" column="other_amt" />
|
|
|
|
+ <result property="dzkAmt" column="dzk_amt" />
|
|
|
|
+ <result property="score" column="score" />
|
|
|
|
+ <result property="memberAmt" column="member_amt" />
|
|
|
|
+ <result property="printCount" column="print_count" />
|
|
<result property="payType" column="pay_type" />
|
|
<result property="payType" column="pay_type" />
|
|
<result property="payWay" column="pay_way" />
|
|
<result property="payWay" column="pay_way" />
|
|
- <result property="payDate" column="pay_date" />
|
|
|
|
<result property="oilPersonnel" column="oil_personnel" />
|
|
<result property="oilPersonnel" column="oil_personnel" />
|
|
|
|
+ <result property="payDate" column="pay_date" />
|
|
<result property="createdDate" column="created_date" />
|
|
<result property="createdDate" column="created_date" />
|
|
<result property="orderType" column="order_type" />
|
|
<result property="orderType" column="order_type" />
|
|
- <result property="stationName" column="station_name" />
|
|
|
|
|
|
+ <result property="cyAmt" column="cy_amt" />
|
|
|
|
+ <result property="qyAmt" column="qy_amt" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectPayOrderVo">
|
|
<sql id="selectPayOrderVo">
|
|
- select order_id, order_no, oil_gun, oil_name, oil_pirce, consumer_id, consumer, amt, station_id, status, order_liters, pay_type, pay_way, pay_date, oil_personnel, created_date, order_type, station_name from pay_order
|
|
|
|
|
|
+ select order_id, order_no, station_id, station_name, status, consumer_id, consumer, oil_gun, oil_name, oil_pirce, oil_type, order_liters, amt, receivable_amt, discount_amt, discount_coupon_amt, discount_coupon, wx_amt, zfb_amt, pos_amt, xj_amt, didi_app_amt, ty_app_amt, other_amt, dzk_amt, score, member_amt, print_count, pay_type, pay_way, oil_personnel, pay_date, created_date, order_type from pay_order
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectPayOrderList" parameterType="PayOrder" resultMap="PayOrderResult">
|
|
<select id="selectPayOrderList" parameterType="PayOrder" resultMap="PayOrderResult">
|
|
<include refid="selectPayOrderVo"/>
|
|
<include refid="selectPayOrderVo"/>
|
|
- <where>
|
|
|
|
|
|
+ <where>
|
|
<if test="orderNo != null and orderNo != ''"> and order_no = #{orderNo}</if>
|
|
<if test="orderNo != null and orderNo != ''"> and order_no = #{orderNo}</if>
|
|
- <if test="oilGun != null and oilGun != ''"> and oil_gun = #{oilGun}</if>
|
|
|
|
- <if test="oilName != null and oilName != ''"> and oil_name like concat('%', #{oilName}, '%')</if>
|
|
|
|
- <if test="consumerId != null "> and consumer_id = #{consumerId}</if>
|
|
|
|
- <if test="consumer != null and consumer != ''"> and consumer = #{consumer}</if>
|
|
|
|
- <if test="amt != null and amt != ''"> and amt = #{amt}</if>
|
|
|
|
<if test="stationId != null "> and station_id = #{stationId}</if>
|
|
<if test="stationId != null "> and station_id = #{stationId}</if>
|
|
|
|
+ <if test="stationName != null and stationName != ''"> and station_name like concat('%', #{stationName}, '%')</if>
|
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
|
- <if test="orderLiters != null and orderLiters != ''"> and order_liters = #{orderLiters}</if>
|
|
|
|
|
|
+ <if test="consumerId != null "> and consumer_id = #{consumerId}</if>
|
|
|
|
+ <if test="consumer != null and consumer != ''"> and consumer = #{consumer}</if>
|
|
|
|
+ <if test="oilGun != null and oilGun != ''"> and oil_gun = #{oilGun}</if>
|
|
|
|
+ <if test="oilName != null and oilName != ''"> and oil_name like concat('%', #{oilName}, '%')</if>
|
|
|
|
+ <if test="oilPirce != null and oilPirce != ''"> and oil_pirce = #{oilPirce}</if>
|
|
|
|
+ <if test="oilType != null and oilType != ''"> and oil_type = #{oilType}</if>
|
|
|
|
+ <if test="orderLiters != null "> and order_liters = #{orderLiters}</if>
|
|
|
|
+ <if test="amt != null "> and amt = #{amt}</if>
|
|
|
|
+ <if test="receivableAmt != null "> and receivable_amt = #{receivableAmt}</if>
|
|
|
|
+ <if test="discountAmt != null "> and discount_amt = #{discountAmt}</if>
|
|
|
|
+ <if test="discountCouponAmt != null "> and discount_coupon_amt = #{discountCouponAmt}</if>
|
|
|
|
+ <if test="discountCoupon != null and discountCoupon != ''"> and discount_coupon = #{discountCoupon}</if>
|
|
|
|
+ <if test="wxAmt != null "> and wx_amt = #{wxAmt}</if>
|
|
|
|
+ <if test="zfbAmt != null "> and zfb_amt = #{zfbAmt}</if>
|
|
|
|
+ <if test="posAmt != null "> and pos_amt = #{posAmt}</if>
|
|
|
|
+ <if test="xjAmt != null "> and xj_amt = #{xjAmt}</if>
|
|
|
|
+ <if test="didiAppAmt != null "> and didi_app_amt = #{didiAppAmt}</if>
|
|
|
|
+ <if test="tyAppAmt != null "> and ty_app_amt = #{tyAppAmt}</if>
|
|
|
|
+ <if test="otherAmt != null "> and other_amt = #{otherAmt}</if>
|
|
|
|
+ <if test="dzkAmt != null "> and dzk_amt = #{dzkAmt}</if>
|
|
|
|
+ <if test="score != null "> and score = #{score}</if>
|
|
|
|
+ <if test="memberAmt != null "> and member_amt = #{memberAmt}</if>
|
|
|
|
+ <if test="printCount != null "> and print_count = #{printCount}</if>
|
|
<if test="payType != null and payType != ''"> and pay_type = #{payType}</if>
|
|
<if test="payType != null and payType != ''"> and pay_type = #{payType}</if>
|
|
<if test="payWay != null and payWay != ''"> and pay_way = #{payWay}</if>
|
|
<if test="payWay != null and payWay != ''"> and pay_way = #{payWay}</if>
|
|
-
|
|
|
|
- <if test="beginTime != null and beginTime != ''">
|
|
|
|
|
|
+ <if test="beginTime != null and beginTime != ''"><!-- 开始时间检索 -->
|
|
AND date_format(created_date,'%y-%m-%d %H:%i:%s') >= date_format(#{beginTime},'%y-%m-%d %H:%i:%s')
|
|
AND date_format(created_date,'%y-%m-%d %H:%i:%s') >= date_format(#{beginTime},'%y-%m-%d %H:%i:%s')
|
|
</if>
|
|
</if>
|
|
- <if test="endTime != null and endTime != ''">
|
|
|
|
|
|
+ <if test="endTime != null and endTime != ''"><!-- 结束时间检索 -->
|
|
AND date_format(created_date,'%y-%m-%d %H:%i:%s') <= date_format(#{endTime},'%y-%m-%d %H:%i:%s')
|
|
AND date_format(created_date,'%y-%m-%d %H:%i:%s') <= date_format(#{endTime},'%y-%m-%d %H:%i:%s')
|
|
</if>
|
|
</if>
|
|
- <if test="stationName != null and stationName != ''">
|
|
|
|
- AND station_name LIKE CONCAT('%', #{stationName}, '%')
|
|
|
|
- </if>
|
|
|
|
|
|
+<!-- <if test="payDate != null "> and pay_date = #{payDate}</if>-->
|
|
<if test="oilPersonnel != null and oilPersonnel != ''"> and oil_personnel = #{oilPersonnel}</if>
|
|
<if test="oilPersonnel != null and oilPersonnel != ''"> and oil_personnel = #{oilPersonnel}</if>
|
|
|
|
+ <if test="payDate != null "> and pay_date = #{payDate}</if>
|
|
|
|
+ <if test="createdDate != null "> and created_date = #{createdDate}</if>
|
|
<if test="orderType != null and orderType != ''"> and order_type = #{orderType}</if>
|
|
<if test="orderType != null and orderType != ''"> and order_type = #{orderType}</if>
|
|
|
|
+
|
|
</where>
|
|
</where>
|
|
ORDER BY created_date DESC
|
|
ORDER BY created_date DESC
|
|
</select>
|
|
</select>
|
|
@@ -63,69 +99,162 @@
|
|
<include refid="selectPayOrderVo"/>
|
|
<include refid="selectPayOrderVo"/>
|
|
where order_id = #{orderId}
|
|
where order_id = #{orderId}
|
|
</select>
|
|
</select>
|
|
-
|
|
|
|
|
|
+ <select id="selectDaySources" parameterType="Long" resultMap="PayOrderResult">
|
|
|
|
+ SELECT SUM(amt) as amt,sum(order_liters) as order_liters
|
|
|
|
+ from pay_order
|
|
|
|
+ <where>
|
|
|
|
+ <if test="createdDate != null "> and created_date like concat(#{createdDate}, '%') </if>
|
|
|
|
+ <if test="beginTime != null and beginTime != ''"><!-- 开始时间检索 -->
|
|
|
|
+ AND date_format(created_date,'%y-%m-%d %H:%i:%s') >= date_format(#{beginTime},'%y-%m-%d %H:%i:%s')
|
|
|
|
+ </if>
|
|
|
|
+ <if test="endTime != null and endTime != ''"><!-- 结束时间检索 -->
|
|
|
|
+ AND date_format(created_date,'%y-%m-%d %H:%i:%s') <= date_format(#{endTime},'%y-%m-%d %H:%i:%s')
|
|
|
|
+ </if>
|
|
|
|
+ </where>
|
|
|
|
+ </select>
|
|
|
|
+ <select id="selectOilTypeSources" parameterType="Long" resultMap="PayOrderResult">
|
|
|
|
+ SELECT SUM(amt) as amt,sum(order_liters) as order_liters, oil_type
|
|
|
|
+ from pay_order
|
|
|
|
+ <where>
|
|
|
|
+ <if test="createdDate != null "> and created_date = #{createdDate}</if>
|
|
|
|
+ <if test="beginTime != null and beginTime != ''"><!-- 开始时间检索 -->
|
|
|
|
+ AND date_format(created_date,'%y-%m-%d %H:%i:%s') >= date_format(#{beginTime},'%y-%m-%d %H:%i:%s')
|
|
|
|
+ </if>
|
|
|
|
+ <if test="endTime != null and endTime != ''"><!-- 结束时间检索 -->
|
|
|
|
+ AND date_format(created_date,'%y-%m-%d %H:%i:%s') <= date_format(#{endTime},'%y-%m-%d %H:%i:%s')
|
|
|
|
+ </if>
|
|
|
|
+ </where>
|
|
|
|
+ GROUP BY oil_type
|
|
|
|
+ </select>
|
|
|
|
+ <select id="selectOverViewData" parameterType="Long" resultMap="PayOrderResult">
|
|
|
|
+ SELECT SUM(wx_amt) as wx_amt,sum(zfb_amt) as zfb_amt, sum(pos_amt) as pos_amt, sum(xj_amt) as xj_amt,sum(didi_app_amt) as didi_app_amt,sum(ty_app_amt) as ty_app_amt,sum(other_amt) as other_amt,sum(member_amt) as member_amt
|
|
|
|
+ from pay_order
|
|
|
|
+ <where>
|
|
|
|
+ <if test="createdDate != null "> and created_date = #{createdDate}</if>
|
|
|
|
+ <if test="beginTime != null and beginTime != ''"><!-- 开始时间检索 -->
|
|
|
|
+ AND date_format(created_date,'%y-%m-%d %H:%i:%s') >= date_format(#{beginTime},'%y-%m-%d %H:%i:%s')
|
|
|
|
+ </if>
|
|
|
|
+ <if test="endTime != null and endTime != ''"><!-- 结束时间检索 -->
|
|
|
|
+ AND date_format(created_date,'%y-%m-%d %H:%i:%s') <= date_format(#{endTime},'%y-%m-%d %H:%i:%s')
|
|
|
|
+ </if>
|
|
|
|
+ </where>
|
|
|
|
+ </select>
|
|
|
|
+ <select id="selectDayReport" parameterType="Long" resultMap="PayOrderResult">
|
|
|
|
+ SELECT date_format( b.pay_date, '%Y-%m-%d' ) as pay_date,sum(b.amt) as amt,sum(b.qyamt) as qy_amt, sum(b.cyamt) as cy_amt,sum(b.order_liters) as order_liters ,count(b.order_no) order_no ,sum(b.member_amt) as menber_amt
|
|
|
|
+ from (SELECT a.*,(SELECT sum(amt) as qyamt from pay_order where order_no=a.order_no and oil_type=2) as qyamt , (SELECT sum(amt) as qyamt from pay_order where order_no=a.order_no and oil_type=1) as cyamt
|
|
|
|
+ from pay_order a) b
|
|
|
|
+ GROUP BY date_format( pay_date, '%Y-%m-%d' )
|
|
|
|
+ </select>
|
|
<insert id="insertPayOrder" parameterType="PayOrder" useGeneratedKeys="true" keyProperty="orderId">
|
|
<insert id="insertPayOrder" parameterType="PayOrder" useGeneratedKeys="true" keyProperty="orderId">
|
|
insert into pay_order
|
|
insert into pay_order
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="orderNo != null">order_no,</if>
|
|
<if test="orderNo != null">order_no,</if>
|
|
|
|
+ <if test="stationId != null">station_id,</if>
|
|
|
|
+ <if test="stationName != null">station_name,</if>
|
|
|
|
+ <if test="status != null">status,</if>
|
|
|
|
+ <if test="consumerId != null">consumer_id,</if>
|
|
|
|
+ <if test="consumer != null">consumer,</if>
|
|
<if test="oilGun != null">oil_gun,</if>
|
|
<if test="oilGun != null">oil_gun,</if>
|
|
<if test="oilName != null">oil_name,</if>
|
|
<if test="oilName != null">oil_name,</if>
|
|
<if test="oilPirce != null">oil_pirce,</if>
|
|
<if test="oilPirce != null">oil_pirce,</if>
|
|
- <if test="consumerId != null">consumer_id,</if>
|
|
|
|
- <if test="consumer != null">consumer,</if>
|
|
|
|
- <if test="amt != null">amt,</if>
|
|
|
|
- <if test="stationId != null">station_id,</if>
|
|
|
|
- <if test="status != null">status,</if>
|
|
|
|
|
|
+ <if test="oilType != null">oil_type,</if>
|
|
<if test="orderLiters != null">order_liters,</if>
|
|
<if test="orderLiters != null">order_liters,</if>
|
|
|
|
+ <if test="amt != null">amt,</if>
|
|
|
|
+ <if test="receivableAmt != null">receivable_amt,</if>
|
|
|
|
+ <if test="discountAmt != null">discount_amt,</if>
|
|
|
|
+ <if test="discountCouponAmt != null">discount_coupon_amt,</if>
|
|
|
|
+ <if test="discountCoupon != null">discount_coupon,</if>
|
|
|
|
+ <if test="wxAmt != null">wx_amt,</if>
|
|
|
|
+ <if test="zfbAmt != null">zfb_amt,</if>
|
|
|
|
+ <if test="posAmt != null">pos_amt,</if>
|
|
|
|
+ <if test="xjAmt != null">xj_amt,</if>
|
|
|
|
+ <if test="didiAppAmt != null">didi_app_amt,</if>
|
|
|
|
+ <if test="tyAppAmt != null">ty_app_amt,</if>
|
|
|
|
+ <if test="otherAmt != null">other_amt,</if>
|
|
|
|
+ <if test="dzkAmt != null">dzk_amt,</if>
|
|
|
|
+ <if test="score != null">score,</if>
|
|
|
|
+ <if test="memberAmt != null">member_amt,</if>
|
|
|
|
+ <if test="printCount != null">print_count,</if>
|
|
<if test="payType != null">pay_type,</if>
|
|
<if test="payType != null">pay_type,</if>
|
|
<if test="payWay != null">pay_way,</if>
|
|
<if test="payWay != null">pay_way,</if>
|
|
- <if test="payDate != null">pay_date,</if>
|
|
|
|
<if test="oilPersonnel != null">oil_personnel,</if>
|
|
<if test="oilPersonnel != null">oil_personnel,</if>
|
|
|
|
+ <if test="payDate != null">pay_date,</if>
|
|
<if test="createdDate != null">created_date,</if>
|
|
<if test="createdDate != null">created_date,</if>
|
|
<if test="orderType != null">order_type,</if>
|
|
<if test="orderType != null">order_type,</if>
|
|
- <if test="stationName != null">station_name,</if>
|
|
|
|
- </trim>
|
|
|
|
|
|
+ </trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="orderNo != null">#{orderNo},</if>
|
|
<if test="orderNo != null">#{orderNo},</if>
|
|
|
|
+ <if test="stationId != null">#{stationId},</if>
|
|
|
|
+ <if test="stationName != null">#{stationName},</if>
|
|
|
|
+ <if test="status != null">#{status},</if>
|
|
|
|
+ <if test="consumerId != null">#{consumerId},</if>
|
|
|
|
+ <if test="consumer != null">#{consumer},</if>
|
|
<if test="oilGun != null">#{oilGun},</if>
|
|
<if test="oilGun != null">#{oilGun},</if>
|
|
<if test="oilName != null">#{oilName},</if>
|
|
<if test="oilName != null">#{oilName},</if>
|
|
<if test="oilPirce != null">#{oilPirce},</if>
|
|
<if test="oilPirce != null">#{oilPirce},</if>
|
|
- <if test="consumerId != null">#{consumerId},</if>
|
|
|
|
- <if test="consumer != null">#{consumer},</if>
|
|
|
|
- <if test="amt != null">#{amt},</if>
|
|
|
|
- <if test="stationId != null">#{stationId},</if>
|
|
|
|
- <if test="status != null">#{status},</if>
|
|
|
|
|
|
+ <if test="oilType != null">#{oilType},</if>
|
|
<if test="orderLiters != null">#{orderLiters},</if>
|
|
<if test="orderLiters != null">#{orderLiters},</if>
|
|
|
|
+ <if test="amt != null">#{amt},</if>
|
|
|
|
+ <if test="receivableAmt != null">#{receivableAmt},</if>
|
|
|
|
+ <if test="discountAmt != null">#{discountAmt},</if>
|
|
|
|
+ <if test="discountCouponAmt != null">#{discountCouponAmt},</if>
|
|
|
|
+ <if test="discountCoupon != null">#{discountCoupon},</if>
|
|
|
|
+ <if test="wxAmt != null">#{wxAmt},</if>
|
|
|
|
+ <if test="zfbAmt != null">#{zfbAmt},</if>
|
|
|
|
+ <if test="posAmt != null">#{posAmt},</if>
|
|
|
|
+ <if test="xjAmt != null">#{xjAmt},</if>
|
|
|
|
+ <if test="didiAppAmt != null">#{didiAppAmt},</if>
|
|
|
|
+ <if test="tyAppAmt != null">#{tyAppAmt},</if>
|
|
|
|
+ <if test="otherAmt != null">#{otherAmt},</if>
|
|
|
|
+ <if test="dzkAmt != null">#{dzkAmt},</if>
|
|
|
|
+ <if test="score != null">#{score},</if>
|
|
|
|
+ <if test="memberAmt != null">#{memberAmt},</if>
|
|
|
|
+ <if test="printCount != null">#{printCount},</if>
|
|
<if test="payType != null">#{payType},</if>
|
|
<if test="payType != null">#{payType},</if>
|
|
<if test="payWay != null">#{payWay},</if>
|
|
<if test="payWay != null">#{payWay},</if>
|
|
- <if test="payDate != null">#{payDate},</if>
|
|
|
|
<if test="oilPersonnel != null">#{oilPersonnel},</if>
|
|
<if test="oilPersonnel != null">#{oilPersonnel},</if>
|
|
|
|
+ <if test="payDate != null">#{payDate},</if>
|
|
<if test="createdDate != null">#{createdDate},</if>
|
|
<if test="createdDate != null">#{createdDate},</if>
|
|
<if test="orderType != null">#{orderType},</if>
|
|
<if test="orderType != null">#{orderType},</if>
|
|
- <if test="stationName != null">#{stationName},</if>
|
|
|
|
- </trim>
|
|
|
|
|
|
+ </trim>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
<update id="updatePayOrder" parameterType="PayOrder">
|
|
<update id="updatePayOrder" parameterType="PayOrder">
|
|
update pay_order
|
|
update pay_order
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<if test="orderNo != null">order_no = #{orderNo},</if>
|
|
<if test="orderNo != null">order_no = #{orderNo},</if>
|
|
|
|
+ <if test="stationId != null">station_id = #{stationId},</if>
|
|
|
|
+ <if test="stationName != null">station_name = #{stationName},</if>
|
|
|
|
+ <if test="status != null">status = #{status},</if>
|
|
|
|
+ <if test="consumerId != null">consumer_id = #{consumerId},</if>
|
|
|
|
+ <if test="consumer != null">consumer = #{consumer},</if>
|
|
<if test="oilGun != null">oil_gun = #{oilGun},</if>
|
|
<if test="oilGun != null">oil_gun = #{oilGun},</if>
|
|
<if test="oilName != null">oil_name = #{oilName},</if>
|
|
<if test="oilName != null">oil_name = #{oilName},</if>
|
|
<if test="oilPirce != null">oil_pirce = #{oilPirce},</if>
|
|
<if test="oilPirce != null">oil_pirce = #{oilPirce},</if>
|
|
- <if test="consumerId != null">consumer_id = #{consumerId},</if>
|
|
|
|
- <if test="consumer != null">consumer = #{consumer},</if>
|
|
|
|
- <if test="amt != null">amt = #{amt},</if>
|
|
|
|
- <if test="stationId != null">station_id = #{stationId},</if>
|
|
|
|
- <if test="status != null">status = #{status},</if>
|
|
|
|
|
|
+ <if test="oilType != null">oil_type = #{oilType},</if>
|
|
<if test="orderLiters != null">order_liters = #{orderLiters},</if>
|
|
<if test="orderLiters != null">order_liters = #{orderLiters},</if>
|
|
|
|
+ <if test="amt != null">amt = #{amt},</if>
|
|
|
|
+ <if test="receivableAmt != null">receivable_amt = #{receivableAmt},</if>
|
|
|
|
+ <if test="discountAmt != null">discount_amt = #{discountAmt},</if>
|
|
|
|
+ <if test="discountCouponAmt != null">discount_coupon_amt = #{discountCouponAmt},</if>
|
|
|
|
+ <if test="discountCoupon != null">discount_coupon = #{discountCoupon},</if>
|
|
|
|
+ <if test="wxAmt != null">wx_amt = #{wxAmt},</if>
|
|
|
|
+ <if test="zfbAmt != null">zfb_amt = #{zfbAmt},</if>
|
|
|
|
+ <if test="posAmt != null">pos_amt = #{posAmt},</if>
|
|
|
|
+ <if test="xjAmt != null">xj_amt = #{xjAmt},</if>
|
|
|
|
+ <if test="didiAppAmt != null">didi_app_amt = #{didiAppAmt},</if>
|
|
|
|
+ <if test="tyAppAmt != null">ty_app_amt = #{tyAppAmt},</if>
|
|
|
|
+ <if test="otherAmt != null">other_amt = #{otherAmt},</if>
|
|
|
|
+ <if test="dzkAmt != null">dzk_amt = #{dzkAmt},</if>
|
|
|
|
+ <if test="score != null">score = #{score},</if>
|
|
|
|
+ <if test="memberAmt != null">member_amt = #{memberAmt},</if>
|
|
|
|
+ <if test="printCount != null">print_count = #{printCount},</if>
|
|
<if test="payType != null">pay_type = #{payType},</if>
|
|
<if test="payType != null">pay_type = #{payType},</if>
|
|
<if test="payWay != null">pay_way = #{payWay},</if>
|
|
<if test="payWay != null">pay_way = #{payWay},</if>
|
|
- <if test="payDate != null">pay_date = #{payDate},</if>
|
|
|
|
<if test="oilPersonnel != null">oil_personnel = #{oilPersonnel},</if>
|
|
<if test="oilPersonnel != null">oil_personnel = #{oilPersonnel},</if>
|
|
|
|
+ <if test="payDate != null">pay_date = #{payDate},</if>
|
|
<if test="createdDate != null">created_date = #{createdDate},</if>
|
|
<if test="createdDate != null">created_date = #{createdDate},</if>
|
|
<if test="orderType != null">order_type = #{orderType},</if>
|
|
<if test="orderType != null">order_type = #{orderType},</if>
|
|
- <if test="stationName != null">station_name = #{stationName},</if>
|
|
|
|
</trim>
|
|
</trim>
|
|
where order_id = #{orderId}
|
|
where order_id = #{orderId}
|
|
</update>
|
|
</update>
|
|
@@ -135,10 +264,10 @@
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
<delete id="deletePayOrderByIds" parameterType="String">
|
|
<delete id="deletePayOrderByIds" parameterType="String">
|
|
- delete from pay_order where order_id in
|
|
|
|
|
|
+ delete from pay_order where order_id in
|
|
<foreach item="orderId" collection="array" open="(" separator="," close=")">
|
|
<foreach item="orderId" collection="array" open="(" separator="," close=")">
|
|
#{orderId}
|
|
#{orderId}
|
|
</foreach>
|
|
</foreach>
|
|
</delete>
|
|
</delete>
|
|
-
|
|
|
|
-</mapper>
|
|
|
|
|
|
+
|
|
|
|
+</mapper>
|