From adcfd92279f68d2353e2caa5522f71282f6e0943 Mon Sep 17 00:00:00 2001 From: lsh <lsh@163.com> Date: 星期三, 16 十月 2024 08:18:51 +0800 Subject: [PATCH] # --- src/main/java/com/zy/ints/entity/Prdt.java | 54 ++++++++++++++++++++++++++++++++++++++++++++---------- 1 files changed, 44 insertions(+), 10 deletions(-) diff --git a/src/main/java/com/zy/ints/entity/Prdt.java b/src/main/java/com/zy/ints/entity/Prdt.java index 5f65135..46515f3 100644 --- a/src/main/java/com/zy/ints/entity/Prdt.java +++ b/src/main/java/com/zy/ints/entity/Prdt.java @@ -1,16 +1,17 @@ package com.zy.ints.entity; -import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableId; +import com.baomidou.mybatisplus.annotations.TableId; import com.baomidou.mybatisplus.enums.IdType; import com.baomidou.mybatisplus.annotations.TableField; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import com.baomidou.mybatisplus.annotations.TableName; + import java.io.Serializable; @Data -@TableName("erp_prdt") +@TableName("ERP_PRDT") public class Prdt implements Serializable { private static final long serialVersionUID = 1L; @@ -18,7 +19,7 @@ /** * 鍝佸彿 */ - @ApiModelProperty(value= "鍝佸彿") + @ApiModelProperty(value = "鍝佸彿") @TableId(value = "prd_no", type = IdType.INPUT) @TableField("prd_no") private String prdNo; @@ -26,36 +27,55 @@ /** * 鍝佸悕 */ - @ApiModelProperty(value= "鍝佸悕") + @ApiModelProperty(value = "鍝佸悕") private String name; /** * 鍗曚綅 */ - @ApiModelProperty(value= "鍗曚綅") + @ApiModelProperty(value = "鍗曚綅") private String ut; /** * 瑙勬牸 */ - @ApiModelProperty(value= "瑙勬牸") + @ApiModelProperty(value = "瑙勬牸") private String spc; /** * 绫诲瀷 */ - @ApiModelProperty(value= "绫诲瀷") + @ApiModelProperty(value = "绫诲瀷") private Integer type; /** * 鐘舵�� */ - @ApiModelProperty(value= "鐘舵��") + @ApiModelProperty(value = "鐘舵��") private Integer status; - public Prdt() {} + /** + * 澶囩敤瀛楁1 + */ + @ApiModelProperty(value = "澶囩敤瀛楁1") + private String temp1; - public Prdt(String prdNo,String name,String ut,String spc,Integer type,Integer status) { + /** + * 澶囩敤瀛楁2 + */ + @ApiModelProperty(value = "澶囩敤瀛楁2") + private String temp2; + + /** + * 澶囩敤瀛楁3 + */ + @ApiModelProperty(value = "澶囩敤瀛楁3") + private String temp3; + + public Prdt() { + } + + public Prdt(String prdNo, String name, String ut, String spc, Integer type, Integer status) { this.prdNo = prdNo; this.name = name; this.ut = ut; @@ -74,5 +94,19 @@ // null // 鐘舵�乕闈炵┖] // ); + public String getStatus$(){ + if (null == this.status){ return null; } + switch (this.status){ + case 0: + return "0(鍒濆鐘舵��)"; + case 1: + return "1(宸叉帴鏀�)"; + case 2: + return "2(寮傚父)"; + default: + return String.valueOf(this.status); + } + } + } -- Gitblit v1.9.1