Browse Source

更新南京音飞项目

master
汪菘 3 years ago
parent
commit
9c3fcd3f1e
  1. 2
      hd/nladmin-system/src/main/java/org/nl/modules/quartz/task/AutoCleanLog.java
  2. 37
      hd/nladmin-system/src/main/java/org/nl/modules/quartz/task/NjyfQueryMagicAgvDeviceStatus.java
  3. 2
      hd/nladmin-system/src/main/java/org/nl/modules/quartz/task/ToAgvDevice.java
  4. BIN
      hd/nladmin-system/src/main/java/org/nl/modules/quartz/task/wql/sys.xls

2
hd/nladmin-system/src/main/java/org/nl/modules/quartz/task/AutoCleanLog.java

@ -19,7 +19,7 @@ public class AutoCleanLog {
public void run() throws Exception {
System.out.println("111");
// 0 0/1 0,1 * * ? 每天0-1点执行间隔10分钟一次
// 0 0/10 0,1 * * ? 每天0-1点执行间隔10分钟一次
//sys_log
//delete from sys_log where DATE(create_time) <= DATE(DATE_SUB(NOW(),INTERVAL 30 day)) limit 10;
WQLObject logTab = WQLObject.getWQLObject("sys_log");

37
hd/nladmin-system/src/main/java/org/nl/modules/quartz/task/NjyfQueryMagicAgvDeviceStatus.java

@ -0,0 +1,37 @@
package org.nl.modules.quartz.task;
import cn.hutool.http.HttpResponse;
import lombok.extern.slf4j.Slf4j;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import org.nl.acs.agv.server.AgvService;
import org.nl.acs.device_driver.electric_fence.ElectricFenceDeviceDriver;
import org.nl.acs.device_driver.feedback_agv_status_site.FeedbackAGVStatusSiteDeviceDriver;
import org.nl.acs.instruction.service.InstructionService;
import org.nl.acs.opc.Device;
import org.nl.acs.opc.DeviceAppService;
import org.nl.acs.opc.DeviceAppServiceImpl;
import org.nl.utils.SpringContextHolder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
* 查询AGV设备状态
*/
@Slf4j
@Component
public class NjyfQueryMagicAgvDeviceStatus {
@Autowired
InstructionService instructionService;
@Autowired
AgvService agvService;
public void run() throws Exception {
HttpResponse response = agvService.queryMagicAgvDeviceStatus();
System.out.println(response.body());
}
}

2
hd/nladmin-system/src/main/java/org/nl/modules/quartz/task/ToAgvDevice.java

@ -46,7 +46,7 @@ public class ToAgvDevice {
row.put("positionAngle", agvDto.getPositionAngle());
agv_rows.add(row);
}
json.put("agv_rows", agv_rows);
// json.put("agv_rows", agv_rows);
acsToWmsService.feedbackAgv(agv_rows);
}

BIN
hd/nladmin-system/src/main/java/org/nl/modules/quartz/task/wql/sys.xls

Binary file not shown.
Loading…
Cancel
Save