From 2b4b495c41695a21b10c548599a0af98e984eda5 Mon Sep 17 00:00:00 2001 From: yxFwq <1> Date: 星期五, 19 七月 2024 15:16:45 +0800 Subject: [PATCH] # --- src/main/java/com/zy/asrs/entity/BasJarMast.java | 81 ++++++++++++++++++++++++++++++++++++---- 1 files changed, 73 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/zy/asrs/entity/BasJarMast.java b/src/main/java/com/zy/asrs/entity/BasJarMast.java index c8ab673..29119ad 100644 --- a/src/main/java/com/zy/asrs/entity/BasJarMast.java +++ b/src/main/java/com/zy/asrs/entity/BasJarMast.java @@ -29,13 +29,13 @@ * ID */ @ApiModelProperty(value= "ID") + @TableId(value = "id", type = IdType.AUTO) private Long id; /** * 宸ヤ綔鍙� */ @ApiModelProperty(value= "宸ヤ綔鍙�") - @TableId(value = "wrk_no", type = IdType.INPUT) @TableField("wrk_no") private Long wrkNo; @@ -195,6 +195,24 @@ this.burial = jar.getBurial(); } + public BasJarMast(BasJar jar) { + Date now = new Date(); +// this.jarEnterStaNo = jarEnterStaNo; + this.jarOutStaNo = jar.getStaNo(); + this.jarId = jar.getJarNo(); + this.jarRegin = jar.getRegion(); + this.status = 0; + this.enterSteNo = jar.getEnterSteNo(); + this.outSteId = jar.getOutSteNo(); + this.enterRgvId = jar.getEnterRgvNo();; + this.outRgvId = jar.getOutRgvNo();; + this.ioTime = now; + this.modiTime = now; + this.appeTime = now; + this.jarLocDigit = jarLocDigit; + this.burial = jar.getBurial(); + } + // BasJarMast basJarMast = new BasJarMast( // null, // 宸ヤ綔鍙穂闈炵┖] @@ -223,32 +241,52 @@ return null; /* - statusList.add(15);//瀹屾垚 杈撻�佺嚎瀛樺湪宸ヤ綔鍙枫��===銆嬭浆鍘嗗彶妗f - case 5://灏忚溅绉诲姩鑷冲喎鍗存Ы浠诲姟 //鍑哄喎鍗存Ы浠诲姟 //寮�鍑烘枡闂ㄤ换鍔� + default: + statusList.add(17);//瀹屾垚 杈撻�佺嚎瀛樺湪宸ヤ綔鍙枫��===銆嬭浆鍘嗗彶妗f + case 7://鍑哄喎鍗存Ы浠诲姟 + case 6://灏忚溅绉诲姩鑷冲喎鍗存Ы浠诲姟 + case 5://寮�鍑烘枡闂ㄤ换鍔� statusList.add(10);//鍏ュ喎鍗存Ы瀹屾垚 case 4://鍑虹~鍖栫綈浠诲姟 statusList.add(11);//鍐峰嵈涓� - if (type!=5){ + + if (type!=6){ statusList.add(12);//鍐峰嵈瀹屾垚 } - statusList.add(13);//鍑哄喎鍗存Ы涓� - statusList.add(14);//鍑哄喎鍗存Ы瀹屾垚 + statusList.add(13);//鍐峰嵈瀹屾垚璋冨皬杞︿换鍔� + case 3://鍏宠繘鏂欓棬浠诲姟 //鐢熸垚鍒濆浠诲姟 statusList.add(4);//鍏ョ~鍖栫綈瀹屾垚 + case 2://鍏宠繘鏂欓棬浠诲姟 //鐢熸垚鍒濆浠诲姟 statusList.add(0);//鍒濆 + case 1://寮�杩涙枡闂ㄤ换鍔� statusList.add(2);//杩涙枡闂ㄦ墦寮� + case 0://鍏ョ~鍖栫綈浠诲姟 statusList.add(1);//寮�杩涙枡闂ㄤ腑 statusList.add(3);//鍏ョ~鍖栫綈涓� + statusList.add(5);//纭寲涓��===銆嬪叧闂ㄥ畬鎴� - if (type!=4){ + + if (type!=5){ statusList.add(6);//纭寲瀹屾垚 } + statusList.add(7);//寮�鍑烘枡闂ㄤ腑 - statusList.add(8);//鍑烘枡闂ㄦ墦寮� + + if (type!=4){ + statusList.add(8);//鍑烘枡闂ㄦ墦寮� + } + statusList.add(9);//鍑虹~鍖栫綈涓��===銆嬪叆鍐峰嵈妲戒腑 + + statusList.add(15);//鍑哄喎鍗存Ы涓� + statusList.add(16);//鍑哄喎鍗存Ы瀹屾垚 + if (type!=7){ + statusList.add(14);//灏忚溅鍒拌揪鍐峰嵈妲� + } * */ } @@ -273,5 +311,32 @@ return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); } + public Integer getStatusComplete(){ + return this.status+1; + } + + /** + * ioType浠诲姟绫诲瀷 + * 0: 鏈煡 1: 寮�杩涙枡闂� 2: 鍏宠繘鏂欓棬 3: 寮�鍑烘枡闂� 4: 鍏冲嚭鏂欓棬 5: 鍏ョ~鍖栫綈 6: 鍏ュ喎鍗存Ы + * 7: 绌挎杞﹁繘鍐峰嵈妲� B=>C 8: 绌挎杞︾寮�鍐峰嵈妲� C=>B 9: 鍑哄喎鍗存Ы 10锛欰=>B 11:B=>A + */ + public Integer getStatusComplete(Integer ioType){ + switch (ioType){ + case 1: + return 2; + case 3: + return 8; + case 2: + return 5; + case 5: + return 4; + case 6: + return 10; + case 9: + return 17; + } + return this.status+1; + } + } -- Gitblit v1.9.1