1.pms台账功能调整

This commit is contained in:
2024-11-15 15:50:10 +08:00
parent a6acf6d1c9
commit 5cc21b6289
3 changed files with 78 additions and 51 deletions

View File

@@ -86,49 +86,49 @@ public class PowerClientParam {
* 合同容量
*/
@ApiModelProperty(value = "合同容量",required = true)
@NotNull(message = "合同容量不可为空")
//@NotNull(message = "合同容量不可为空")
private Float contractCapacity;
/**
* 运行容量
*/
@ApiModelProperty(value = "运行容量",required = true)
@NotNull(message = "运行容量不可为空")
//@NotNull(message = "运行容量不可为空")
private Float operatingCapacity;
/**
* 生产班次(字典)
*/
@ApiModelProperty(value = "生产班次(字典)",required = true)
@NotBlank(message = "生产班次不可为空")
//@NotBlank(message = "生产班次不可为空")
private String productionShift;
/**
* 负荷性质(字典)
*/
@ApiModelProperty(value = "负荷性质(字典)",required = true)
@NotBlank(message = "负荷性质不可为空")
//@NotBlank(message = "负荷性质不可为空")
private String loadNature;
/**
* 供电电压(字典)
*/
@ApiModelProperty(value = "供电电压(字典)",required = true)
@NotBlank(message = "供电电压不可为空")
//@NotBlank(message = "供电电压不可为空")
private String voltageLevel;
/**
* 高耗能行业类别(字典)
*/
@ApiModelProperty(value = "高耗能行业类别(字典)",required = true)
@NotBlank(message = "高耗能行业类别不可为空")
//@NotBlank(message = "高耗能行业类别不可为空")
private String highIndustryType;
/**
* 送电日期
*/
@ApiModelProperty(value = "送电日期",required = true)
@NotNull(message = "送电日期不可为空")
//@NotNull(message = "送电日期不可为空")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDate powerTransmissionDate;
@@ -136,42 +136,42 @@ public class PowerClientParam {
* 重要性等级(字典)
*/
@ApiModelProperty(value = "重要性等级",required = true)
@NotBlank(message = "重要性等级不可为空")
//@NotBlank(message = "重要性等级不可为空")
private String importanceLevel;
/**
* 用电客户状态(字典)
*/
@ApiModelProperty(value = "用电客户状态",required = true)
@NotBlank(message = "用电客户状态不可为空")
//@NotBlank(message = "用电客户状态不可为空")
private String eccStat;
/**
* 是否敏感用户0-否1
*/
@ApiModelProperty(value = "是否敏感用户",required = true)
@NotNull(message = "用户编号不可为空")
//@NotNull(message = "用户编号不可为空")
private Integer ifSensitiveUser;
/**
* 是否影响电能质量0-否1
*/
@ApiModelProperty(value = "是否影响电能质量0-否1",required = true)
@NotNull(message = "是否影响电能质量不可为空")
//@NotNull(message = "是否影响电能质量不可为空")
private Integer ifPowerQuality;
/**
* 是否重要客户0-否1
*/
@ApiModelProperty(value = "是否重要客户0-否1",required = true)
@NotNull(message = "是否重要客户不可为空")
//@NotNull(message = "是否重要客户不可为空")
private Integer ifKeyCustomers;
/**
* 敏感用户类别(字典)
*/
@ApiModelProperty(value = "敏感用户类别",required = true)
@NotBlank(message = "敏感用户类别不可为空")
//@NotBlank(message = "敏感用户类别不可为空")
private String sensitiveType;
/**

View File

@@ -1,5 +1,7 @@
package com.njcn.device.pms.pojo.po;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.njcn.db.bo.BaseEntity;
import lombok.Data;
@@ -70,66 +72,79 @@ public class PowerClient extends BaseEntity {
/**
* 合同容量
*/
@TableField(updateStrategy = FieldStrategy.IGNORED)
private Float contractCapacity;
/**
* 运行容量
*/
@TableField(updateStrategy = FieldStrategy.IGNORED)
private Float operatingCapacity;
/**
* 生产班次(字典)
*/
@TableField(updateStrategy = FieldStrategy.IGNORED)
private String productionShift;
/**
* 负荷性质(字典)
*/
@TableField(updateStrategy = FieldStrategy.IGNORED)
private String loadNature;
/**
* 供电电压(字典)
*/
@TableField(updateStrategy = FieldStrategy.IGNORED)
private String voltageLevel;
/**
* 高耗能行业类别(字典)
*/
@TableField(updateStrategy = FieldStrategy.IGNORED)
private String highIndustryType;
/**
* 送电日期
*/
@TableField(updateStrategy = FieldStrategy.IGNORED)
private LocalDate powerTransmissionDate;
/**
* 重要性等级(字典)
*/
@TableField(updateStrategy = FieldStrategy.IGNORED)
private String importanceLevel;
/**
* 用电客户状态(字典)
*/
@TableField(updateStrategy = FieldStrategy.IGNORED)
private String eccStat;
/**
* 是否敏感用户0-否1
*/
@TableField(updateStrategy = FieldStrategy.IGNORED)
private Integer ifSensitiveUser;
/**
* 是否影响电能质量0-否1
*/
@TableField(updateStrategy = FieldStrategy.IGNORED)
private Integer ifPowerQuality;
/**
* 是否重要客户0-否1
*/
@TableField(updateStrategy = FieldStrategy.IGNORED)
private Integer ifKeyCustomers;
/**
* 敏感用户类别(字典)
*/
@TableField(updateStrategy = FieldStrategy.IGNORED)
private String sensitiveType;
/**
@@ -150,6 +165,7 @@ public class PowerClient extends BaseEntity {
/**
* 用户标签
*/
@TableField(updateStrategy = FieldStrategy.IGNORED)
private String userTag;
/**