From 21fde820e495c08cfa0ba277685468baa5bf9118 Mon Sep 17 00:00:00 2001 From: 懒羊羊 <15939171744@163.com> Date: 星期三, 13 十二月 2023 10:27:42 +0800 Subject: [PATCH] OPC --- guns-vip-main/src/main/java/cn/stylefeng/guns/plcserver/server/EOP030/impl/EOP030ServerInterfaceImpl.java | 21 --------------------- 1 files changed, 0 insertions(+), 21 deletions(-) diff --git a/guns-vip-main/src/main/java/cn/stylefeng/guns/plcserver/server/EOP030/impl/EOP030ServerInterfaceImpl.java b/guns-vip-main/src/main/java/cn/stylefeng/guns/plcserver/server/EOP030/impl/EOP030ServerInterfaceImpl.java index 4a0d2cd..74072c5 100644 --- a/guns-vip-main/src/main/java/cn/stylefeng/guns/plcserver/server/EOP030/impl/EOP030ServerInterfaceImpl.java +++ b/guns-vip-main/src/main/java/cn/stylefeng/guns/plcserver/server/EOP030/impl/EOP030ServerInterfaceImpl.java @@ -74,7 +74,6 @@ } } - handleOilState(); }else{ logger.info("EOP030宸ヤ綅涓嶱LC鏂紑,璇锋鏌LC鎴栫綉缁滄槸鍚﹀紓甯革紒"); } @@ -88,26 +87,6 @@ } } - public void handleOilState(){ - GreaseManageParam param = new GreaseManageParam(); - GreaseManageService greaseManageService = opc.greaseManageService; - param.setLocationCode(LOCATION_CODE); - List<GreaseManageResult> list = greaseManageService.findListBySpec(param); - if(list.size()>0) { - String duaDate = list.get(0).getDuaDate(); - LocalDate date1 = LocalDate.parse(duaDate); // 绗竴涓棩鏈� - LocalDate date2 = LocalDate.now(); // 褰撳墠鏃ユ湡锛堟垨鑰呮寚瀹氬叾浠栨棩鏈燂級 - - long daysBetween = ChronoUnit.DAYS.between(date1, date2); - - if(daysBetween>0){ - OPCUnit.write(opc.getOP050_OIL_STATE(), "false"); //鍐欐补鑴傜姸鎬� - }else{ - OPCUnit.write(opc.getOP050_OIL_STATE(), "true"); //鍐欐补鑴傜姸鎬� - } - logger.info("鍒版湡鏃ユ湡锛�"+date1+"褰撳墠鏃ユ湡锛�"+date1+"鍓╀綑澶╂暟锛氾細"+daysBetween); - } - } //PC璇诲伐鍗� public void handleOrder() { -- Gitblit v1.9.3