mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-17 16:28:41 +08:00
枪口信息表添加 车位号 字段
This commit is contained in:
@@ -43,6 +43,11 @@ public class PileConnectorInfo extends BaseEntity {
|
||||
@Excel(name = "状态")
|
||||
private String status;
|
||||
|
||||
/**
|
||||
* 车位号
|
||||
*/
|
||||
private String parkNo;
|
||||
|
||||
/**
|
||||
* 所属充电桩id
|
||||
*/
|
||||
@@ -86,6 +91,14 @@ public class PileConnectorInfo extends BaseEntity {
|
||||
return status;
|
||||
}
|
||||
|
||||
public String getParkNo() {
|
||||
return parkNo;
|
||||
}
|
||||
|
||||
public void setParkNo(String parkNo) {
|
||||
this.parkNo = parkNo;
|
||||
}
|
||||
|
||||
public void setPileSn(String pileSn) {
|
||||
this.pileSn = pileSn;
|
||||
}
|
||||
@@ -109,6 +122,7 @@ public class PileConnectorInfo extends BaseEntity {
|
||||
.append("name", getName())
|
||||
.append("pileConnectorCode", getPileConnectorCode())
|
||||
.append("status", getStatus())
|
||||
.append("parkNo", getParkNo())
|
||||
.append("pileId", getPileSn())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
<result property="name" column="name" />
|
||||
<result property="pileConnectorCode" column="pile_connector_code" />
|
||||
<result property="status" column="status" />
|
||||
<result property="parkNo" column="park_no" />
|
||||
<result property="pileSn" column="pile_sn" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
@@ -18,7 +19,7 @@
|
||||
</resultMap>
|
||||
|
||||
<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>
|
||||
|
||||
<select id="selectPileConnectorInfoList" parameterType="com.jsowell.pile.domain.PileConnectorInfo"
|
||||
@@ -51,6 +52,7 @@
|
||||
<if test="name != null">name,</if>
|
||||
<if test="pileConnectorCode != null">pile_connector_code,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="parkNo != null">park_no,</if>
|
||||
<if test="pileSn != null">pile_sn,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
@@ -62,6 +64,7 @@
|
||||
<if test="name != null">#{name},</if>
|
||||
<if test="pileConnectorCode != null">#{pileConnectorCode},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="parkNo != null">#{parkNo},</if>
|
||||
<if test="pileSn != null">#{pileSn},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
@@ -77,6 +80,7 @@
|
||||
<if test="name != null">name = #{name},</if>
|
||||
<if test="pileConnectorCode != null">pile_connector_code = #{pileConnectorCode},</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="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
@@ -120,13 +124,14 @@
|
||||
|
||||
<insert id="batchInsertConnectorInfo">
|
||||
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
|
||||
<foreach collection="connectorList" item="item" separator=",">
|
||||
(
|
||||
#{item.name,jdbcType=VARCHAR},
|
||||
#{item.pileConnectorCode,jdbcType=VARCHAR},
|
||||
#{item.status,jdbcType=VARCHAR},
|
||||
#{item.parkNo,jdbcType=VARCHAR},
|
||||
#{item.pileSn,jdbcType=VARCHAR},
|
||||
#{item.createBy,jdbcType=VARCHAR},
|
||||
#{item.updateBy,jdbcType=VARCHAR},
|
||||
|
||||
@@ -185,6 +185,7 @@ public class LianLianServiceImpl implements LianLianService {
|
||||
String payment = StationPaymentEnum.getPaymentByCode(pileStationInfo.getPayment());
|
||||
info.setPayment(payment);
|
||||
if (StringUtils.isNotBlank(pileStationInfo.getParkingNumber())) {
|
||||
info.setIsPublicParkingLot(1);
|
||||
info.setParkingLotNumber(pileStationInfo.getParkingNumber());
|
||||
}
|
||||
List<EquipmentInfo> pileList = getPileList(pileStationInfo);
|
||||
|
||||
Reference in New Issue
Block a user