mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-28 19:18:00 +08:00
占桩订单添加 ”车牌号码“字段
This commit is contained in:
@@ -39,6 +39,11 @@ public class OrderPileOccupy {
|
|||||||
*/
|
*/
|
||||||
private String stationId;
|
private String stationId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 车牌号码
|
||||||
|
*/
|
||||||
|
private String plateNumber;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 订单号
|
* 订单号
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
<result column="status" jdbcType="CHAR" property="status"/>
|
<result column="status" jdbcType="CHAR" property="status"/>
|
||||||
<result column="member_id" jdbcType="VARCHAR" property="memberId"/>
|
<result column="member_id" jdbcType="VARCHAR" property="memberId"/>
|
||||||
<result column="station_id" jdbcType="VARCHAR" property="stationId"/>
|
<result column="station_id" jdbcType="VARCHAR" property="stationId"/>
|
||||||
|
<result column="plate_number" jdbcType="VARCHAR" property="plateNumber"/>
|
||||||
<result column="order_code" jdbcType="VARCHAR" property="orderCode"/>
|
<result column="order_code" jdbcType="VARCHAR" property="orderCode"/>
|
||||||
<result column="transaction_code" jdbcType="VARCHAR" property="transactionCode"/>
|
<result column="transaction_code" jdbcType="VARCHAR" property="transactionCode"/>
|
||||||
<result column="start_time" jdbcType="TIMESTAMP" property="startTime"/>
|
<result column="start_time" jdbcType="TIMESTAMP" property="startTime"/>
|
||||||
@@ -31,6 +32,7 @@
|
|||||||
`status`,
|
`status`,
|
||||||
member_id,
|
member_id,
|
||||||
station_id,
|
station_id,
|
||||||
|
plate_number,
|
||||||
order_code,
|
order_code,
|
||||||
transaction_code,
|
transaction_code,
|
||||||
start_time,
|
start_time,
|
||||||
@@ -63,13 +65,13 @@
|
|||||||
useGeneratedKeys="true">
|
useGeneratedKeys="true">
|
||||||
<!--@mbg.generated-->
|
<!--@mbg.generated-->
|
||||||
insert into order_pile_occupy (occupy_code, `status`, member_id,
|
insert into order_pile_occupy (occupy_code, `status`, member_id,
|
||||||
station_id, order_code, transaction_code,
|
station_id, plate_number, order_code, transaction_code,
|
||||||
start_time, end_time, pay_status,
|
start_time, end_time, pay_status,
|
||||||
order_amount, pile_sn, connector_code,
|
order_amount, pile_sn, connector_code,
|
||||||
pile_connector_code, create_time, create_by,
|
pile_connector_code, create_time, create_by,
|
||||||
update_time, update_by, del_flag)
|
update_time, update_by, del_flag)
|
||||||
values (#{occupyCode,jdbcType=VARCHAR}, #{status,jdbcType=CHAR}, #{memberId,jdbcType=VARCHAR},
|
values (#{occupyCode,jdbcType=VARCHAR}, #{status,jdbcType=CHAR}, #{memberId,jdbcType=VARCHAR},
|
||||||
#{stationId,jdbcType=VARCHAR}, #{orderCode,jdbcType=VARCHAR}, #{transactionCode,jdbcType=VARCHAR},
|
#{stationId,jdbcType=VARCHAR}, #{plateNumber,jdbcType=VARCHAR}, #{orderCode,jdbcType=VARCHAR}, #{transactionCode,jdbcType=VARCHAR},
|
||||||
#{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, #{payStatus,jdbcType=VARCHAR},
|
#{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, #{payStatus,jdbcType=VARCHAR},
|
||||||
#{orderAmount,jdbcType=DECIMAL}, #{pileSn,jdbcType=VARCHAR}, #{connectorCode,jdbcType=VARCHAR},
|
#{orderAmount,jdbcType=DECIMAL}, #{pileSn,jdbcType=VARCHAR}, #{connectorCode,jdbcType=VARCHAR},
|
||||||
#{pileConnectorCode,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=VARCHAR},
|
#{pileConnectorCode,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=VARCHAR},
|
||||||
@@ -92,6 +94,9 @@
|
|||||||
<if test="stationId != null">
|
<if test="stationId != null">
|
||||||
station_id,
|
station_id,
|
||||||
</if>
|
</if>
|
||||||
|
<if test="plateNumber != null">
|
||||||
|
plate_number,
|
||||||
|
</if>
|
||||||
<if test="orderCode != null">
|
<if test="orderCode != null">
|
||||||
order_code,
|
order_code,
|
||||||
</if>
|
</if>
|
||||||
@@ -148,6 +153,9 @@
|
|||||||
<if test="stationId != null">
|
<if test="stationId != null">
|
||||||
#{stationId,jdbcType=VARCHAR},
|
#{stationId,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="plateNumber != null">
|
||||||
|
#{plateNumber,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
<if test="orderCode != null">
|
<if test="orderCode != null">
|
||||||
#{orderCode,jdbcType=VARCHAR},
|
#{orderCode,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
@@ -208,6 +216,9 @@
|
|||||||
<if test="stationId != null">
|
<if test="stationId != null">
|
||||||
station_id = #{stationId,jdbcType=VARCHAR},
|
station_id = #{stationId,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="plateNumber != null">
|
||||||
|
plate_number = #{plateNumber,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
<if test="orderCode != null">
|
<if test="orderCode != null">
|
||||||
order_code = #{orderCode,jdbcType=VARCHAR},
|
order_code = #{orderCode,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
@@ -260,6 +271,7 @@
|
|||||||
`status` = #{status,jdbcType=CHAR},
|
`status` = #{status,jdbcType=CHAR},
|
||||||
member_id = #{memberId,jdbcType=VARCHAR},
|
member_id = #{memberId,jdbcType=VARCHAR},
|
||||||
station_id = #{stationId,jdbcType=VARCHAR},
|
station_id = #{stationId,jdbcType=VARCHAR},
|
||||||
|
plate_number = #{plateNumber,jdbcType=VARCHAR},
|
||||||
order_code = #{orderCode,jdbcType=VARCHAR},
|
order_code = #{orderCode,jdbcType=VARCHAR},
|
||||||
transaction_code = #{transactionCode,jdbcType=VARCHAR},
|
transaction_code = #{transactionCode,jdbcType=VARCHAR},
|
||||||
start_time = #{startTime,jdbcType=TIMESTAMP},
|
start_time = #{startTime,jdbcType=TIMESTAMP},
|
||||||
@@ -300,6 +312,11 @@
|
|||||||
when id = #{item.id,jdbcType=INTEGER} then #{item.stationId,jdbcType=VARCHAR}
|
when id = #{item.id,jdbcType=INTEGER} then #{item.stationId,jdbcType=VARCHAR}
|
||||||
</foreach>
|
</foreach>
|
||||||
</trim>
|
</trim>
|
||||||
|
<trim prefix="plate_number = case" suffix="end,">
|
||||||
|
<foreach collection="list" index="index" item="item">
|
||||||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.plateNumber,jdbcType=VARCHAR}
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
<trim prefix="order_code = case" suffix="end,">
|
<trim prefix="order_code = case" suffix="end,">
|
||||||
<foreach collection="list" index="index" item="item">
|
<foreach collection="list" index="index" item="item">
|
||||||
when id = #{item.id,jdbcType=INTEGER} then #{item.orderCode,jdbcType=VARCHAR}
|
when id = #{item.id,jdbcType=INTEGER} then #{item.orderCode,jdbcType=VARCHAR}
|
||||||
@@ -408,6 +425,13 @@
|
|||||||
</if>
|
</if>
|
||||||
</foreach>
|
</foreach>
|
||||||
</trim>
|
</trim>
|
||||||
|
<trim prefix="plate_number = case" suffix="end,">
|
||||||
|
<foreach collection="list" index="index" item="item">
|
||||||
|
<if test="item.plateNumber != null">
|
||||||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.plateNumber,jdbcType=VARCHAR}
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
<trim prefix="order_code = case" suffix="end,">
|
<trim prefix="order_code = case" suffix="end,">
|
||||||
<foreach collection="list" index="index" item="item">
|
<foreach collection="list" index="index" item="item">
|
||||||
<if test="item.orderCode != null">
|
<if test="item.orderCode != null">
|
||||||
@@ -515,13 +539,13 @@
|
|||||||
<insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="map" useGeneratedKeys="true">
|
<insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="map" useGeneratedKeys="true">
|
||||||
<!--@mbg.generated-->
|
<!--@mbg.generated-->
|
||||||
insert into order_pile_occupy
|
insert into order_pile_occupy
|
||||||
(occupy_code, `status`, member_id, station_id, order_code, transaction_code, start_time,
|
(occupy_code, `status`, member_id, station_id, plate_number, order_code, transaction_code, start_time,
|
||||||
end_time, pay_status, order_amount, pile_sn, connector_code, pile_connector_code,
|
end_time, pay_status, order_amount, pile_sn, connector_code, pile_connector_code,
|
||||||
create_time, create_by, update_time, update_by, del_flag)
|
create_time, create_by, update_time, update_by, del_flag)
|
||||||
values
|
values
|
||||||
<foreach collection="list" item="item" separator=",">
|
<foreach collection="list" item="item" separator=",">
|
||||||
(#{item.occupyCode,jdbcType=VARCHAR}, #{item.status,jdbcType=CHAR}, #{item.memberId,jdbcType=VARCHAR},
|
(#{item.occupyCode,jdbcType=VARCHAR}, #{item.status,jdbcType=CHAR}, #{item.memberId,jdbcType=VARCHAR},
|
||||||
#{item.stationId,jdbcType=VARCHAR}, #{item.orderCode,jdbcType=VARCHAR},
|
#{item.stationId,jdbcType=VARCHAR}, #{item.plateNumber,jdbcType=VARCHAR}, #{item.orderCode,jdbcType=VARCHAR},
|
||||||
#{item.transactionCode,jdbcType=VARCHAR},
|
#{item.transactionCode,jdbcType=VARCHAR},
|
||||||
#{item.startTime,jdbcType=TIMESTAMP}, #{item.endTime,jdbcType=TIMESTAMP},
|
#{item.startTime,jdbcType=TIMESTAMP}, #{item.endTime,jdbcType=TIMESTAMP},
|
||||||
#{item.payStatus,jdbcType=VARCHAR},
|
#{item.payStatus,jdbcType=VARCHAR},
|
||||||
@@ -545,6 +569,7 @@
|
|||||||
`status`,
|
`status`,
|
||||||
member_id,
|
member_id,
|
||||||
station_id,
|
station_id,
|
||||||
|
plate_number,
|
||||||
order_code,
|
order_code,
|
||||||
transaction_code,
|
transaction_code,
|
||||||
start_time,
|
start_time,
|
||||||
@@ -569,6 +594,7 @@
|
|||||||
#{status,jdbcType=CHAR},
|
#{status,jdbcType=CHAR},
|
||||||
#{memberId,jdbcType=VARCHAR},
|
#{memberId,jdbcType=VARCHAR},
|
||||||
#{stationId,jdbcType=VARCHAR},
|
#{stationId,jdbcType=VARCHAR},
|
||||||
|
#{plateNumber,jdbcType=VARCHAR},
|
||||||
#{orderCode,jdbcType=VARCHAR},
|
#{orderCode,jdbcType=VARCHAR},
|
||||||
#{transactionCode,jdbcType=VARCHAR},
|
#{transactionCode,jdbcType=VARCHAR},
|
||||||
#{startTime,jdbcType=TIMESTAMP},
|
#{startTime,jdbcType=TIMESTAMP},
|
||||||
@@ -593,6 +619,7 @@
|
|||||||
`status` = #{status,jdbcType=CHAR},
|
`status` = #{status,jdbcType=CHAR},
|
||||||
member_id = #{memberId,jdbcType=VARCHAR},
|
member_id = #{memberId,jdbcType=VARCHAR},
|
||||||
station_id = #{stationId,jdbcType=VARCHAR},
|
station_id = #{stationId,jdbcType=VARCHAR},
|
||||||
|
plate_number = #{plateNumber,jdbcType=VARCHAR},
|
||||||
order_code = #{orderCode,jdbcType=VARCHAR},
|
order_code = #{orderCode,jdbcType=VARCHAR},
|
||||||
transaction_code = #{transactionCode,jdbcType=VARCHAR},
|
transaction_code = #{transactionCode,jdbcType=VARCHAR},
|
||||||
start_time = #{startTime,jdbcType=TIMESTAMP},
|
start_time = #{startTime,jdbcType=TIMESTAMP},
|
||||||
@@ -629,6 +656,9 @@
|
|||||||
<if test="stationId != null">
|
<if test="stationId != null">
|
||||||
station_id,
|
station_id,
|
||||||
</if>
|
</if>
|
||||||
|
<if test="plateNumber != null">
|
||||||
|
plate_number,
|
||||||
|
</if>
|
||||||
<if test="orderCode != null">
|
<if test="orderCode != null">
|
||||||
order_code,
|
order_code,
|
||||||
</if>
|
</if>
|
||||||
@@ -689,6 +719,9 @@
|
|||||||
<if test="stationId != null">
|
<if test="stationId != null">
|
||||||
#{stationId,jdbcType=VARCHAR},
|
#{stationId,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="plateNumber != null">
|
||||||
|
#{plateNumber,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
<if test="orderCode != null">
|
<if test="orderCode != null">
|
||||||
#{orderCode,jdbcType=VARCHAR},
|
#{orderCode,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
@@ -749,6 +782,9 @@
|
|||||||
<if test="stationId != null">
|
<if test="stationId != null">
|
||||||
station_id = #{stationId,jdbcType=VARCHAR},
|
station_id = #{stationId,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="plateNumber != null">
|
||||||
|
plate_number = #{plateNumber,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
<if test="orderCode != null">
|
<if test="orderCode != null">
|
||||||
order_code = #{orderCode,jdbcType=VARCHAR},
|
order_code = #{orderCode,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
|||||||
Reference in New Issue
Block a user