订单主表加字段 启动类型 预约时间

This commit is contained in:
2023-03-24 15:55:54 +08:00
parent 6772cf3de0
commit a624d492ea
3 changed files with 68 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
package com.jsowell.common.enums.ykc;
/**
* 启动类型enum
*/
public enum StartTypeEnum {
NOW("now", "立即启动"),
APPOINTMENT("appointment", "预约启动"),
;
private String value;
private String label;
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public String getLabel() {
return label;
}
public void setLabel(String label) {
this.label = label;
}
StartTypeEnum(String value, String label) {
this.value = value;
this.label = label;
}
}

View File

@@ -130,6 +130,16 @@ public class OrderBasicInfo extends BaseEntity {
*/ */
private Date chargeEndTime; private Date chargeEndTime;
/**
* 启动类型
*/
private String startType;
/**
* 预约时间
*/
private Date appointmentTime;
/** /**
* 开始SOC * 开始SOC
*/ */

View File

@@ -21,6 +21,8 @@
<result property="orderAmount" column="order_amount"/> <result property="orderAmount" column="order_amount"/>
<result property="chargeStartTime" column="charge_start_time"/> <result property="chargeStartTime" column="charge_start_time"/>
<result property="chargeEndTime" column="charge_end_time"/> <result property="chargeEndTime" column="charge_end_time"/>
<result property="startType" column="start_type"/>
<result property="appointmentTime" column="appointment_time"/>
<result property="startSOC" column="start_soc"/> <result property="startSOC" column="start_soc"/>
<result property="endSOC" column="end_soc"/> <result property="endSOC" column="end_soc"/>
<result property="reason" column="reason"/> <result property="reason" column="reason"/>
@@ -96,6 +98,8 @@
order_amount, order_amount,
charge_start_time, charge_start_time,
charge_end_time, charge_end_time,
start_type,
appointment_time,
start_soc, start_soc,
end_soc, end_soc,
reason, reason,
@@ -316,6 +320,12 @@
<if test="chargeEndTime != null"> <if test="chargeEndTime != null">
charge_end_time, charge_end_time,
</if> </if>
<if test="startType != null">
start_type,
</if>
<if test="appointmentTime != null">
appointment_time,
</if>
<if test="startSOC != null"> <if test="startSOC != null">
start_soc, start_soc,
</if> </if>
@@ -396,6 +406,12 @@
<if test="chargeEndTime != null"> <if test="chargeEndTime != null">
#{chargeEndTime}, #{chargeEndTime},
</if> </if>
<if test="startType != null">
#{startType},
</if>
<if test="appointmentTime != null">
#{appointmentTime},
</if>
<if test="startSOC != null"> <if test="startSOC != null">
#{startSOC}, #{startSOC},
</if> </if>
@@ -477,6 +493,12 @@
<if test="chargeEndTime != null"> <if test="chargeEndTime != null">
charge_end_time = #{chargeEndTime}, charge_end_time = #{chargeEndTime},
</if> </if>
<if test="startType != null">
start_type = #{startType},
</if>
<if test="appointmentTime != null">
appointment_time = #{appointmentTime},
</if>
<if test="startSOC != null"> <if test="startSOC != null">
start_soc = #{startSOC}, start_soc = #{startSOC},
</if> </if>