mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-13 11:49:49 +08:00
update 预约充电
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
package com.jsowell.pile.domain;
|
package com.jsowell.pile.domain;
|
||||||
|
|
||||||
import java.sql.Time;
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
||||||
import lombok.experimental.Accessors;
|
import lombok.experimental.Accessors;
|
||||||
@@ -14,6 +14,7 @@ import lombok.experimental.SuperBuilder;
|
|||||||
@Data
|
@Data
|
||||||
@Accessors(chain = true)
|
@Accessors(chain = true)
|
||||||
@SuperBuilder
|
@SuperBuilder
|
||||||
|
@Builder
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
public class PileReservationInfo {
|
public class PileReservationInfo {
|
||||||
|
|||||||
@@ -22,8 +22,8 @@
|
|||||||
</resultMap>
|
</resultMap>
|
||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
<!--@mbg.generated-->
|
<!--@mbg.generated-->
|
||||||
id, member_id, pile_sn, pile_connector_code, `status`, reservation_type, verify_identity, start_time,
|
id, member_id, pile_sn, pile_connector_code, `status`, reservation_type, verify_identity,
|
||||||
end_time, freq, create_by, create_time, update_by, update_time, del_flag
|
start_time, end_time, freq, create_by, create_time, update_by, update_time, del_flag
|
||||||
</sql>
|
</sql>
|
||||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||||
<!--@mbg.generated-->
|
<!--@mbg.generated-->
|
||||||
@@ -40,13 +40,15 @@
|
|||||||
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.jsowell.pile.domain.PileReservationInfo" useGeneratedKeys="true">
|
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.jsowell.pile.domain.PileReservationInfo" useGeneratedKeys="true">
|
||||||
<!--@mbg.generated-->
|
<!--@mbg.generated-->
|
||||||
insert into pile_reservation_info (member_id, pile_sn, pile_connector_code,
|
insert into pile_reservation_info (member_id, pile_sn, pile_connector_code,
|
||||||
`status`, reservation_type, verify_identity, start_time, end_time, freq, create_by,
|
`status`, reservation_type, verify_identity,
|
||||||
create_time, update_by, update_time, del_flag)
|
start_time, end_time, freq,
|
||||||
|
create_by, create_time, update_by,
|
||||||
|
update_time, del_flag)
|
||||||
values (#{memberId,jdbcType=VARCHAR}, #{pileSn,jdbcType=VARCHAR}, #{pileConnectorCode,jdbcType=VARCHAR},
|
values (#{memberId,jdbcType=VARCHAR}, #{pileSn,jdbcType=VARCHAR}, #{pileConnectorCode,jdbcType=VARCHAR},
|
||||||
#{status,jdbcType=VARCHAR}, #{reservationType,jdbcType=VARCHAR}, #{verifyIdentity,jdbcType=VARCHAR}, #{startTime,jdbcType=TIME},
|
#{status,jdbcType=VARCHAR}, #{reservationType,jdbcType=VARCHAR}, #{verifyIdentity,jdbcType=VARCHAR},
|
||||||
#{endTime,jdbcType=TIME}, #{freq,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR},
|
#{startTime,jdbcType=TIME}, #{endTime,jdbcType=TIME}, #{freq,jdbcType=VARCHAR},
|
||||||
#{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR},
|
||||||
#{delFlag,jdbcType=CHAR})
|
#{updateTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=CHAR})
|
||||||
</insert>
|
</insert>
|
||||||
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.jsowell.pile.domain.PileReservationInfo" useGeneratedKeys="true">
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.jsowell.pile.domain.PileReservationInfo" useGeneratedKeys="true">
|
||||||
<!--@mbg.generated-->
|
<!--@mbg.generated-->
|
||||||
@@ -67,6 +69,9 @@
|
|||||||
<if test="reservationType != null">
|
<if test="reservationType != null">
|
||||||
reservation_type,
|
reservation_type,
|
||||||
</if>
|
</if>
|
||||||
|
<if test="verifyIdentity != null">
|
||||||
|
verify_identity,
|
||||||
|
</if>
|
||||||
<if test="startTime != null">
|
<if test="startTime != null">
|
||||||
start_time,
|
start_time,
|
||||||
</if>
|
</if>
|
||||||
@@ -108,6 +113,9 @@
|
|||||||
<if test="reservationType != null">
|
<if test="reservationType != null">
|
||||||
#{reservationType,jdbcType=VARCHAR},
|
#{reservationType,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="verifyIdentity != null">
|
||||||
|
#{verifyIdentity,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
<if test="startTime != null">
|
<if test="startTime != null">
|
||||||
#{startTime,jdbcType=TIME},
|
#{startTime,jdbcType=TIME},
|
||||||
</if>
|
</if>
|
||||||
@@ -153,6 +161,9 @@
|
|||||||
<if test="reservationType != null">
|
<if test="reservationType != null">
|
||||||
reservation_type = #{reservationType,jdbcType=VARCHAR},
|
reservation_type = #{reservationType,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="verifyIdentity != null">
|
||||||
|
verify_identity = #{verifyIdentity,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
<if test="startTime != null">
|
<if test="startTime != null">
|
||||||
start_time = #{startTime,jdbcType=TIME},
|
start_time = #{startTime,jdbcType=TIME},
|
||||||
</if>
|
</if>
|
||||||
@@ -188,6 +199,7 @@
|
|||||||
pile_connector_code = #{pileConnectorCode,jdbcType=VARCHAR},
|
pile_connector_code = #{pileConnectorCode,jdbcType=VARCHAR},
|
||||||
`status` = #{status,jdbcType=VARCHAR},
|
`status` = #{status,jdbcType=VARCHAR},
|
||||||
reservation_type = #{reservationType,jdbcType=VARCHAR},
|
reservation_type = #{reservationType,jdbcType=VARCHAR},
|
||||||
|
verify_identity = #{verifyIdentity,jdbcType=VARCHAR},
|
||||||
start_time = #{startTime,jdbcType=TIME},
|
start_time = #{startTime,jdbcType=TIME},
|
||||||
end_time = #{endTime,jdbcType=TIME},
|
end_time = #{endTime,jdbcType=TIME},
|
||||||
freq = #{freq,jdbcType=VARCHAR},
|
freq = #{freq,jdbcType=VARCHAR},
|
||||||
@@ -227,6 +239,11 @@
|
|||||||
when id = #{item.id,jdbcType=INTEGER} then #{item.reservationType,jdbcType=VARCHAR}
|
when id = #{item.id,jdbcType=INTEGER} then #{item.reservationType,jdbcType=VARCHAR}
|
||||||
</foreach>
|
</foreach>
|
||||||
</trim>
|
</trim>
|
||||||
|
<trim prefix="verify_identity = case" suffix="end,">
|
||||||
|
<foreach collection="list" index="index" item="item">
|
||||||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.verifyIdentity,jdbcType=VARCHAR}
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
<trim prefix="start_time = case" suffix="end,">
|
<trim prefix="start_time = 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.startTime,jdbcType=TIME}
|
when id = #{item.id,jdbcType=INTEGER} then #{item.startTime,jdbcType=TIME}
|
||||||
@@ -312,6 +329,13 @@
|
|||||||
</if>
|
</if>
|
||||||
</foreach>
|
</foreach>
|
||||||
</trim>
|
</trim>
|
||||||
|
<trim prefix="verify_identity = case" suffix="end,">
|
||||||
|
<foreach collection="list" index="index" item="item">
|
||||||
|
<if test="item.verifyIdentity != null">
|
||||||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.verifyIdentity,jdbcType=VARCHAR}
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
<trim prefix="start_time = case" suffix="end,">
|
<trim prefix="start_time = case" suffix="end,">
|
||||||
<foreach collection="list" index="index" item="item">
|
<foreach collection="list" index="index" item="item">
|
||||||
<if test="item.startTime != null">
|
<if test="item.startTime != null">
|
||||||
@@ -377,15 +401,16 @@
|
|||||||
<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 pile_reservation_info
|
insert into pile_reservation_info
|
||||||
(member_id, pile_sn, pile_connector_code, `status`, reservation_type, start_time, end_time,
|
(member_id, pile_sn, pile_connector_code, `status`, reservation_type, verify_identity,
|
||||||
freq, create_by, create_time, update_by, update_time, del_flag)
|
start_time, end_time, freq, create_by, create_time, update_by, update_time, del_flag
|
||||||
|
)
|
||||||
values
|
values
|
||||||
<foreach collection="list" item="item" separator=",">
|
<foreach collection="list" item="item" separator=",">
|
||||||
(#{item.memberId,jdbcType=VARCHAR}, #{item.pileSn,jdbcType=VARCHAR}, #{item.pileConnectorCode,jdbcType=VARCHAR},
|
(#{item.memberId,jdbcType=VARCHAR}, #{item.pileSn,jdbcType=VARCHAR}, #{item.pileConnectorCode,jdbcType=VARCHAR},
|
||||||
#{item.status,jdbcType=VARCHAR}, #{item.reservationType,jdbcType=VARCHAR}, #{item.startTime,jdbcType=TIME},
|
#{item.status,jdbcType=VARCHAR}, #{item.reservationType,jdbcType=VARCHAR}, #{item.verifyIdentity,jdbcType=VARCHAR},
|
||||||
#{item.endTime,jdbcType=TIME}, #{item.freq,jdbcType=VARCHAR}, #{item.createBy,jdbcType=VARCHAR},
|
#{item.startTime,jdbcType=TIME}, #{item.endTime,jdbcType=TIME}, #{item.freq,jdbcType=VARCHAR},
|
||||||
#{item.createTime,jdbcType=TIMESTAMP}, #{item.updateBy,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP},
|
#{item.createBy,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateBy,jdbcType=VARCHAR},
|
||||||
#{item.delFlag,jdbcType=CHAR})
|
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.delFlag,jdbcType=CHAR})
|
||||||
</foreach>
|
</foreach>
|
||||||
</insert>
|
</insert>
|
||||||
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id" parameterType="com.jsowell.pile.domain.PileReservationInfo" useGeneratedKeys="true">
|
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id" parameterType="com.jsowell.pile.domain.PileReservationInfo" useGeneratedKeys="true">
|
||||||
@@ -400,6 +425,7 @@
|
|||||||
pile_connector_code,
|
pile_connector_code,
|
||||||
`status`,
|
`status`,
|
||||||
reservation_type,
|
reservation_type,
|
||||||
|
verify_identity,
|
||||||
start_time,
|
start_time,
|
||||||
end_time,
|
end_time,
|
||||||
freq,
|
freq,
|
||||||
@@ -419,6 +445,7 @@
|
|||||||
#{pileConnectorCode,jdbcType=VARCHAR},
|
#{pileConnectorCode,jdbcType=VARCHAR},
|
||||||
#{status,jdbcType=VARCHAR},
|
#{status,jdbcType=VARCHAR},
|
||||||
#{reservationType,jdbcType=VARCHAR},
|
#{reservationType,jdbcType=VARCHAR},
|
||||||
|
#{verifyIdentity,jdbcType=VARCHAR},
|
||||||
#{startTime,jdbcType=TIME},
|
#{startTime,jdbcType=TIME},
|
||||||
#{endTime,jdbcType=TIME},
|
#{endTime,jdbcType=TIME},
|
||||||
#{freq,jdbcType=VARCHAR},
|
#{freq,jdbcType=VARCHAR},
|
||||||
@@ -438,6 +465,7 @@
|
|||||||
pile_connector_code = #{pileConnectorCode,jdbcType=VARCHAR},
|
pile_connector_code = #{pileConnectorCode,jdbcType=VARCHAR},
|
||||||
`status` = #{status,jdbcType=VARCHAR},
|
`status` = #{status,jdbcType=VARCHAR},
|
||||||
reservation_type = #{reservationType,jdbcType=VARCHAR},
|
reservation_type = #{reservationType,jdbcType=VARCHAR},
|
||||||
|
verify_identity = #{verifyIdentity,jdbcType=VARCHAR},
|
||||||
start_time = #{startTime,jdbcType=TIME},
|
start_time = #{startTime,jdbcType=TIME},
|
||||||
end_time = #{endTime,jdbcType=TIME},
|
end_time = #{endTime,jdbcType=TIME},
|
||||||
freq = #{freq,jdbcType=VARCHAR},
|
freq = #{freq,jdbcType=VARCHAR},
|
||||||
@@ -470,6 +498,9 @@
|
|||||||
<if test="reservationType != null">
|
<if test="reservationType != null">
|
||||||
reservation_type,
|
reservation_type,
|
||||||
</if>
|
</if>
|
||||||
|
<if test="verifyIdentity != null">
|
||||||
|
verify_identity,
|
||||||
|
</if>
|
||||||
<if test="startTime != null">
|
<if test="startTime != null">
|
||||||
start_time,
|
start_time,
|
||||||
</if>
|
</if>
|
||||||
@@ -515,6 +546,9 @@
|
|||||||
<if test="reservationType != null">
|
<if test="reservationType != null">
|
||||||
#{reservationType,jdbcType=VARCHAR},
|
#{reservationType,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="verifyIdentity != null">
|
||||||
|
#{verifyIdentity,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
<if test="startTime != null">
|
<if test="startTime != null">
|
||||||
#{startTime,jdbcType=TIME},
|
#{startTime,jdbcType=TIME},
|
||||||
</if>
|
</if>
|
||||||
@@ -560,6 +594,9 @@
|
|||||||
<if test="reservationType != null">
|
<if test="reservationType != null">
|
||||||
reservation_type = #{reservationType,jdbcType=VARCHAR},
|
reservation_type = #{reservationType,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="verifyIdentity != null">
|
||||||
|
verify_identity = #{verifyIdentity,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
<if test="startTime != null">
|
<if test="startTime != null">
|
||||||
start_time = #{startTime,jdbcType=TIME},
|
start_time = #{startTime,jdbcType=TIME},
|
||||||
</if>
|
</if>
|
||||||
|
|||||||
Reference in New Issue
Block a user