From 1eb6f4824c270de1a3d0bf766d44f1abb2c7f55d Mon Sep 17 00:00:00 2001 From: shiyunteng <shiyunteng@example.com> Date: 星期四, 24 四月 2025 17:30:07 +0800 Subject: [PATCH] 巡检任务 设备维修新增是否生成工单字段 及 生成工单 --- platformx-device-api/src/main/java/com/by4cloud/platformx/device/entity/DeviceDemandPlan.java | 17 ++++++++++++++++- 1 files changed, 16 insertions(+), 1 deletions(-) diff --git a/platformx-device-api/src/main/java/com/by4cloud/platformx/device/entity/DeviceDemandPlan.java b/platformx-device-api/src/main/java/com/by4cloud/platformx/device/entity/DeviceDemandPlan.java index 55c75fd..e927120 100644 --- a/platformx-device-api/src/main/java/com/by4cloud/platformx/device/entity/DeviceDemandPlan.java +++ b/platformx-device-api/src/main/java/com/by4cloud/platformx/device/entity/DeviceDemandPlan.java @@ -1,5 +1,6 @@ package com.by4cloud.platformx.device.entity; +import com.baomidou.mybatisplus.annotation.TableField; import com.by4cloud.platformx.common.data.mybatis.BaseModel; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.v3.oas.annotations.media.Schema; @@ -9,7 +10,9 @@ import javax.persistence.Column; import javax.persistence.Entity; +import javax.persistence.Transient; import java.util.Date; +import java.util.List; /** * @author kdq @@ -22,6 +25,10 @@ @Entity @Table(appliesTo = "device_demand_plan", comment = "璁惧闇�姹傝鍒掍富琛�") public class DeviceDemandPlan extends BaseModel<DeviceDemandPlan> { + + @Schema(description = "鍚堝苟璁″垝id") + @Column(columnDefinition="long comment '鍚堝苟璁″垝id'") + private Long planId; @Schema(description = "缂栫爜") @Column(columnDefinition="VARCHAR(64) comment '缂栫爜'") private String number; @@ -31,12 +38,16 @@ @Schema(description = "鑱旂郴浜�") @Column(columnDefinition="VARCHAR(64) comment '鑱旂郴浜�'") private String contacts; - @Schema(description = "鐢虫姤鐘舵�� 0鐢宠涓紝1浜岀骇鍗曚綅瀹℃牳鎷掔粷 2浜岀骇鍗曚綅瀹℃牳閫氳繃 3闆嗗洟瀹℃牳鎷掔粷 4闆嗗洟瀹℃牳閫氳繃") + @Schema(description = "鐢虫姤鐘舵�� 0鐢宠涓紝1浜岀骇鍗曚綅瀹℃牳鎷掔粷 2浜岀骇鍗曚綅瀹℃牳閫氳繃 3寰呴泦鍥㈡壒鍑� 4闆嗗洟瀹℃牳鎷掔粷 5闆嗗洟瀹℃牳閫氳繃") @Column(columnDefinition="int comment '鐢虫姤鐘舵��'") private Integer status; @Schema(description = "鐢虫姤绫诲瀷") @Column(columnDefinition="int comment '鐢虫姤绫诲瀷'") private Integer type; + + @Schema(description = "鎻愪氦绫诲瀷") + @Column(columnDefinition="int comment '鎻愪氦绫诲瀷 0鐭挎彁浜� 1瀛愬崟浣嶆彁浜�'") + private Integer type2; @Schema(description = "鐢虫姤鍏徃id") @Column(columnDefinition="long comment '鐢虫姤鍏徃id'") private Long declareCompId; @@ -64,4 +75,8 @@ @Schema(description = "涓婃姤鏃堕棿") @Column(columnDefinition = "datetime comment '涓婃姤鏃堕棿'") private Date sendDate; + + @Transient + @TableField(exist = false) + private List<DeviceDemandTotal> totalList; } -- Gitblit v1.9.1