From 25314b5ee613c48e7db31138d7fcb8abc4c536be Mon Sep 17 00:00:00 2001 From: zyx <zyx123456> Date: 星期日, 14 一月 2024 20:15:05 +0800 Subject: [PATCH] # 功能完善 --- src/main/java/com/zy/asrs/entity/Pla.java | 124 +++++++++++++++++++++++++++++++++-------- 1 files changed, 99 insertions(+), 25 deletions(-) diff --git a/src/main/java/com/zy/asrs/entity/Pla.java b/src/main/java/com/zy/asrs/entity/Pla.java index e55fe3e..9b7a25b 100644 --- a/src/main/java/com/zy/asrs/entity/Pla.java +++ b/src/main/java/com/zy/asrs/entity/Pla.java @@ -1,13 +1,16 @@ package com.zy.asrs.entity; +import com.alibaba.excel.annotation.ExcelProperty; import com.baomidou.mybatisplus.annotations.TableField; import com.baomidou.mybatisplus.annotations.TableId; import com.baomidou.mybatisplus.annotations.TableName; import com.baomidou.mybatisplus.enums.IdType; +import com.core.common.Cools; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import org.springframework.format.annotation.DateTimeFormat; +import java.text.SimpleDateFormat; import java.util.Date; @Data @@ -19,111 +22,175 @@ //鍏ュ簱鏃堕棿 @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") - @TableField("pakin_time") - private String pakinTime; + private Date pakinTime; - //鎵瑰彿 - @TableField("batch") - private String batch; + //涓讳綋 + @ExcelProperty(value = "涓讳綋") + @TableField("owner") + private String owner; - //鍖呰鍙� - @TableField("package_no") - private String packageNo; + //涓讳綋 + @ExcelProperty(value = "鐗╄祫绫诲埆") + @TableField("type") + private String type; - //鐗屽彿 - @TableField("brand") - private String brand; - - //閲嶉噺 - @TableField("weight") - private Double weight; + //鐢熶骇璁㈠崟缂栧彿 + @ExcelProperty(value = "鐢熶骇璁㈠崟缂栧彿") + @TableField("pro_order_no") + private String proOrderNo; //杞﹂棿 + @ExcelProperty(value = "鐢熶骇杞﹂棿") @TableField("workshop") private String workshop; //鐢熶骇绾� + @ExcelProperty(value = "鐢熶骇绾�") @TableField("line") private String line; + //鐢熶骇绾� + @ExcelProperty(value = "瀛樿揣缂栫爜") + @TableField("matnr") + private String matnr; + + //鐗屽彿 + @ExcelProperty(value = "鐗屽彿") + @TableField("brand") + private String brand; + + //鎵瑰彿 + @TableField("batch") + @ExcelProperty(value = "鎵瑰彿") + private String batch; + + //鍖呰鍙� + @TableField("package_no") + @ExcelProperty(value = "鍖呰鍙�") + private String packageNo; + + //鍖呰鍙� + @ExcelProperty(value = "鐢熶骇鏃ユ湡") + @TableField("pro_date") + private String proDate; + + //閲嶉噺 + @TableField("weight") + @ExcelProperty(value = "閲嶉噺") + private Double weight; + + @ApiModelProperty(value= "鍗曚綅") + @ExcelProperty(value = "鍗曚綅") + @TableField("unit") + private String unit; + //鍖呰绫诲瀷 @TableField("package_type") + @ExcelProperty(value = "鍖呰绫诲瀷") private String packageType; //鎵樼洏绫诲瀷 @TableField("zpallet_type") + @ExcelProperty(value = "鎵樼洏绫诲瀷") private String zpalletType; //缂犺啘 @TableField("film_wrap") + @ExcelProperty(value = "缂犺啘") private String filmWrap; //鐔旀寚 @TableField("finger_melting") + @ExcelProperty(value = "鐔旀寚") private Double fingerMelting; + + //姘村垎 + @TableField("water") + @ExcelProperty(value = "姘村垎") + private Double water; //鐔旂偣 @TableField("fusing_point") + @ExcelProperty(value = "鐔旂偣") private Double fusingPoint; //鎸ュ彂浠�1 @TableField("vadf1") + @ExcelProperty(value = "鎸ュ彂浠�1") private Double vadf1; //鎸ュ彂浠�2 @TableField("vadf2") + @ExcelProperty(value = "鎸ュ彂浠�2") private Double vadf2; //榛勫害 @TableField("yellowness") + @ExcelProperty(value = "榛勫害") private Double yellowness; //涓嶉�忔槑搴� @TableField("opacity") + @ExcelProperty(value = "涓嶉�忔槑搴�") private Double opacity; - - //姘村垎 - @TableField("water") - private Double water; //L鍊� @TableField("l") + @ExcelProperty(value = "l鍊�") private Double l; //a鍊� @TableField("a") + @ExcelProperty(value = "a鍊�") private Double a; //b鍊� @TableField("b") + @ExcelProperty(value = "b鍊�") private Double b; //濉厖 @TableField("fill_in") + @ExcelProperty(value = "濉厖") private Double fillIn; //璐ㄩ噺鐘舵�� @TableField("mass_state") + @ExcelProperty(value = "璐ㄩ噺鐘朵綋") private String massState; //璐ㄩ噺闂 @TableField("problem") + @ExcelProperty(value = "澶囨敞") private String problem; - //浠撳簱 - @TableField("stash") - private String stash; + //搴旂敤鏂瑰悜 + @ExcelProperty(value = "搴旂敤鏂瑰悜") + @TableField("direction") + private String direction; - //搴撲綅 - @TableField("loc_no") - private String locNo; + //瀛樻斁浣嶇疆 + @ExcelProperty(value = "瀛樻斁浣嶇疆") + @TableField("position") + private String position; //鍓╀綑閲嶉噺 @TableField("weight_anfme") + @ExcelProperty(value = "鍏ュ簱閲�") private Double weightAnfme = 0.0; //寰呭嚭搴撴暟閲� @TableField("qty_anfme") private Double qtyAnfme = 0.0; + + //浠撳簱 + @TableField("stash") + //@ExcelProperty(value = "浠撳簱") + private String stash; + + //搴撲綅 + @TableField("loc_no") + //@ExcelProperty(value = "搴撲綅") + private String locNo; //鐘舵�� @TableField("status") @@ -168,4 +235,11 @@ @TableField("memo") private String memo; + + public String getPakinTime$() { + if (Cools.isEmpty(this.pakinTime)){ + return ""; + } + return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.pakinTime); + } } -- Gitblit v1.9.1