mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 19:15:35 +08:00
update 预约充电
This commit is contained in:
@@ -32,7 +32,8 @@
|
||||
<result column="charge_start_time" jdbcType="TIMESTAMP" property="chargeStartTime" />
|
||||
<result column="charge_end_time" jdbcType="TIMESTAMP" property="chargeEndTime" />
|
||||
<result column="start_type" jdbcType="VARCHAR" property="startType" />
|
||||
<result column="appointment_time" jdbcType="TIMESTAMP" property="appointmentTime" />
|
||||
<result column="reserved_start_time" jdbcType="TIMESTAMP" property="reservedStartTime" />
|
||||
<result column="reserved_end_time" jdbcType="TIMESTAMP" property="reservedEndTime" />
|
||||
<result column="start_soc" jdbcType="VARCHAR" property="startSoc" />
|
||||
<result column="end_soc" jdbcType="VARCHAR" property="endSoc" />
|
||||
<result column="reason" jdbcType="VARCHAR" property="reason" />
|
||||
@@ -51,7 +52,7 @@
|
||||
pile_sn, connector_code, pile_connector_code, logic_card, vin_code, start_mode, third_party_type,
|
||||
pay_mode, pay_status, pay_amount, pay_time, plate_number, order_amount, virtual_amount,
|
||||
group_code, discount_amount, settle_amount, remedial_amount, charge_start_time, charge_end_time,
|
||||
start_type, appointment_time, start_soc, end_soc, reason, settlement_time, refund_amount,
|
||||
start_type, reserved_start_time, reserved_end_time, start_soc, end_soc, reason, settlement_time, refund_amount,
|
||||
refund_status, create_by, create_time, update_by, update_time, del_flag
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
@@ -76,8 +77,9 @@
|
||||
pay_amount, pay_time, plate_number,
|
||||
order_amount, virtual_amount, group_code,
|
||||
discount_amount, settle_amount, remedial_amount,
|
||||
charge_start_time, charge_end_time, start_type,
|
||||
appointment_time, start_soc, end_soc,
|
||||
charge_start_time, charge_end_time, start_type,
|
||||
reserved_start_time, reserved_end_time,
|
||||
start_soc, end_soc,
|
||||
reason, settlement_time, refund_amount,
|
||||
refund_status, create_by, create_time,
|
||||
update_by, update_time, del_flag
|
||||
@@ -90,8 +92,9 @@
|
||||
#{payAmount,jdbcType=DECIMAL}, #{payTime,jdbcType=TIMESTAMP}, #{plateNumber,jdbcType=VARCHAR},
|
||||
#{orderAmount,jdbcType=DECIMAL}, #{virtualAmount,jdbcType=DECIMAL}, #{groupCode,jdbcType=VARCHAR},
|
||||
#{discountAmount,jdbcType=DECIMAL}, #{settleAmount,jdbcType=DECIMAL}, #{remedialAmount,jdbcType=DECIMAL},
|
||||
#{chargeStartTime,jdbcType=TIMESTAMP}, #{chargeEndTime,jdbcType=TIMESTAMP}, #{startType,jdbcType=VARCHAR},
|
||||
#{appointmentTime,jdbcType=TIMESTAMP}, #{startSoc,jdbcType=VARCHAR}, #{endSoc,jdbcType=VARCHAR},
|
||||
#{chargeStartTime,jdbcType=TIMESTAMP}, #{chargeEndTime,jdbcType=TIMESTAMP}, #{startType,jdbcType=VARCHAR},
|
||||
#{reservedStartTime,jdbcType=TIMESTAMP},#{reservedEndTime,jdbcType=TIMESTAMP},
|
||||
#{startSoc,jdbcType=VARCHAR}, #{endSoc,jdbcType=VARCHAR},
|
||||
#{reason,jdbcType=VARCHAR}, #{settlementTime,jdbcType=TIMESTAMP}, #{refundAmount,jdbcType=DECIMAL},
|
||||
#{refundStatus,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
||||
#{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=CHAR}
|
||||
@@ -182,8 +185,11 @@
|
||||
<if test="startType != null">
|
||||
start_type,
|
||||
</if>
|
||||
<if test="appointmentTime != null">
|
||||
appointment_time,
|
||||
<if test="reservedStartTime != null">
|
||||
reserved_start_time,
|
||||
</if>
|
||||
<if test="reservedEndTime != null">
|
||||
reserved_end_time,
|
||||
</if>
|
||||
<if test="startSoc != null">
|
||||
start_soc,
|
||||
@@ -301,8 +307,11 @@
|
||||
<if test="startType != null">
|
||||
#{startType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="appointmentTime != null">
|
||||
#{appointmentTime,jdbcType=TIMESTAMP},
|
||||
<if test="reservedStartTime != null">
|
||||
#{reservedStartTime},
|
||||
</if>
|
||||
<if test="reservedEndTime != null">
|
||||
#{reservedEndTime},
|
||||
</if>
|
||||
<if test="startSoc != null">
|
||||
#{startSoc,jdbcType=VARCHAR},
|
||||
@@ -424,8 +433,11 @@
|
||||
<if test="startType != null">
|
||||
start_type = #{startType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="appointmentTime != null">
|
||||
appointment_time = #{appointmentTime,jdbcType=TIMESTAMP},
|
||||
<if test="reservedStartTime != null">
|
||||
reserved_start_time = #{reservedStartTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="reservedEndTime != null">
|
||||
reserved_end_time = #{reservedEndTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="startSoc != null">
|
||||
start_soc = #{startSoc,jdbcType=VARCHAR},
|
||||
@@ -493,7 +505,8 @@
|
||||
charge_start_time = #{chargeStartTime,jdbcType=TIMESTAMP},
|
||||
charge_end_time = #{chargeEndTime,jdbcType=TIMESTAMP},
|
||||
start_type = #{startType,jdbcType=VARCHAR},
|
||||
appointment_time = #{appointmentTime,jdbcType=TIMESTAMP},
|
||||
reserved_start_time = #{reservedStartTime,jdbcType=TIMESTAMP},
|
||||
reserved_end_time = #{reservedEndTime,jdbcType=TIMESTAMP},
|
||||
start_soc = #{startSoc,jdbcType=VARCHAR},
|
||||
end_soc = #{endSoc,jdbcType=VARCHAR},
|
||||
reason = #{reason,jdbcType=VARCHAR},
|
||||
@@ -646,9 +659,14 @@
|
||||
when id = #{item.id,jdbcType=INTEGER} then #{item.startType,jdbcType=VARCHAR}
|
||||
</foreach>
|
||||
</trim>
|
||||
<trim prefix="appointment_time = case" suffix="end,">
|
||||
<trim prefix="reserved_start_time = case" suffix="end,">
|
||||
<foreach collection="list" index="index" item="item">
|
||||
when id = #{item.id,jdbcType=INTEGER} then #{item.appointmentTime,jdbcType=TIMESTAMP}
|
||||
when id = #{item.id,jdbcType=INTEGER} then #{item.reservedStartTime,jdbcType=TIMESTAMP}
|
||||
</foreach>
|
||||
</trim>
|
||||
<trim prefix="reserved_end_time = case" suffix="end,">
|
||||
<foreach collection="list" index="index" item="item">
|
||||
when id = #{item.id,jdbcType=INTEGER} then #{item.reservedEndTime,jdbcType=TIMESTAMP}
|
||||
</foreach>
|
||||
</trim>
|
||||
<trim prefix="start_soc = case" suffix="end,">
|
||||
@@ -905,10 +923,17 @@
|
||||
</if>
|
||||
</foreach>
|
||||
</trim>
|
||||
<trim prefix="appointment_time = case" suffix="end,">
|
||||
<trim prefix="reserved_start_time = case" suffix="end,">
|
||||
<foreach collection="list" index="index" item="item">
|
||||
<if test="item.appointmentTime != null">
|
||||
when id = #{item.id,jdbcType=INTEGER} then #{item.appointmentTime,jdbcType=TIMESTAMP}
|
||||
<if test="item.reservedStartTime != null">
|
||||
when id = #{item.id,jdbcType=INTEGER} then #{item.reservedStartTime,jdbcType=TIMESTAMP}
|
||||
</if>
|
||||
</foreach>
|
||||
</trim>
|
||||
<trim prefix="reserved_end_time = case" suffix="end,">
|
||||
<foreach collection="list" index="index" item="item">
|
||||
<if test="item.reservedEndTime != null">
|
||||
when id = #{item.id,jdbcType=INTEGER} then #{item.reservedEndTime,jdbcType=TIMESTAMP}
|
||||
</if>
|
||||
</foreach>
|
||||
</trim>
|
||||
@@ -1002,7 +1027,7 @@
|
||||
pile_sn, connector_code, pile_connector_code, logic_card, vin_code, start_mode,
|
||||
third_party_type, pay_mode, pay_status, pay_amount, pay_time, plate_number, order_amount,
|
||||
virtual_amount, group_code, discount_amount, settle_amount, remedial_amount, charge_start_time,
|
||||
charge_end_time, start_type, appointment_time, start_soc, end_soc, reason, settlement_time,
|
||||
charge_end_time, start_type, reserved_start_time, reserved_end_time, start_soc, end_soc, reason, settlement_time,
|
||||
refund_amount, refund_status, create_by, create_time, update_by, update_time, del_flag
|
||||
)
|
||||
values
|
||||
@@ -1016,7 +1041,8 @@
|
||||
#{item.orderAmount,jdbcType=DECIMAL}, #{item.virtualAmount,jdbcType=DECIMAL}, #{item.groupCode,jdbcType=VARCHAR},
|
||||
#{item.discountAmount,jdbcType=DECIMAL}, #{item.settleAmount,jdbcType=DECIMAL},
|
||||
#{item.remedialAmount,jdbcType=DECIMAL}, #{item.chargeStartTime,jdbcType=TIMESTAMP},
|
||||
#{item.chargeEndTime,jdbcType=TIMESTAMP}, #{item.startType,jdbcType=VARCHAR}, #{item.appointmentTime,jdbcType=TIMESTAMP},
|
||||
#{item.chargeEndTime,jdbcType=TIMESTAMP}, #{item.startType,jdbcType=VARCHAR}, #{item.reservedStartTime,jdbcType=TIMESTAMP},
|
||||
#{item.reservedEndTime,jdbcType=TIMESTAMP},
|
||||
#{item.startSoc,jdbcType=VARCHAR}, #{item.endSoc,jdbcType=VARCHAR}, #{item.reason,jdbcType=VARCHAR},
|
||||
#{item.settlementTime,jdbcType=TIMESTAMP}, #{item.refundAmount,jdbcType=DECIMAL},
|
||||
#{item.refundStatus,jdbcType=VARCHAR}, #{item.createBy,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP},
|
||||
@@ -1058,7 +1084,8 @@
|
||||
charge_start_time,
|
||||
charge_end_time,
|
||||
start_type,
|
||||
appointment_time,
|
||||
reserved_start_time,
|
||||
reserved_end_time,
|
||||
start_soc,
|
||||
end_soc,
|
||||
reason,
|
||||
@@ -1103,7 +1130,8 @@
|
||||
#{chargeStartTime,jdbcType=TIMESTAMP},
|
||||
#{chargeEndTime,jdbcType=TIMESTAMP},
|
||||
#{startType,jdbcType=VARCHAR},
|
||||
#{appointmentTime,jdbcType=TIMESTAMP},
|
||||
#{reservedStartTime,jdbcType=TIMESTAMP},
|
||||
#{reservedEndTime,jdbcType=TIMESTAMP},
|
||||
#{startSoc,jdbcType=VARCHAR},
|
||||
#{endSoc,jdbcType=VARCHAR},
|
||||
#{reason,jdbcType=VARCHAR},
|
||||
@@ -1148,7 +1176,8 @@
|
||||
charge_start_time = #{chargeStartTime,jdbcType=TIMESTAMP},
|
||||
charge_end_time = #{chargeEndTime,jdbcType=TIMESTAMP},
|
||||
start_type = #{startType,jdbcType=VARCHAR},
|
||||
appointment_time = #{appointmentTime,jdbcType=TIMESTAMP},
|
||||
reserved_start_time = #{reservedStartTime,jdbcType=TIMESTAMP},
|
||||
reserved_end_time = #{reservedEndTime,jdbcType=TIMESTAMP},
|
||||
start_soc = #{startSoc,jdbcType=VARCHAR},
|
||||
end_soc = #{endSoc,jdbcType=VARCHAR},
|
||||
reason = #{reason,jdbcType=VARCHAR},
|
||||
@@ -1250,8 +1279,11 @@
|
||||
<if test="startType != null">
|
||||
start_type,
|
||||
</if>
|
||||
<if test="appointmentTime != null">
|
||||
appointment_time,
|
||||
<if test="reservedStartTime != null">
|
||||
reserved_start_time,
|
||||
</if>
|
||||
<if test="reservedEndTime != null">
|
||||
reserved_end_time,
|
||||
</if>
|
||||
<if test="startSoc != null">
|
||||
start_soc,
|
||||
@@ -1373,8 +1405,11 @@
|
||||
<if test="startType != null">
|
||||
#{startType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="appointmentTime != null">
|
||||
#{appointmentTime,jdbcType=TIMESTAMP},
|
||||
<if test="reservedStartTime != null">
|
||||
#{reservedStartTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="reservedEndTime != null">
|
||||
#{reservedEndTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="startSoc != null">
|
||||
#{startSoc,jdbcType=VARCHAR},
|
||||
@@ -1496,8 +1531,11 @@
|
||||
<if test="startType != null">
|
||||
start_type = #{startType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="appointmentTime != null">
|
||||
appointment_time = #{appointmentTime,jdbcType=TIMESTAMP},
|
||||
<if test="reservedStartTime != null">
|
||||
reserved_start_time = #{reservedStartTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="reservedEndTime != null">
|
||||
reserved_end_time = #{reservedEndTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="startSoc != null">
|
||||
start_soc = #{startSoc,jdbcType=VARCHAR},
|
||||
@@ -1856,9 +1894,9 @@
|
||||
<if test="startMode != null">
|
||||
start_mode,
|
||||
</if>
|
||||
<if test="thirdPartyType != null">
|
||||
third_party_type,
|
||||
</if>
|
||||
<if test="thirdPartyType != null">
|
||||
third_party_type,
|
||||
</if>
|
||||
<if test="payMode != null">
|
||||
pay_mode,
|
||||
</if>
|
||||
@@ -1892,8 +1930,11 @@
|
||||
<if test="startType != null">
|
||||
start_type,
|
||||
</if>
|
||||
<if test="appointmentTime != null">
|
||||
appointment_time,
|
||||
<if test="reservedStartTime != null">
|
||||
reserved_start_time,
|
||||
</if>
|
||||
<if test="reservedEndTime != null">
|
||||
reserved_end_time,
|
||||
</if>
|
||||
<if test="startSoc != null">
|
||||
start_soc,
|
||||
@@ -1963,9 +2004,9 @@
|
||||
<if test="startMode != null">
|
||||
#{startMode},
|
||||
</if>
|
||||
<if test="thirdPartyType != null">
|
||||
#{thirdPartyType},
|
||||
</if>
|
||||
<if test="thirdPartyType != null">
|
||||
#{thirdPartyType},
|
||||
</if>
|
||||
<if test="payMode != null">
|
||||
#{payMode},
|
||||
</if>
|
||||
@@ -1999,8 +2040,11 @@
|
||||
<if test="startType != null">
|
||||
#{startType},
|
||||
</if>
|
||||
<if test="appointmentTime != null">
|
||||
#{appointmentTime},
|
||||
<if test="reservedStartTime != null">
|
||||
#{reservedStartTime},
|
||||
</if>
|
||||
<if test="reservedEndTime != null">
|
||||
#{reservedEndTime},
|
||||
</if>
|
||||
<if test="startSoc != null">
|
||||
#{startSoc},
|
||||
@@ -2113,9 +2157,6 @@
|
||||
<if test="startType != null">
|
||||
start_type = #{startType},
|
||||
</if>
|
||||
<if test="appointmentTime != null">
|
||||
appointment_time = #{appointmentTime},
|
||||
</if>
|
||||
<if test="startSoc != null">
|
||||
start_soc = #{startSoc},
|
||||
</if>
|
||||
@@ -2511,17 +2552,6 @@
|
||||
AND t1.del_flag = '0'
|
||||
</select>
|
||||
|
||||
<select id="getAppointmentOrder" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from order_basic_info
|
||||
where del_flag = '0'
|
||||
and pay_status = '1'
|
||||
and start_type = 'appointment'
|
||||
and order_status = '0'
|
||||
and appointment_time <![CDATA[ <= ]]> #{dateTime,jdbcType=TIMESTAMP}
|
||||
</select>
|
||||
|
||||
<select id="getListByOrderCodes" resultType="com.jsowell.pile.vo.uniapp.OrderVO">
|
||||
SELECT t1.order_code as orderCode,
|
||||
t1.order_status as orderStatus,
|
||||
@@ -2842,4 +2872,15 @@
|
||||
AND
|
||||
t1.order_code = #{orderCode,jdbcType=VARCHAR}
|
||||
</select>
|
||||
|
||||
<select id="getReservedOrder" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from order_basic_info
|
||||
where del_flag = '0'
|
||||
and pay_status = '1'
|
||||
and start_type = 'reserved'
|
||||
and order_status = '0'
|
||||
and order_basic_info.reserved_start_time <![CDATA[ <= ]]> #{dateTime,jdbcType=TIMESTAMP}
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user