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); HttpResponse result = acsToWmsService.queryCribbingInfo(json);
if (ObjectUtil.isNotEmpty(result)) { if (ObjectUtil.isNotEmpty(result)) {
if (ObjectUtil.isEmpty(result.body())) {
this.writing(20);
this.setRequireSucess(true);
return true;
}
JSONObject jsonObject = JSONObject.parseObject(result.body()); JSONObject jsonObject = JSONObject.parseObject(result.body());
if (result.getStatus() == 200 && StrUtil.equals(jsonObject.getString("status"),"200")) { if (result.getStatus() == 200 && StrUtil.equals(jsonObject.getString("status"),"200")) {
JSONObject content = jsonObject.getJSONObject("content"); 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) { 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(); instruction_require();
} }
break; break;

View File

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

View File

@@ -125,7 +125,7 @@ public class StructFindUtil {
// 先匹配类型 // 先匹配类型
if (StrUtil.equals(materialType, lineMaterialType)) { 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; continue;
} }
return line; return line;

View File

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

View File

@@ -35,7 +35,7 @@ public class CheckOutServiceImpl implements CheckOutService {
if (StrUtil.isEmpty(vehicle_code)) { if (StrUtil.isEmpty(vehicle_code)) {
throw new BadRequestException("托盘号不能为空!"); 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(); JSONObject returnjo = new JSONObject();
returnjo.put("code", "1"); returnjo.put("code", "1");
returnjo.put("desc", "查询成功!"); returnjo.put("desc", "查询成功!");

View File

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

View File

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

View File

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

View File

@@ -74,8 +74,9 @@ public class AutoOutStructTask {
param.put("area_type", "01"); param.put("area_type", "01");
param.put("if_full", "1"); param.put("if_full", "1");
param.put("material_type", line.getString("material_type")); param.put("material_type", line.getString("material_type"));
if (StrUtil.isNotEmpty(line.getString("material_code"))) { String lineMaterialCode = line.getString("material_code");
param.put("material_code", 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)) { if (ObjectUtil.isNotEmpty(structObj)) {