添加注释

This commit is contained in:
hzj
2025-12-16 16:22:53 +08:00
parent 24e4c4de37
commit a899614c89
3 changed files with 11 additions and 17 deletions

View File

@@ -211,14 +211,14 @@ public class SupervisionDevMainReportExcel {
/** /**
* 电镀功能 * 电镀功能
*/ */
@Excel(name = "功能", width = 30, replace = {"关闭_0", "开启_1"}) @Excel(name = "功能", width = 30, replace = {"关闭_0", "开启_1"})
private String electroplatingFunction = "0"; private String electroplatingFunction = "0";
/** /**
* 召换标志 * 召换标志
*/ */
@Excel(name = "标志", width = 30, replace = {"周期触发_0", "变位触发_1"}) @Excel(name = "标志", width = 30, replace = {"周期触发_0", "变位触发_1"})
private String summonFlag = "0"; private String summonFlag = "0";
/** /**

View File

@@ -1,9 +1,6 @@
package com.njcn.supervision.pojo.po.user; package com.njcn.supervision.pojo.po.user;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.njcn.common.pojo.constant.PatternRegex; import com.njcn.common.pojo.constant.PatternRegex;
import com.njcn.db.bo.BaseEntity; import com.njcn.db.bo.BaseEntity;
import com.njcn.web.constant.ValidMessage; import com.njcn.web.constant.ValidMessage;
@@ -35,14 +32,14 @@ public class UserReportProjectPO extends BaseEntity {
/** /**
* 用户协议容量 * 用户协议容量
*/ */
@TableField(value = "agreement_capacity") @TableField(value = "agreement_capacity",updateStrategy = FieldStrategy.IGNORED)
@Pattern(regexp = PatternRegex.COORDINATE, message = ValidMessage.PARAM_FORMAT_ERROR) @Pattern(regexp = PatternRegex.COORDINATE, message = ValidMessage.PARAM_FORMAT_ERROR)
private Double agreementCapacity; private Double agreementCapacity;
/** /**
* 非线性设备类型 * 非线性设备类型
*/ */
@TableField(value = "nonlinear_device_type") @TableField(value = "nonlinear_device_type",updateStrategy = FieldStrategy.IGNORED)
private String nonlinearDeviceType; private String nonlinearDeviceType;
/** /**

View File

@@ -1,9 +1,6 @@
package com.njcn.supervision.pojo.po.user; package com.njcn.supervision.pojo.po.user;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.njcn.common.pojo.constant.PatternRegex; import com.njcn.common.pojo.constant.PatternRegex;
import com.njcn.db.bo.BaseEntity; import com.njcn.db.bo.BaseEntity;
import com.njcn.web.constant.ValidMessage; import com.njcn.web.constant.ValidMessage;
@@ -40,28 +37,28 @@ public class UserReportSubstationPO extends BaseEntity {
/** /**
* 基准短路容量MVA * 基准短路容量MVA
*/ */
@TableField(value = "base_short_circuit_capacity") @TableField(value = "base_short_circuit_capacity",updateStrategy = FieldStrategy.IGNORED)
@Pattern(regexp = PatternRegex.COORDINATE, message = ValidMessage.PARAM_FORMAT_ERROR) @Pattern(regexp = PatternRegex.COORDINATE, message = ValidMessage.PARAM_FORMAT_ERROR)
private BigDecimal baseShortCircuitCapacity; private BigDecimal baseShortCircuitCapacity;
/** /**
* 系统最小短路容量MVA * 系统最小短路容量MVA
*/ */
@TableField(value = "min_short_circuit_capacity") @TableField(value = "min_short_circuit_capacity",updateStrategy = FieldStrategy.IGNORED)
@Pattern(regexp = PatternRegex.COORDINATE, message = ValidMessage.PARAM_FORMAT_ERROR) @Pattern(regexp = PatternRegex.COORDINATE, message = ValidMessage.PARAM_FORMAT_ERROR)
private BigDecimal minShortCircuitCapacity; private BigDecimal minShortCircuitCapacity;
/** /**
* PCC供电设备容量MVA * PCC供电设备容量MVA
*/ */
@TableField(value = "pcc_equipment_capacity") @TableField(value = "pcc_equipment_capacity",updateStrategy = FieldStrategy.IGNORED)
@Pattern(regexp = PatternRegex.COORDINATE, message = ValidMessage.PARAM_FORMAT_ERROR) @Pattern(regexp = PatternRegex.COORDINATE, message = ValidMessage.PARAM_FORMAT_ERROR)
private BigDecimal pccEquipmentCapacity; private BigDecimal pccEquipmentCapacity;
/** /**
* 用户用电协议容量MVA * 用户用电协议容量MVA
*/ */
@TableField(value = "user_agreement_capacity") @TableField(value = "user_agreement_capacity",updateStrategy = FieldStrategy.IGNORED)
@Pattern(regexp = PatternRegex.COORDINATE, message = ValidMessage.PARAM_FORMAT_ERROR) @Pattern(regexp = PatternRegex.COORDINATE, message = ValidMessage.PARAM_FORMAT_ERROR)
private BigDecimal userAgreementCapacity; private BigDecimal userAgreementCapacity;
@@ -74,7 +71,7 @@ public class UserReportSubstationPO extends BaseEntity {
/** /**
* 非线性负荷类型 * 非线性负荷类型
*/ */
@TableField(value = "nonlinear_load_type") @TableField(value = "nonlinear_load_type",updateStrategy = FieldStrategy.IGNORED)
private String nonlinearLoadType; private String nonlinearLoadType;
/** /**