枪口信息表添加 车位号 字段

This commit is contained in:
Lemon
2023-08-09 10:28:15 +08:00
parent ef49f16785
commit 4da4a76899
3 changed files with 22 additions and 2 deletions

View File

@@ -43,6 +43,11 @@ public class PileConnectorInfo extends BaseEntity {
@Excel(name = "状态") @Excel(name = "状态")
private String status; private String status;
/**
* 车位号
*/
private String parkNo;
/** /**
* 所属充电桩id * 所属充电桩id
*/ */
@@ -86,6 +91,14 @@ public class PileConnectorInfo extends BaseEntity {
return status; return status;
} }
public String getParkNo() {
return parkNo;
}
public void setParkNo(String parkNo) {
this.parkNo = parkNo;
}
public void setPileSn(String pileSn) { public void setPileSn(String pileSn) {
this.pileSn = pileSn; this.pileSn = pileSn;
} }
@@ -109,6 +122,7 @@ public class PileConnectorInfo extends BaseEntity {
.append("name", getName()) .append("name", getName())
.append("pileConnectorCode", getPileConnectorCode()) .append("pileConnectorCode", getPileConnectorCode())
.append("status", getStatus()) .append("status", getStatus())
.append("parkNo", getParkNo())
.append("pileId", getPileSn()) .append("pileId", getPileSn())
.append("createBy", getCreateBy()) .append("createBy", getCreateBy())
.append("createTime", getCreateTime()) .append("createTime", getCreateTime())

View File

@@ -9,6 +9,7 @@
<result property="name" column="name" /> <result property="name" column="name" />
<result property="pileConnectorCode" column="pile_connector_code" /> <result property="pileConnectorCode" column="pile_connector_code" />
<result property="status" column="status" /> <result property="status" column="status" />
<result property="parkNo" column="park_no" />
<result property="pileSn" column="pile_sn" /> <result property="pileSn" column="pile_sn" />
<result property="createBy" column="create_by" /> <result property="createBy" column="create_by" />
<result property="createTime" column="create_time" /> <result property="createTime" column="create_time" />
@@ -18,7 +19,7 @@
</resultMap> </resultMap>
<sql id="selectPileConnectorInfoVo"> <sql id="selectPileConnectorInfoVo">
select id, name, pile_connector_code, status, pile_sn, create_by, create_time, update_by, update_time, del_flag from pile_connector_info select id, name, pile_connector_code, status, park_no, pile_sn, create_by, create_time, update_by, update_time, del_flag from pile_connector_info
</sql> </sql>
<select id="selectPileConnectorInfoList" parameterType="com.jsowell.pile.domain.PileConnectorInfo" <select id="selectPileConnectorInfoList" parameterType="com.jsowell.pile.domain.PileConnectorInfo"
@@ -51,6 +52,7 @@
<if test="name != null">name,</if> <if test="name != null">name,</if>
<if test="pileConnectorCode != null">pile_connector_code,</if> <if test="pileConnectorCode != null">pile_connector_code,</if>
<if test="status != null">status,</if> <if test="status != null">status,</if>
<if test="parkNo != null">park_no,</if>
<if test="pileSn != null">pile_sn,</if> <if test="pileSn != null">pile_sn,</if>
<if test="createBy != null">create_by,</if> <if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if> <if test="createTime != null">create_time,</if>
@@ -62,6 +64,7 @@
<if test="name != null">#{name},</if> <if test="name != null">#{name},</if>
<if test="pileConnectorCode != null">#{pileConnectorCode},</if> <if test="pileConnectorCode != null">#{pileConnectorCode},</if>
<if test="status != null">#{status},</if> <if test="status != null">#{status},</if>
<if test="parkNo != null">#{parkNo},</if>
<if test="pileSn != null">#{pileSn},</if> <if test="pileSn != null">#{pileSn},</if>
<if test="createBy != null">#{createBy},</if> <if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if> <if test="createTime != null">#{createTime},</if>
@@ -77,6 +80,7 @@
<if test="name != null">name = #{name},</if> <if test="name != null">name = #{name},</if>
<if test="pileConnectorCode != null">pile_connector_code = #{pileConnectorCode},</if> <if test="pileConnectorCode != null">pile_connector_code = #{pileConnectorCode},</if>
<if test="status != null">status = #{status},</if> <if test="status != null">status = #{status},</if>
<if test="parkNo != null">park_no = #{parkNo},</if>
<if test="pileSn != null">pile_sn = #{pileSn},</if> <if test="pileSn != null">pile_sn = #{pileSn},</if>
<if test="createBy != null">create_by = #{createBy},</if> <if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if> <if test="createTime != null">create_time = #{createTime},</if>
@@ -120,13 +124,14 @@
<insert id="batchInsertConnectorInfo"> <insert id="batchInsertConnectorInfo">
insert into pile_connector_info insert into pile_connector_info
(name,pile_connector_code,status,pile_sn,create_by,update_by,del_flag) (name,pile_connector_code,status,park_no,pile_sn,create_by,update_by,del_flag)
values values
<foreach collection="connectorList" item="item" separator=","> <foreach collection="connectorList" item="item" separator=",">
( (
#{item.name,jdbcType=VARCHAR}, #{item.name,jdbcType=VARCHAR},
#{item.pileConnectorCode,jdbcType=VARCHAR}, #{item.pileConnectorCode,jdbcType=VARCHAR},
#{item.status,jdbcType=VARCHAR}, #{item.status,jdbcType=VARCHAR},
#{item.parkNo,jdbcType=VARCHAR},
#{item.pileSn,jdbcType=VARCHAR}, #{item.pileSn,jdbcType=VARCHAR},
#{item.createBy,jdbcType=VARCHAR}, #{item.createBy,jdbcType=VARCHAR},
#{item.updateBy,jdbcType=VARCHAR}, #{item.updateBy,jdbcType=VARCHAR},

View File

@@ -185,6 +185,7 @@ public class LianLianServiceImpl implements LianLianService {
String payment = StationPaymentEnum.getPaymentByCode(pileStationInfo.getPayment()); String payment = StationPaymentEnum.getPaymentByCode(pileStationInfo.getPayment());
info.setPayment(payment); info.setPayment(payment);
if (StringUtils.isNotBlank(pileStationInfo.getParkingNumber())) { if (StringUtils.isNotBlank(pileStationInfo.getParkingNumber())) {
info.setIsPublicParkingLot(1);
info.setParkingLotNumber(pileStationInfo.getParkingNumber()); info.setParkingLotNumber(pileStationInfo.getParkingNumber());
} }
List<EquipmentInfo> pileList = getPileList(pileStationInfo); List<EquipmentInfo> pileList = getPileList(pileStationInfo);