Procházet zdrojové kódy

提交地磅管理开发

zhangsan před 2 měsíci
rodič
revize
b89fd047ad

+ 25 - 0
sckw-modules/sckw-system/src/main/java/com/sckw/system/model/vo/res/WeighbridgeDetailResVo.java

@@ -0,0 +1,25 @@
+package com.sckw.system.model.vo.res;
+
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+import java.io.Serial;
+
+/**
+ * 地磅详情响应。
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@Schema(description = "地磅详情响应")
+public class WeighbridgeDetailResVo extends WeighbridgePageResVo {
+
+    @Serial
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 差异化配置JSON。
+     */
+    @Schema(description = "差异化配置JSON")
+    private String diffConfig;
+}

+ 55 - 0
sckw-modules/sckw-system/src/main/java/com/sckw/system/model/vo/res/WeighbridgeDiffConfigResVo.java

@@ -0,0 +1,55 @@
+package com.sckw.system.model.vo.res;
+
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.Data;
+
+import java.io.Serial;
+import java.io.Serializable;
+import java.math.BigDecimal;
+
+/**
+ * Weighbridge diff config response.
+ */
+@Data
+@Schema(description = "Weighbridge diff config response")
+public class WeighbridgeDiffConfigResVo implements Serializable {
+
+    @Serial
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * Config id.
+     */
+    @Schema(description = "Config id")
+    private Long id;
+
+    /**
+     * Enterprise id.
+     */
+    @Schema(description = "Enterprise id")
+    private Long entId;
+
+    /**
+     * Enterprise name.
+     */
+    @Schema(description = "Enterprise name")
+    private String enterpriseName;
+
+    /**
+     * Tare error value in ton.
+     */
+    @Schema(description = "Tare error value in ton")
+    private BigDecimal tareErrorValue;
+
+    /**
+     * Load error value in ton.
+     */
+    @Schema(description = "Load error value in ton")
+    private BigDecimal loadErrorValue;
+
+    /**
+     * Empty load value in ton.
+     */
+    @Schema(description = "Empty load value in ton")
+    private BigDecimal emptyLoadValue;
+}

+ 106 - 0
sckw-modules/sckw-system/src/main/java/com/sckw/system/model/vo/res/WeighbridgePageResVo.java

@@ -0,0 +1,106 @@
+package com.sckw.system.model.vo.res;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.Data;
+
+import java.io.Serial;
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * 地磅分页响应。
+ */
+@Data
+@Schema(description = "地磅分页响应")
+public class WeighbridgePageResVo implements Serializable {
+
+    @Serial
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 主键ID。
+     */
+    @Schema(description = "主键ID")
+    private Long id;
+
+    /**
+     * 企业ID。
+     */
+    @Schema(description = "企业ID")
+    private Long entId;
+
+    /**
+     * 企业名称。
+     */
+    @Schema(description = "企业名称")
+    private String enterpriseName;
+
+    /**
+     * 地磅名称。
+     */
+    @Schema(description = "地磅名称")
+    private String weighbridgeName;
+
+    /**
+     * 唯一编码。
+     */
+    @Schema(description = "唯一编码")
+    private String uniqueCode;
+
+    /**
+     * 在线状态,0-离线,1-在线。
+     */
+    @Schema(description = "在线状态,0-离线,1-在线")
+    private Integer onlineStatus;
+
+    /**
+     * 在线状态名称。
+     */
+    @Schema(description = "在线状态名称")
+    private String onlineStatusName;
+
+    /**
+     * 关联打印机ID。
+     */
+    @Schema(description = "关联打印机ID")
+    private Long printerId;
+
+    /**
+     * 关联打印机名称。
+     */
+    @Schema(description = "关联打印机名称")
+    private String printerName;
+
+    /**
+     * 描述。
+     */
+    @Schema(description = "描述")
+    private String description;
+
+    /**
+     * 启停状态,0-启用,1-停用。
+     */
+    @Schema(description = "启停状态,0-启用,1-停用")
+    private Integer status;
+
+    /**
+     * 启停状态名称。
+     */
+    @Schema(description = "启停状态名称")
+    private String statusName;
+
+    /**
+     * 创建时间。
+     */
+    @Schema(description = "创建时间")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
+    private Date createTime;
+
+    /**
+     * 最近重启时间。
+     */
+    @Schema(description = "最近重启时间")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
+    private Date lastRestartTime;
+}

+ 83 - 0
sckw-modules/sckw-system/src/main/java/com/sckw/system/model/vo/res/WeighbridgeRecordResVo.java

@@ -0,0 +1,83 @@
+package com.sckw.system.model.vo.res;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.Data;
+
+import java.io.Serial;
+import java.io.Serializable;
+import java.math.BigDecimal;
+import java.util.Date;
+
+/**
+ * Weighbridge record response.
+ */
+@Data
+@Schema(description = "Weighbridge record response")
+public class WeighbridgeRecordResVo implements Serializable {
+
+    @Serial
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * Primary key.
+     */
+    @Schema(description = "Primary key")
+    private Long id;
+
+    /**
+     * Weighbridge id.
+     */
+    @Schema(description = "Weighbridge id")
+    private Long weighbridgeId;
+
+    /**
+     * Weighbridge name.
+     */
+    @Schema(description = "Weighbridge name")
+    private String weighbridgeName;
+
+    /**
+     * Unique code.
+     */
+    @Schema(description = "Unique code")
+    private String uniqueCode;
+
+    /**
+     * Enterprise id.
+     */
+    @Schema(description = "Enterprise id")
+    private Long entId;
+
+    /**
+     * Enterprise name.
+     */
+    @Schema(description = "Enterprise name")
+    private String enterpriseName;
+
+    /**
+     * Truck number.
+     */
+    @Schema(description = "Truck number")
+    private String truckNo;
+
+    /**
+     * Weight.
+     */
+    @Schema(description = "Weight")
+    private BigDecimal weight;
+
+    /**
+     * Create time.
+     */
+    @Schema(description = "Create time")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
+    private Date createTime;
+
+    /**
+     * Receive time.
+     */
+    @Schema(description = "Receive time")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
+    private Date receiveTime;
+}