1.园区接口完成
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
package com.njcn.device.pms.enums;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* pqs
|
||||
*
|
||||
* @author cdf
|
||||
* @date 2024/6/21
|
||||
*/
|
||||
@Getter
|
||||
public enum PmsEnum {
|
||||
|
||||
|
||||
NO_UPLOAD("未上送","0"),
|
||||
HAS_UPLOAD("以上送","1"),
|
||||
WAIT_RETURN_UPLOAD("待重新上送","2"),
|
||||
DELETE_UPLOAD("已删除","3"),
|
||||
|
||||
;
|
||||
|
||||
|
||||
private final String name;
|
||||
private final String code;
|
||||
|
||||
PmsEnum(String name, String code) {
|
||||
this.name = name;
|
||||
this.code = code;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package com.njcn.device.pms.pojo.dto;
|
||||
|
||||
import com.njcn.device.pms.pojo.po.PmsParkPO;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* pqs
|
||||
*
|
||||
* @author cdf
|
||||
* @date 2024/6/24
|
||||
*/
|
||||
@Data
|
||||
public class ParkDto {
|
||||
|
||||
private List<PmsParkPO> parkVoListt;
|
||||
|
||||
|
||||
private List<ParkSubstationRelVo> parkSubstationRelVoList;
|
||||
|
||||
|
||||
@Data
|
||||
public static class ParkSubstationRelVo{
|
||||
private String objId;
|
||||
private String parkId;
|
||||
private String substationId;
|
||||
private String substationProvinceOrg;
|
||||
private String substationProvinceOrgName;
|
||||
private String substationCityOrg;
|
||||
private String substationCityOrgName;
|
||||
private String substationMaintOrg;
|
||||
private String substationMaintOrgName;
|
||||
private String substationName;
|
||||
private String substationVoltageLevel;
|
||||
private String substationRunStatus;
|
||||
private String substationOperateDate;
|
||||
private String createTime;
|
||||
private String updateTime;
|
||||
private String isDelete;
|
||||
private String deleteTime;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,108 @@
|
||||
package com.njcn.device.pms.pojo.param;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import com.njcn.web.pojo.param.BaseParam;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 园区表
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2024-06-19
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class PmsParkParam {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
||||
/**
|
||||
* 省单位
|
||||
*/
|
||||
private String provinceOrg;
|
||||
|
||||
/**
|
||||
* 省单位名称
|
||||
*/
|
||||
private String provinceName;
|
||||
|
||||
/**
|
||||
* 市单位
|
||||
*/
|
||||
private String cityOrg;
|
||||
|
||||
/**
|
||||
* 市单位名称
|
||||
*/
|
||||
private String cityOrgName;
|
||||
|
||||
/**
|
||||
* 运维单位
|
||||
*/
|
||||
private String maintOrg;
|
||||
|
||||
/**
|
||||
* 运维单位名称
|
||||
*/
|
||||
private String maintOrgName;
|
||||
|
||||
/**
|
||||
* 园区名称
|
||||
*/
|
||||
private String parkName;
|
||||
|
||||
/**
|
||||
* 园区性质
|
||||
*/
|
||||
private String parkNature;
|
||||
|
||||
/**
|
||||
* 园区级别
|
||||
*/
|
||||
private String parkLevel;
|
||||
|
||||
/**
|
||||
* 园区状态
|
||||
*/
|
||||
private String parkStatus;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 0.删除 1.正常
|
||||
*/
|
||||
private LocalDateTime deleteTime;
|
||||
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class UpdatePmsParkParam extends PmsParkParam{
|
||||
|
||||
private String objId;
|
||||
}
|
||||
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class PmsParkQuery extends BaseParam {
|
||||
|
||||
private String objId;
|
||||
|
||||
private String maintOrg;
|
||||
|
||||
private String cityOrg;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.njcn.device.pms.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
@@ -28,6 +29,7 @@ public class PmsMidLedger extends BaseEntity {
|
||||
/**
|
||||
* Id
|
||||
*/
|
||||
@TableId
|
||||
private String id;
|
||||
|
||||
/**
|
||||
|
||||
@@ -0,0 +1,97 @@
|
||||
package com.njcn.device.pms.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 园区表
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2024-06-19
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@TableName("pms_park")
|
||||
public class PmsParkPO extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* uuid
|
||||
*/
|
||||
@TableId(value = "obj_id",type = IdType.ASSIGN_UUID)
|
||||
private String objId;
|
||||
|
||||
/**
|
||||
* 省单位
|
||||
*/
|
||||
private String provinceOrg;
|
||||
|
||||
/**
|
||||
* 省单位名称
|
||||
*/
|
||||
private String provinceName;
|
||||
|
||||
/**
|
||||
* 市单位
|
||||
*/
|
||||
private String cityOrg;
|
||||
|
||||
/**
|
||||
* 市单位名称
|
||||
*/
|
||||
private String cityOrgName;
|
||||
|
||||
/**
|
||||
* 运维单位
|
||||
*/
|
||||
private String maintOrg;
|
||||
|
||||
/**
|
||||
* 运维单位名称
|
||||
*/
|
||||
private String maintOrgName;
|
||||
|
||||
/**
|
||||
* 园区名称
|
||||
*/
|
||||
private String parkName;
|
||||
|
||||
/**
|
||||
* 园区性质
|
||||
*/
|
||||
private String parkNature;
|
||||
|
||||
/**
|
||||
* 园区级别
|
||||
*/
|
||||
private String parkLevel;
|
||||
|
||||
/**
|
||||
* 园区状态
|
||||
*/
|
||||
private String parkStatus;
|
||||
|
||||
|
||||
private String isDelete;
|
||||
|
||||
/**
|
||||
* 0.删除 1.正常
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime deleteTime;
|
||||
|
||||
private String uploadStatus;
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package com.njcn.device.pms.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2024-06-19
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@TableName("pms_park_station_ass")
|
||||
public class PmsParkStationAss {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId
|
||||
private String objId;
|
||||
|
||||
@NotBlank(message = "园区id不可为空")
|
||||
private String parkId;
|
||||
|
||||
/**
|
||||
* 园区所有电站id关联pms_mid_ledger
|
||||
*/
|
||||
@NotBlank(message = "电站不可为空")
|
||||
private String midStationId;
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user