From 5d0f7a5aa4ee994782f3f3bcc66e23653a6ac40a Mon Sep 17 00:00:00 2001 From: zjj <3272660260@qq.com> Date: 星期五, 19 七月 2024 10:07:46 +0800 Subject: [PATCH] # --- src/main/java/com/zy/asrs/entity/WrkMastSta.java | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 54 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/zy/asrs/entity/WrkMastSta.java b/src/main/java/com/zy/asrs/entity/WrkMastSta.java index c777b4d..ee95451 100644 --- a/src/main/java/com/zy/asrs/entity/WrkMastSta.java +++ b/src/main/java/com/zy/asrs/entity/WrkMastSta.java @@ -137,6 +137,18 @@ this.wrkCrn = wrkCrn; } + public WrkMastSta(Date now, Integer staStart,Integer staEnd) { + this.wrkNo = staStart.longValue()+1000L; + this.wrkStart = staStart; + this.wrkEnd = staEnd; + this.staStart = staStart; + this.staEnd = staEnd; + this.createTime = now; + this.updateTime = now; + this.wrkSts = 0; + this.bignTime = now; + } + // WrkMastSta wrkMastSta = new WrkMastSta( // null, // 宸ヤ綔鍙穂闈炵┖] // null, // 宸ヤ綔妗e紑濮嬩綅缃甗闈炵┖] @@ -160,6 +172,48 @@ return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); } + public String getType$() { + if (Cools.isEmpty(this.type)) { + return ""; + } + switch (this.type) { + case 1: + return "闈炵┖"; + case 2: + return "绌烘澘"; + default: + return ""; + } + } + + /** + * 宸ヤ綔鐘舵�� 0锛氬垵濮� 1锛氱瓑寰呭皬杞﹀彇 2锛氱瓑寰呭皬杞︽斁 3锛氬畬鎴� + */ + public String getWrkSts$() { + if (Cools.isEmpty(this.wrkSts)) { + try { + if (this.wrkSts==0){ + return "鍒濆"; + } + }catch (Exception e){ + return ""; + } + return ""; + } + switch (this.wrkSts) { + case 0: + return "鍒濆"; + case 1: + return "绛夊緟灏忚溅鍙�"; + case 2: + return "绛夊緟灏忚溅鏀�"; + case 3: + return "瀹屾垚"; + default: + return ""; + } + } + public String getUpdateTime$(){ if (Cools.isEmpty(this.updateTime)){ return ""; -- Gitblit v1.9.1