From fe7247af6af58cbc8ea2526e8aa4eedaf545de6c Mon Sep 17 00:00:00 2001 From: zyx <zyx123456> Date: 星期五, 01 三月 2024 13:48:16 +0800 Subject: [PATCH] 增加单据页面单位 --- src/main/java/com/zy/asrs/entity/Pla.java | 29 +++++++++++++++++++++++++---- 1 files changed, 25 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/zy/asrs/entity/Pla.java b/src/main/java/com/zy/asrs/entity/Pla.java index e3029ec..76a5669 100644 --- a/src/main/java/com/zy/asrs/entity/Pla.java +++ b/src/main/java/com/zy/asrs/entity/Pla.java @@ -67,7 +67,7 @@ //鍖呰鍙� @TableField("package_no") @ExcelProperty(value = "鍖呰鍙�") - private String packageNo; + private Integer packageNo; //鍖呰鍙� @ExcelProperty(value = "鐢熶骇鏃ユ湡") @@ -223,7 +223,7 @@ //姝ラ @TableField("step") - private int step; + private Integer step; @TableField("create_time") private Date createTime; @@ -262,7 +262,7 @@ private String memo; @TableField("stock_freeze") - private int stockFreeze; + private Integer stockFreeze; @TableField("stock_freeze_by") private String stockFreezeBy; @@ -270,11 +270,32 @@ @TableField("stock_freeze_date") private Date stockFreezeDate; + public String getCreateTime$() { + if (Cools.isEmpty(this.createTime)){ + return ""; + } + return new SimpleDateFormat("yyyy-MM-dd").format(this.createTime); + } + + public String getPackageNo$(){ + if(Cools.isEmpty(packageNo)){ + return null; + } + if(packageNo < 10){ + return "00" + packageNo; + }else if(packageNo < 100){ + return "0" + packageNo; + }else { + return packageNo + ""; + } + + } + public String getPakinTime$() { if (Cools.isEmpty(this.pakinTime)){ return ""; } - return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.pakinTime); + return new SimpleDateFormat("yyyy-MM-dd HH").format(this.pakinTime); } public String getStockFreezeDate$() { -- Gitblit v1.9.1