From df0b6fcc2486c78677acdb8ac2570ae26c62909a Mon Sep 17 00:00:00 2001 From: lsh <1> Date: 星期三, 10 一月 2024 21:20:59 +0800 Subject: [PATCH] # --- src/main/java/com/zy/asrs/task/handler/WrkMastStaInItHandler.java | 28 +++++++++++++++++++++------- 1 files changed, 21 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/zy/asrs/task/handler/WrkMastStaInItHandler.java b/src/main/java/com/zy/asrs/task/handler/WrkMastStaInItHandler.java index 40d8991..d13466b 100644 --- a/src/main/java/com/zy/asrs/task/handler/WrkMastStaInItHandler.java +++ b/src/main/java/com/zy/asrs/task/handler/WrkMastStaInItHandler.java @@ -34,21 +34,35 @@ try { WrkMastSta wrkMastSta = wrkMastStaService.selectOne(new EntityWrapper<WrkMastSta>().eq("wrk_no", wrkMast.getWrkNo().longValue())); switch (type){ - case 11://婊″嚭 + case 13://鍑� 3锛氬彇鏀� if (Cools.isEmpty(wrkMastSta)){ WrkMastSta wrkMastSta1 = new WrkMastSta(wrkMast,new Date(),basDevp); - wrkMastSta1.setType(fillKM(wrkMast)? 0:1); - wrkMastSta1.setWrkType(3); + wrkMastSta1.setType(fullKM(wrkMast)? 1:2); //绫诲瀷 1:闈炵┖ 2:绌烘澘 + wrkMastSta1.setWrkType(3); //宸ヤ綔绫诲瀷 1:鍙栵紙鍙犵洏锛� 2锛氭媶鐩� 3锛氬彇鏀� 5锛氭弧鍙� 6锛氭弧鏀� wrkMastStaService.insert(wrkMastSta1); } break; - case 2://鍏� + case 21://1:鍙栵紙鍙犵洏锛� if (Cools.isEmpty(wrkMastSta)){ WrkMastSta wrkMastSta1 = new WrkMastSta(wrkMast,new Date(),basDevp); - wrkMastSta1.setType(fillKM(wrkMast)? 0:1); - wrkMastSta1.setWrkType(3); + wrkMastSta1.setType(fullKM(wrkMast)? 1:2); + wrkMastSta1.setWrkType(1); wrkMastStaService.insert(wrkMastSta1); } + case 22://2锛氭斁 + if (Cools.isEmpty(wrkMastSta)){ + WrkMastSta wrkMastSta1 = new WrkMastSta(wrkMast,new Date(),basDevp); + wrkMastSta1.setType(fullKM(wrkMast)? 1:2); + wrkMastSta1.setWrkType(5); + wrkMastStaService.insert(wrkMastSta1); + } +// case 23://3锛氬彇鏀� +// if (Cools.isEmpty(wrkMastSta)){ +// WrkMastSta wrkMastSta1 = new WrkMastSta(wrkMast,new Date(),basDevp); +// wrkMastSta1.setType(fullKM(wrkMast)? 1:2); +// wrkMastSta1.setWrkType(3); +// wrkMastStaService.insert(wrkMastSta1); +// } default: return FAIL; } @@ -60,7 +74,7 @@ return FAIL; } - public boolean fillKM(WrkMast wrkMast){ + public boolean fullKM(WrkMast wrkMast){ if (wrkMast.getIoType()!=10 && wrkMast.getIoType()!=110){ return true; } -- Gitblit v1.9.1