完成充电桩的equipment字段的增、查、改

This commit is contained in:
wen 2021-09-28 17:45:54 +08:00
parent 1a9712de70
commit d4c18164ae
3 changed files with 28 additions and 5 deletions

View File

@ -101,7 +101,7 @@ public class XhpcChargingPileServiceImpl implements IXhpcChargingPileService {
// HashSet<String> noSet = new HashSet<>(); // HashSet<String> noSet = new HashSet<>();
// noSet.add(serialNumber); // noSet.add(serialNumber);
// powerPileService.addPileWhitelist(chargingStationId, noSet); // powerPileService.addPileWhitelist(chargingStationId, noSet);
return AjaxResult.success(); return AjaxResult.success(null);
} }
private void addXhpcTerminal(String name, Long chargingStationId, Long rateModelId, String serialNumber, Long chargingPileId, int i, int number) { private void addXhpcTerminal(String name, Long chargingStationId, Long rateModelId, String serialNumber, Long chargingPileId, int i, int number) {
@ -163,7 +163,7 @@ public class XhpcChargingPileServiceImpl implements IXhpcChargingPileService {
powerPileService.addPileWhitelist(chargingStationId, noSet); powerPileService.addPileWhitelist(chargingStationId, noSet);
} }
xhpcChargingPileMapper.updaeXhpcChargingPile(xhpcChargingPile); xhpcChargingPileMapper.updaeXhpcChargingPile(xhpcChargingPile);
return AjaxResult.success(); return AjaxResult.success(null);
} }
@Override @Override

View File

@ -67,7 +67,8 @@
production_date productionDate, production_date productionDate,
manufacture_name manufactureName, manufacture_name manufactureName,
connector_type connectorType, connector_type connectorType,
current current,
equipment_type equipmentType
from xhpc_charging_pile from xhpc_charging_pile
</sql> </sql>
<select id="selectXhpcChargingPileList" resultType="java.util.Map"> <select id="selectXhpcChargingPileList" resultType="java.util.Map">
@ -195,7 +196,10 @@
connector_type, connector_type,
</if> </if>
<if test="null != current "> <if test="null != current ">
current current,
</if>
<if test="null != equipmentType ">
equipment_type
</if> </if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
@ -290,7 +294,10 @@
#{connectorType}, #{connectorType},
</if> </if>
<if test="null != current "> <if test="null != current ">
#{current} #{current},
</if>
<if test="null != equipmentType ">
#{equipmentType}
</if> </if>
</trim> </trim>
</insert> </insert>
@ -344,6 +351,7 @@
<if test="manufactureName != null">manufacture_name = #{manufactureName},</if> <if test="manufactureName != null">manufacture_name = #{manufactureName},</if>
<if test="connectorType != null">connector_type = #{connectorType},</if> <if test="connectorType != null">connector_type = #{connectorType},</if>
<if test="current != null">current = #{current},</if> <if test="current != null">current = #{current},</if>
<if test="equipmentType!=null">equipment_type = #{equipmentType}</if>
</trim> </trim>
where charging_pile_id = #{chargingPileId} where charging_pile_id = #{chargingPileId}
</update> </update>

View File

@ -77,6 +77,21 @@ public class XhpcChargingPile extends BaseEntity {
*/ */
private Integer current; private Integer current;
/**
* 设备类型
*/
private Integer equipmentType;
public Integer getEquipmentType() {
return equipmentType;
}
public void setEquipmentType(Integer equipmentType) {
this.equipmentType = equipmentType;
}
public String getManufactureName() { public String getManufactureName() {
return manufactureName; return manufactureName;