跳过困料暂存区 后端数据校验

This commit is contained in:
张江玮
2023-02-15 09:26:20 +08:00
parent 8e6a64c18c
commit c8b54b5fb4
14 changed files with 170 additions and 64 deletions

View File

@@ -317,13 +317,13 @@ public class HfStationDeviceDriver extends AbstractOpcDeviceDriver implements De
break;
case 6:
//呼叫空盅
if (!callEmptyRequireSucess && StrUtil.isNotEmpty(order)) {
if (!callEmptyRequireSucess && move == 0) {
callEmpty();
}
break;
case 7:
//满盅入库
if (!fullInRequireSucess && StrUtil.isNotEmpty(order)) {
if (!fullInRequireSucess && move != 0) {
fullIn();
}
break;

View File

@@ -69,6 +69,14 @@ public class WmsToAcsController {
return new ResponseEntity<>(wmstoacsService.forceFinishFromWms(whereJson), HttpStatus.OK);
}
@PostMapping("/queryGT04Status")
@Log("查询GT04状态")
@ApiOperation("查询GT04状态")
@SaIgnore
public ResponseEntity<Object> queryGT04Status() throws Exception {
return new ResponseEntity<>(wmstoacsService.queryGT04Status(), HttpStatus.OK);
}
}

View File

@@ -41,5 +41,5 @@ public interface WmsToAcsService {
Map<String, Object> forceFinishFromWms(String jsonObject) throws Exception;
Map<String, Object> queryGT04Status();
}

View File

@@ -363,4 +363,11 @@ public class WmsToAcsServiceImpl implements WmsToAcsService {
return resultJson;
}
@Override
public Map<String, Object> queryGT04Status() {
HfStationDeviceDriver gt04 = (HfStationDeviceDriver) deviceAppService.findDeviceByCode("GT04").getDeviceDriver();
JSONObject result = new JSONObject();
result.put("GT04", gt04.getMode() != 0 && gt04.getMove() == 0);
return result;
}
}