|
@@ -21,6 +21,7 @@
|
|
<result property="payWay" column="pay_way" />
|
|
<result property="payWay" column="pay_way" />
|
|
<result property="payDate" column="pay_date" />
|
|
<result property="payDate" column="pay_date" />
|
|
<result property="oilPersonnel" column="oil_personnel" />
|
|
<result property="oilPersonnel" column="oil_personnel" />
|
|
|
|
+ <result property="oilPersonnelId" column="oil_personnel_id" />
|
|
<result property="orderType" column="order_type" />
|
|
<result property="orderType" column="order_type" />
|
|
<result property="printNum" column="print_num" />
|
|
<result property="printNum" column="print_num" />
|
|
<result property="classStructureNo" column="class_structure_no" />
|
|
<result property="classStructureNo" column="class_structure_no" />
|
|
@@ -55,7 +56,7 @@
|
|
|
|
|
|
<sql id="selectStationClassStructureVo">
|
|
<sql id="selectStationClassStructureVo">
|
|
select id, order_no, station_id, d.dept_name as station_name, oil_gun, oil_name, oil_pirce, oil_type,
|
|
select id, order_no, station_id, d.dept_name as station_name, oil_gun, oil_name, oil_pirce, oil_type,
|
|
- consumer_id, consumer, amt, order_liters, pay_type, pay_way, pay_date, oil_personnel, order_type,
|
|
|
|
|
|
+ consumer_id, consumer, amt, order_liters, pay_type, pay_way, pay_date,oil_personnel_id, oil_personnel, order_type,
|
|
print_num, class_structure_no, class_start_date, class_structure_date, class_structure_man, oils,
|
|
print_num, class_structure_no, class_start_date, class_structure_date, class_structure_man, oils,
|
|
receivable_amt, received_amt, discount_amt, discount_coupon_amt, discount_coupon, wx_amt, zfb_amt,
|
|
receivable_amt, received_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_no, member_amt, car_no,
|
|
pos_amt, xj_amt, didi_app_amt, ty_app_amt, other_amt, dzk_amt, score, member_no, member_amt, car_no,
|
|
@@ -80,6 +81,7 @@
|
|
<if test="payWay != null and payWay != ''"> and pay_way = #{payWay}</if>
|
|
<if test="payWay != null and payWay != ''"> and pay_way = #{payWay}</if>
|
|
<if test="payDate != null "> and pay_date = #{payDate}</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="oilPersonnelId != null and oilPersonnelId != ''"> and oil_personnel_id = #{oilPersonnelId}</if>
|
|
<if test="orderType != null and orderType != ''"> and order_type = #{orderType}</if>
|
|
<if test="orderType != null and orderType != ''"> and order_type = #{orderType}</if>
|
|
<if test="printNum != null "> and print_num = #{printNum}</if>
|
|
<if test="printNum != null "> and print_num = #{printNum}</if>
|
|
<if test="classStructureNo != null and classStructureNo != ''"> and class_structure_no = #{classStructureNo}</if>
|
|
<if test="classStructureNo != null and classStructureNo != ''"> and class_structure_no = #{classStructureNo}</if>
|
|
@@ -131,8 +133,8 @@
|
|
GROUP BY a.oil_name,a.station_id,a.class_start_date,a.class_structure_date,a.class_structure_man
|
|
GROUP BY a.oil_name,a.station_id,a.class_start_date,a.class_structure_date,a.class_structure_man
|
|
</select>
|
|
</select>
|
|
<select id="selectStationClassStructureMax" parameterType="StationClassStructure" resultMap="StationClassStructureResult">
|
|
<select id="selectStationClassStructureMax" parameterType="StationClassStructure" resultMap="StationClassStructureResult">
|
|
- select id, station_id, order_no, oil_gun, oil_name, consumer_id, consumer, amt,d.dept_name as station_name,
|
|
|
|
- order_liters, pay_type, pay_way, pay_date, oil_personnel, order_type, oil_type, print_num,
|
|
|
|
|
|
+ select id, station_id, order_no, oil_gun, 02., consumer_id, consumer, amt,d.dept_name as station_name,
|
|
|
|
+ order_liters, pay_type, pay_way, pay_date, oil_personnel,oil_personnel_id, order_type, oil_type, print_num,
|
|
class_structure_no, class_structure_date, class_structure_man, oils
|
|
class_structure_no, class_structure_date, class_structure_man, oils
|
|
from station_class_structure s join sys_dept d on s.station_id = d.dept_id
|
|
from station_class_structure s join sys_dept d on s.station_id = d.dept_id
|
|
where id = (
|
|
where id = (
|
|
@@ -293,6 +295,7 @@
|
|
<if test="payWay != null and payWay != ''"> and pay_way = #{payWay}</if>
|
|
<if test="payWay != null and payWay != ''"> and pay_way = #{payWay}</if>
|
|
<if test="payDate != null "> and pay_date = #{payDate}</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="oilPersonnelId != null and oilPersonnelId != ''"> and oil_personnel_id = #{oilPersonnelId}</if>
|
|
<if test="orderType != null and orderType != ''"> and order_type = #{orderType}</if>
|
|
<if test="orderType != null and orderType != ''"> and order_type = #{orderType}</if>
|
|
<if test="printNum != null "> and print_num = #{printNum}</if>
|
|
<if test="printNum != null "> and print_num = #{printNum}</if>
|
|
<if test="classStructureNo != null and classStructureNo != ''"> and class_structure_no = #{classStructureNo}</if>
|
|
<if test="classStructureNo != null and classStructureNo != ''"> and class_structure_no = #{classStructureNo}</if>
|
|
@@ -327,6 +330,7 @@
|
|
<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="stationId != null">station_id,</if>
|
|
|
|
+ <if test="stationName != null">station_name,</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>
|
|
@@ -339,6 +343,7 @@
|
|
<if test="payWay != null">pay_way,</if>
|
|
<if test="payWay != null">pay_way,</if>
|
|
<if test="payDate != null">pay_date,</if>
|
|
<if test="payDate != null">pay_date,</if>
|
|
<if test="oilPersonnel != null">oil_personnel,</if>
|
|
<if test="oilPersonnel != null">oil_personnel,</if>
|
|
|
|
+ <if test="oilPersonnelId != null">oil_personnel_id,</if>
|
|
<if test="orderType != null">order_type,</if>
|
|
<if test="orderType != null">order_type,</if>
|
|
<if test="printNum != null">print_num,</if>
|
|
<if test="printNum != null">print_num,</if>
|
|
<if test="classStructureNo != null">class_structure_no,</if>
|
|
<if test="classStructureNo != null">class_structure_no,</if>
|
|
@@ -369,6 +374,7 @@
|
|
<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="stationId != null">#{stationId},</if>
|
|
|
|
+ <if test="stationName != null">#{stationName},</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>
|
|
@@ -381,6 +387,7 @@
|
|
<if test="payWay != null">#{payWay},</if>
|
|
<if test="payWay != null">#{payWay},</if>
|
|
<if test="payDate != null">#{payDate},</if>
|
|
<if test="payDate != null">#{payDate},</if>
|
|
<if test="oilPersonnel != null">#{oilPersonnel},</if>
|
|
<if test="oilPersonnel != null">#{oilPersonnel},</if>
|
|
|
|
+ <if test="oilPersonnelId != null">#{oilPersonnelId},</if>
|
|
<if test="orderType != null">#{orderType},</if>
|
|
<if test="orderType != null">#{orderType},</if>
|
|
<if test="printNum != null">#{printNum},</if>
|
|
<if test="printNum != null">#{printNum},</if>
|
|
<if test="classStructureNo != null">#{classStructureNo},</if>
|
|
<if test="classStructureNo != null">#{classStructureNo},</if>
|
|
@@ -415,6 +422,7 @@
|
|
<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="stationId != null">station_id = #{stationId},</if>
|
|
|
|
+ <if test="stationName != null">station_name = #{stationName},</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>
|
|
@@ -427,6 +435,7 @@
|
|
<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="payDate != null">pay_date = #{payDate},</if>
|
|
<if test="oilPersonnel != null">oil_personnel = #{oilPersonnel},</if>
|
|
<if test="oilPersonnel != null">oil_personnel = #{oilPersonnel},</if>
|
|
|
|
+ <if test="oilPersonnelId != null">oil_personnel_id = #{oilPersonnelId},</if>
|
|
<if test="orderType != null">order_type = #{orderType},</if>
|
|
<if test="orderType != null">order_type = #{orderType},</if>
|
|
<if test="printNum != null">print_num = #{printNum},</if>
|
|
<if test="printNum != null">print_num = #{printNum},</if>
|
|
<if test="classStructureNo != null">class_structure_no = #{classStructureNo},</if>
|
|
<if test="classStructureNo != null">class_structure_no = #{classStructureNo},</if>
|