From 3f194f5ef62ef33d16291540da3fc8f47fa9bc63 Mon Sep 17 00:00:00 2001 From: lsh <1> Date: 星期六, 13 一月 2024 15:54:06 +0800 Subject: [PATCH] # --- src/main/java/com/zy/asrs/task/WrkMastStaInItScheduler.java | 61 ++++++++++++++++++++++-------- 1 files changed, 45 insertions(+), 16 deletions(-) diff --git a/src/main/java/com/zy/asrs/task/WrkMastStaInItScheduler.java b/src/main/java/com/zy/asrs/task/WrkMastStaInItScheduler.java index 4422c70..3c4f475 100644 --- a/src/main/java/com/zy/asrs/task/WrkMastStaInItScheduler.java +++ b/src/main/java/com/zy/asrs/task/WrkMastStaInItScheduler.java @@ -46,15 +46,37 @@ BasDevp basDevp = basDevpService.selectById(staNo); if (basDevp.getWrkNo()!=0){ WrkMast wrkMast = wrkMastService.selectOne(new EntityWrapper<WrkMast>().eq("wrk_no", basDevp.getWrkNo())); + if(Cools.isEmpty(wrkMast)){ + continue; + } + if (wrkMast.getIoType()<100 || wrkMast.getIoType()==110){ + continue; + } if (wrkMast.getWrkSts()!=14 && wrkMast.getWrkSts()!=15){ continue; } + boolean wrkTypeSign = fullKM(wrkMast); if (!Cools.isEmpty(wrkMast)){ - ReturnT<String> result = wrkMastStaInItHandler.start(wrkMast,basDevp,1); - if (result.getCode()==200){ - continue; - }else { - System.out.println(staNo+"澶辫触锛�"); + if (wrkTypeSign) { +// ReturnT<String> result = wrkMastStaInItHandler.start(wrkMast,basDevp,11);//1:鍙栵紙鍙犵洏锛� +// if (result.getCode()==200){ +// continue; +// }else { +// System.out.println(staNo+"澶辫触锛�"); +// } + ReturnT<String> result = wrkMastStaInItHandler.start(wrkMast,basDevp,13);//3锛氬彇鏀� + if (result.getCode()==200){ + continue; + }else { + System.out.println(staNo+"澶辫触锛�"); + } + } else { + ReturnT<String> result = wrkMastStaInItHandler.start(wrkMast,basDevp,13);//3锛氬彇鏀� + if (result.getCode()==200){ + continue; + }else { + System.out.println(staNo+"澶辫触锛�"); + } } } } @@ -64,26 +86,33 @@ BasDevp basDevp = basDevpService.selectById(staNo); if (basDevp.getWrkNo()!=0){ WrkMast wrkMast = wrkMastService.selectOne(new EntityWrapper<WrkMast>().eq("wrk_no", basDevp.getWrkNo())); - if (wrkMast.getWrkSts()!=2){ + if (wrkMast.getWrkSts()!=2 || wrkMast.getIoType()==10){ continue; } - boolean wrkTypeSign = fillKM(wrkMast); - if (wrkTypeSign){ +// boolean wrkTypeSign = fullKM(wrkMast); - } if (!Cools.isEmpty(wrkMast)){ - ReturnT<String> result = wrkMastStaInItHandler.start(wrkMast,basDevp,2); - if (result.getCode()==200){ - continue; - }else { - System.out.println(staNo+"澶辫触锛�"); - } +// if (wrkTypeSign){ + ReturnT<String> result = wrkMastStaInItHandler.start(wrkMast,basDevp,13); + if (result.getCode()==200) { + continue; + } else { + System.out.println(staNo+"澶辫触锛�"); + } +// }else { +// ReturnT<String> result = wrkMastStaInItHandler.start(wrkMast,basDevp,23); +// if (result.getCode()==200) { +// continue; +// } else { +// System.out.println(staNo+"澶辫触锛�"); +// } +// } } } } } - public boolean fillKM(WrkMast wrkMast){ + public boolean fullKM(WrkMast wrkMast){ if (wrkMast.getIoType()!=10 && wrkMast.getIoType()!=110){ return true; } -- Gitblit v1.9.1