From 2be2f6c3e5b2be2bae1562423a9a4d29aa174aae Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期一, 22 七月 2024 10:57:10 +0800 Subject: [PATCH] 工单阈值重构 --- ycl-pojo/src/main/java/com/ycl/platform/domain/entity/YwThreshold.java | 193 ++++++++++++------------------------------------ 1 files changed, 48 insertions(+), 145 deletions(-) diff --git a/ycl-pojo/src/main/java/com/ycl/platform/domain/entity/YwThreshold.java b/ycl-pojo/src/main/java/com/ycl/platform/domain/entity/YwThreshold.java index 994f23a..7355249 100644 --- a/ycl-pojo/src/main/java/com/ycl/platform/domain/entity/YwThreshold.java +++ b/ycl-pojo/src/main/java/com/ycl/platform/domain/entity/YwThreshold.java @@ -1,175 +1,78 @@ package com.ycl.platform.domain.entity; - import annotation.Excel; -import com.baomidou.mybatisplus.annotation.*; +import com.baomidou.mybatisplus.annotation.IdType; +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.ycl.system.entity.BaseEntity; -import enumeration.general.BusinessTypeEnum; -import jakarta.validation.constraints.NotBlank; import lombok.Data; +import org.apache.commons.lang.builder.ToStringBuilder; +import org.apache.commons.lang.builder.ToStringStyle; -import java.math.BigDecimal; import java.util.Date; /** * 杩愮淮闃堝�煎璞� t_yw_threshold * * @author gonghl - * @date 2024-03-25 + * @date 2024-07-19 */ @Data @TableName("t_yw_threshold") -public class YwThreshold { - +public class YwThreshold +{ private static final long serialVersionUID = 1L; - /** - * 涓婚敭 - */ + /** */ @TableId(value = "id", type = IdType.AUTO) - private Integer id; + private Long id; + + /** 璁惧绫诲瀷 */ + @Excel(name = "璁惧绫诲瀷") + @TableField("monitor_type") + private String monitorType; + + /** 璁℃暟绫诲瀷 */ + @Excel(name = "璁℃暟绫诲瀷") + @TableField("count_type") + private String countType; + + /** 闃堝�煎悕 */ + @Excel(name = "闃堝�煎悕") + @TableField("name") + private String name; + + /** 宸ュ崟闃堝�� */ + @Excel(name = "宸ュ崟闃堝��") + @TableField("value") + private String value; + + /** 涓嬪彂闃堝�� */ + @Excel(name = "涓嬪彂闃堝��") + @TableField("value_auto") + private String valueAuto; + + /** 鎻忚堪 */ + @Excel(name = "鎻忚堪") + @TableField("description") + private String description; + + /** 閫昏緫鍒犻櫎锛�0鏈垹闄� 1鍒犻櫎 */ + @Excel(name = "閫昏緫鍒犻櫎锛�0鏈垹闄� 1鍒犻櫎") + private String deleted; /** 鍒涘缓鏃堕棿 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @TableField("create_time") + @Excel(name = "鍒涘缓鏃堕棿") private Date createTime; /** 鏇存柊鏃堕棿 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") - @TableField(value = "update_time", fill = FieldFill.UPDATE) + @TableField("update_time") + @Excel(name = "鏇存柊鏃堕棿") private Date updateTime; - - /** - * 璁惧绫诲瀷锛�1浜鸿劯 2杞﹁締 3瑙嗛 - */ - @Excel(name = "璁惧绫诲瀷") - @TableField("monitor_type") - private BusinessTypeEnum monitorType; - - /*---------------------------- 瑙嗛瀛楁 ----------------------------------------------*/ - /** - * 瑙嗛璐ㄩ噺宸ュ崟闃堝�� - */ - @Excel(name = "瑙嗛璐ㄩ噺宸ュ崟闃堝��") - @TableField("video_quality") - private String videoQuality; - - /** - * 瑙嗛璐ㄩ噺宸ュ崟闃堝�� - */ - @Excel(name = "瑙嗛璐ㄩ噺涓嬪彂闃堝��") - @TableField("video_quality_auto") - private String videoQualityAuto; - - /** - * 鍥惧儚璐ㄩ噺宸ュ崟闃堝�� - */ - @Excel(name = "鍥惧儚璐ㄩ噺宸ュ崟闃堝��") - @TableField("image_quality") - private String imageQuality; - - /** - * 鍥惧儚璐ㄩ噺涓嬪彂闃堝�� - */ - @Excel(name = "鍥惧儚璐ㄩ噺涓嬪彂闃堝��") - @TableField("image_quality_auto") - private String imageQualityAuto; - - /** - * 鏍囨敞鍑嗙‘鐜囧伐鍗曢槇鍊� - */ - @Excel(name = "鏍囨敞鍑嗙‘鐜囧伐鍗曢槇鍊�") - @TableField("annotation_accuracy") - private BigDecimal annotationAccuracy; - - /** - * 鏍囨敞鍑嗙‘鐜囦笅鍙戦槇鍊� - */ - @Excel(name = "鏍囨敞鍑嗙‘鐜囦笅鍙戦槇鍊�") - @TableField("annotation_accuracy_auto") - private BigDecimal annotationAccuracyAuto; - - - /*---------------------------- 浜鸿劯瀛楁 ----------------------------------------------*/ - /** 鎶撴媿閲忓伐鍗曢槇鍊� */ - @TableField("capture_num") - private Integer captureNum; - - /** 鎶撴媿閲忎笅鍙戦槇鍊� */ - @TableField("capture_num_auto") - private Integer captureNumAuto; - - /** 鍙婃椂鐜囧伐鍗曢槇鍊� */ - @TableField("timely_rate") - private BigDecimal timelyRate; - - /** 鍙婃椂鐜囦笅鍙戦槇鍊� */ - @TableField("timely_rate_auto") - private BigDecimal timelyRateAuto; - - /** 寤惰繜閲忓伐鍗曢槇鍊� */ - @TableField("delay_amount") - private Long delayAmount; - - /** 寤惰繜閲忎笅鍙戦槇鍊� */ - @TableField("delay_amount_auto") - private Long delayAmountAuto; - - /*---------------------------- 杞﹁締瀛楁 ----------------------------------------------*/ - /** 杩囪溅鏁版嵁閲忓伐鍗曢槇鍊� */ - @TableField("pass_car_num") - private Integer passCarNum; - - /** 杩囪溅鏁版嵁閲忎笅鍙戦槇鍊� */ - @TableField("pass_car_num_auto") - private Integer passCarNumAuto; - - /** 杩囪溅缂哄け鐜囧伐鍗曢槇鍊� */ - @TableField("pass_car_miss_rate") - private BigDecimal passCarMissRate; - - /** 杩囪溅缂哄け鐜囦笅鍙戦槇鍊� */ - @TableField("pass_car_miss_rate_auto") - private BigDecimal passCarMissRateAuto; - - /** 鏈夋晥杩囪溅鏁版嵁閲忓伐鍗曢槇鍊� */ - @TableField("pass_car_effective_num") - private Integer passCarEffectiveNum; - - /** 鏈夋晥杩囪溅鏁版嵁閲忎笅鍙戦槇鍊� */ - @TableField("pass_car_effective_num_auto") - private Integer passCarEffectiveNumAuto; - - /** 鏃堕挓鍑嗙‘鐜囧伐鍗曢槇鍊� */ - @TableField("time_accuracy") - private BigDecimal timeAccuracy; - - /** 鏃堕挓鍑嗙‘鐜囦笅鍙戦槇鍊� */ - @TableField("time_accuracy_auto") - private BigDecimal timeAccuracyAuto; - - /** - * 閫昏緫鍒犻櫎锛�0鏈垹闄� 1鍒犻櫎 - */ - @TableField("deleted") - private String deleted; - - /*---------------------------- 鍏叡 ----------------------------------------------*/ - /** 璁惧娲昏穬鐜囧伐鍗曢槇鍊� */ - @TableField("device_active_rate") - private BigDecimal deviceActiveRate; - - /** 璁惧娲昏穬鐜囦笅鍙戦槇鍊� */ - @TableField("device_active_rate_auto") - private BigDecimal deviceActiveRateAuto; - - /** 鎶撴媿鍙婃椂鐜囧伐鍗曢槇鍊� */ - @TableField("timely_capture") - private BigDecimal timelyCapture; - - /** 鎶撴媿鍙婃椂鐜囦笅鍙戦槇鍊� */ - @TableField("timely_capture_auto") - private BigDecimal timelyCaptureAuto; } -- Gitblit v1.8.0