This commit is contained in:
loujf
2022-10-19 15:30:24 +08:00
parent 42e7c9b536
commit 92d72e9caf
10 changed files with 23 additions and 9 deletions

View File

@@ -912,6 +912,11 @@ public class LnshPackagePalletManipulatorDeviceDriver extends AbstractOpcDeviceD
HttpResponse result = acsToWmsService.queryCribbingInfo(json);
if (ObjectUtil.isNotEmpty(result)) {
if (ObjectUtil.isEmpty(result.body())) {
this.writing(20);
this.setRequireSucess(true);
return true;
}
JSONObject jsonObject = JSONObject.parseObject(result.body());
if (result.getStatus() == 200 && StrUtil.equals(jsonObject.getString("status"),"200")) {
JSONObject content = jsonObject.getJSONObject("content");

View File

@@ -352,6 +352,7 @@ public class LnshRGVDeviceDriver extends AbstractOpcDeviceDriver implements Devi
}
//前工位申请任务
if (mode == 2 && move_2 == 0 && action_2 == 0 && move_1 == 0 && task2 == 0 && !requireSucess1) {
System.out.println("move_2:" + move_2 + ",action_2:" + action_2 + ",move_1:" + move_1 + ",task2:" + task2 + ",requireSucess1:" + requireSucess1);
instruction_require();
}
break;

View File

@@ -1138,6 +1138,11 @@ public class RljnPackagePalletSplitManipulatorDeviceDriver extends AbstractOpcDe
HttpResponse result = acsToWmsService.queryCribbingInfo(json);
if (ObjectUtil.isNotEmpty(result)) {
if (ObjectUtil.isEmpty(result.body())) {
this.writing(20);
this.setRequireSucess(true);
return true;
}
JSONObject jsonObject = JSONObject.parseObject(result.body());
if (result.getStatus() == 200 && StrUtil.equals(jsonObject.getString("status"), "200")) {
JSONObject content = jsonObject.getJSONObject("content");
@@ -1391,9 +1396,9 @@ public class RljnPackagePalletSplitManipulatorDeviceDriver extends AbstractOpcDe
List<String> demoList = Arrays.asList(demoArray);
json.put("device_code",demoList.get(put_station-1).replace("\"",""));
//如果是1号对接位请求那么数量就传1号垛数量
if (put_station == 1) {
if (put_station == 3) {
json.put("qty",one_qty);
} else if (put_station == 2) {
} else if (put_station == 4) {
json.put("qty",two_qty);
}
json.put("vehicle_code",barcode);

View File

@@ -125,7 +125,7 @@ public class StructFindUtil {
// 先匹配类型
if (StrUtil.equals(materialType, lineMaterialType)) {
// 如果规定了特定类型 且 物料类型和特定类型不一致 下一轮循环
if (StrUtil.isNotEmpty(lineMaterialCode) && !StrUtil.equals(materialCode, lineMaterialCode)) {
if (StrUtil.isNotEmpty(lineMaterialCode) && !StrUtil.equals(lineMaterialCode, "0") && !StrUtil.equals(materialCode, lineMaterialCode)) {
continue;
}
return line;

View File

@@ -213,7 +213,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
JSONObject jsonObject1 = WQL.getWO("ACSTOMES_001").addParam("flag", "1")
.addParam("workprocedure_id", workprocedure_id)
.addParam("material_id", material_id)
.addParam("point_id", joo.getString("point_id"))
.addParam("device_id", joo.getString("device_id"))
.process().uniqueResult(0);
if (ObjectUtil.isNotEmpty(jsonObject1)) {
//如果有库存,则出半满托盘

View File

@@ -35,7 +35,7 @@ public class CheckOutServiceImpl implements CheckOutService {
if (StrUtil.isEmpty(vehicle_code)) {
throw new BadRequestException("托盘号不能为空!");
}
JSONObject resutl = WQL.getWO("QPADSERVICE").addParam("flag", "17").process().uniqueResult(0);
JSONObject resutl = WQL.getWO("QPADSERVICE").addParam("flag", "17").addParam("vehicle_code",vehicle_code).process().uniqueResult(0);
JSONObject returnjo = new JSONObject();
returnjo.put("code", "1");
returnjo.put("desc", "查询成功!");

View File

@@ -29,6 +29,7 @@
输入.buss_area_type TYPEAS s_string
输入.height TYPEAS s_string
输入.searchbar TYPEAS s_string
输入.vehicle_code TYPEAS s_string
[临时表]

View File

@@ -62,6 +62,7 @@
WHERE
task.is_delete = '0'
and task.produceTask_status <> '05'
and task.produceTask_status <> '99'
OPTION 输入.search <> ""
(task.producetask_code like 输入.search)
ENDOPTION

View File

@@ -276,7 +276,7 @@ public class CallEmptyVehicleTask extends AbstractAcsTask {
String task_status = TaskStatusEnum.SURE_END.getCode();
String bill_status = "10";
if (StrUtil.isNotEmpty(start_point_code)) {
PointDto startPoint = pointService.findByCode(start_point_code);
// PointDto startPoint = pointService.findByCode(start_point_code);
bill_status = "20";
task_status = TaskStatusEnum.START_AND_POINT.getCode();
//锁定起点

View File

@@ -74,10 +74,11 @@ public class AutoOutStructTask {
param.put("area_type", "01");
param.put("if_full", "1");
param.put("material_type", line.getString("material_type"));
if (StrUtil.isNotEmpty(line.getString("material_code"))) {
param.put("material_code", line.getString("material_code"));
String lineMaterialCode = line.getString("material_code");
if (StrUtil.isNotEmpty(lineMaterialCode) && !StrUtil.equals(lineMaterialCode, "0")) {
param.put("material_code", lineMaterialCode);
}
JSONObject structObj = WQL.getWO("QSTRUCT_RULE").addParamMap(param).process().uniqueResult(0);
JSONObject structObj = WQL.getWO("QSTRUCT_RULE").addParamMap(param).process().uniqueResult(0);
if (ObjectUtil.isNotEmpty(structObj)) {
JSONObject taskObj = new JSONObject();
taskObj.put("next_point_code", line.getString("point_code"));