opt:获取纸管长度

This commit is contained in:
2024-05-15 19:50:31 +08:00
parent 070946f905
commit 8eb06a6dcc
2 changed files with 15 additions and 15 deletions

View File

@@ -202,20 +202,20 @@ public class PdmBiSubpackagerelationServiceImpl extends ServiceImpl<PdmBiSubpack
updateWrapper.in("workorder_id", entityList); updateWrapper.in("workorder_id", entityList);
pdmBiSubpackagerelationMapper.update(null, updateWrapper); pdmBiSubpackagerelationMapper.update(null, updateWrapper);
//下发空木箱出库任务 //下发空木箱出库任务
// JSONObject boxInfo = new JSONObject(); JSONObject boxInfo = new JSONObject();
// //todo 测试暂时默认ZXQ_1_1 //todo 测试暂时默认ZXQ_1_1
// boxInfo.put("device_code", "ZXQ_1_1"); boxInfo.put("device_code", "ZXQ_1_1");
// boxInfo.put("material_code", boxType); boxInfo.put("material_code", boxType);
// boxInfo.put("num", entityList.size()); boxInfo.put("num", entityList.size());
// String boxSn = outBoxManageService.outBox(boxInfo); String boxSn = outBoxManageService.outBox(boxInfo);
// if (StringUtils.isBlank(boxSn)) { if (StringUtils.isBlank(boxSn)) {
// throw new BadRequestException("满轴缓存位 -> 待检区,木箱码不能为空!"); throw new BadRequestException("满轴缓存位 -> 待检区,木箱码不能为空!");
// } }
// //更新子卷包装关系更新木箱号 //更新子卷包装关系更新木箱号
// UpdateWrapper<PdmBiSubpackagerelation> updateWrapper1 = new UpdateWrapper<>(); UpdateWrapper<PdmBiSubpackagerelation> updateWrapper1 = new UpdateWrapper<>();
// updateWrapper1.set("package_box_sn", boxSn); updateWrapper1.set("package_box_sn", boxSn);
// updateWrapper1.in("workorder_id", entityList); updateWrapper1.in("workorder_id", entityList);
// pdmBiSubpackagerelationMapper.update(null, updateWrapper1); pdmBiSubpackagerelationMapper.update(null, updateWrapper1);
transferToPacking(packagerelationList); transferToPacking(packagerelationList);
} catch (Exception e) { } catch (Exception e) {
throw new BadRequestException(e.getMessage()); throw new BadRequestException(e.getMessage());

View File

@@ -111,7 +111,7 @@ public abstract class AbstractAcsTask {
List<AcsTaskDto> taskList = this.schedule(); List<AcsTaskDto> taskList = this.schedule();
if (ObjectUtil.isNotEmpty(taskList)) { if (ObjectUtil.isNotEmpty(taskList)) {
JSONArray arr = JSONArray.parseArray(JSON.toJSONString(taskList)); JSONArray arr = JSONArray.parseArray(JSON.toJSONString(taskList));
//return AcsUtil.notifyAcs("api/wms/task", arr); return AcsUtil.notifyAcs("api/wms/task", arr);
} }
return null; return null;
} }