完成了新增桩字段到数据库,

完成了从数据库中查询桩字段
This commit is contained in:
wen 2021-09-27 15:15:42 +08:00
parent 00c25cb7e5
commit 24a7981f5b
3 changed files with 96 additions and 65 deletions

View File

@ -63,7 +63,11 @@
update_by,
remark,
rate_model_id,
brand_model
brand_model,
production_date productionDate,
manufacture_name manufactureName,
connector_type connectorType,
current
from xhpc_charging_pile
</sql>
<select id="selectXhpcChargingPileList" resultType="java.util.Map">
@ -179,7 +183,19 @@
remark,
</if>
<if test="null != brandModel ">
brand_model
brand_model,
</if>
<if test="null != productionDate ">
production_date,
</if>
<if test="null != manufactureName ">
manufacture_name,
</if>
<if test="null != connectorType ">
connector_type,
</if>
<if test="null != current ">
current
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
@ -262,7 +278,19 @@
#{remark},
</if>
<if test="null != brandModel ">
#{brandModel}
#{brandModel},
</if>
<if test="null != productionDate ">
#{productionDate},
</if>
<if test="null != manufactureName ">
#{manufactureName},
</if>
<if test="null != connectorType ">
#{connectorType},
</if>
<if test="null != current ">
#{current}
</if>
</trim>
</insert>
@ -310,8 +338,12 @@
<if test="createBy != null">create_by = #{createBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="remark != null">remark = #{remark}</if>
<if test="brandModel != null">brand_model = #{brandModel}</if>
<if test="remark != null">remark = #{remark},</if>
<if test="brandModel != null">brand_model = #{brandModel},</if>
<if test="productionDate != null">production_date = #{productionDate},</if>
<if test="manufactureName != null">manufacture_name = #{manufactureName},</if>
<if test="connectorType != null">connector_type = #{connectorType},</if>
<if test="current != null">current = #{current},</if>
</trim>
where charging_pile_id = #{chargingPileId}
</update>

View File

@ -57,6 +57,65 @@ public class XhpcChargingPile extends BaseEntity {
private Integer delFlag;
/** 计费模型id */
private Long rateModelId;
/**
* 设备生产日期格式YYYY-MM-DD
*/
private String productionDate;
/**
* 设备生产商名称
*/
private String manufactureName;
/**
* 充电设备接口类型
*/
private Integer connectorType;
/**
* 额定电流单位A
*/
private Integer current;
public String getManufactureName() {
return manufactureName;
}
public void setManufactureName(String manufactureName) {
this.manufactureName = manufactureName;
}
public String getProductionDate() {
return productionDate;
}
public void setProductionDate(String productionDate) {
this.productionDate = productionDate;
}
public Integer getConnectorType() {
return connectorType;
}
public void setConnectorType(Integer connectorType) {
this.connectorType = connectorType;
}
public Integer getCurrent() {
return current;
}
public void setCurrent(Integer current) {
this.current = current;
}
public Long getChargingPileId() {

View File

@ -105,66 +105,6 @@ public class XhpcChargingStation extends BaseEntity {
*/
private String operatorIdEvcs;
/**
* 设备生产日期格式YYYY-MM-DD
*/
private String productionDate;
/**
* 设备生产商名称
*/
private String manufactrureName;
/**
* 充电设备接口类型
*/
private Integer connectorType;
/**
* 额定电流单位A
*/
private Integer current;
public String getProductionDate() {
return productionDate;
}
public void setProductionDate(String productionDate) {
this.productionDate = productionDate;
}
public String getManufactrureName() {
return manufactrureName;
}
public void setManufactrureName(String manufactrureName) {
this.manufactrureName = manufactrureName;
}
public Integer getConnectorType() {
return connectorType;
}
public void setConnectorType(Integer connectorType) {
this.connectorType = connectorType;
}
public Integer getCurrent() {
return current;
}
public void setCurrent(Integer current) {
this.current = current;
}
public String getOperatorIdEvcs() {
return operatorIdEvcs;