This commit is contained in:
2023-02-05 20:29:46 +08:00
parent 3ae3f0e409
commit b650280c14

View File

@@ -117,15 +117,16 @@ public class AMHandServiceImpl implements AMHandService {
standardInspectSiteDeviceDriver = (StandardInspectSiteDeviceDriver) device_driver.getDeviceDriver();
int move = standardInspectSiteDeviceDriver.getMove();
TaskDto taskDto = taskService.findByStartAndNextCode(device_code);
if (move != 0 && ObjectUtil.isNotEmpty(taskDto)) {
if (ObjectUtil.isNotEmpty(taskDto)) {
status = "2";
status_name = "有任务";
material_type = "1";
} else if (move != 0) {
status = "1";
status_name = "有货";
material_type = "1";
}
// } else if (move != 0) {
// status = "1";
// status_name = "有货";
// material_type = "1";
// }
}
JSONObject map = new JSONObject();
map.put("device_id", device_id);