feat: 二次分配数据设置

This commit is contained in:
2026-10-31 15:26:03 +08:00
parent 359f978636
commit 2f85485b2f

View File

@@ -320,11 +320,16 @@ public class NDCSocketConnectionAutoRun extends AbstractAutoRunnable {
if (response != null && response.getInteger("code") == 0) {
//申请成功以后更新指令和任务的终点
//反馈NDC
String newPoint = response.getString("data");
if (ObjectUtil.isEmpty(newPoint)) {
JSONObject data = response.getJSONObject("data");
if (ObjectUtil.isEmpty(data)) {
log.error("二次分配请求失败,LMS返回为空!");
return;
}
String newPoint = data.getString("data");
if (ObjectUtil.isEmpty(newPoint)) {
log.error("二次分配请求失败,LMS返回点位为空!");
return;
}
updataTask(inst, newPoint);
StorageCell storageCellDto = storageCellService.findByCode(newPoint);
if (ObjectUtil.isNotEmpty(storageCellDto)) {