rev:搬运气胀轴

This commit is contained in:
2023-12-29 16:03:16 +08:00
parent 624898d4fb
commit e458d66bb6
2 changed files with 8 additions and 1 deletions

View File

@@ -14,6 +14,7 @@ import org.nl.modules.wql.util.SpringContextHolder;
import org.nl.wms.ext.acs.service.WmsToAcsService;
import org.nl.wms.pda.mps.service.CasingService;
import org.nl.wms.sch.tasks.CutConveyorTask;
import org.nl.wms.sch.tasks.PaperTrussTask;
import org.nl.wms.sch.tasks.PaperTubeTask;
import org.nl.wms.sch.tasks.URLEnum;
import org.springframework.stereotype.Component;
@@ -29,6 +30,8 @@ public class AutoCallEmptyVehicle {
private final PaperTubeTask paperTubeTask;
private final PaperTrussTask paperTrussTask;
private final WmsToAcsService wmsToAcsService;
public void run() {
@@ -396,7 +399,8 @@ public class AutoCallEmptyVehicle {
jo.put("vehicle_code", rows.getJSONObject(0).getString("pcsn"));
jo.put("material_code", rows.getJSONObject(0).getString("pcsn"));
jo.put("product_area", product_area);
paperTubeTask.createTask(jo);
jo.put("request_param", request_param);
paperTrussTask.createTask(jo);
//更新对应气胀轴为套轴完成
CasingService casingService = SpringContextHolder.getBean(CasingService.class);

View File

@@ -63,6 +63,9 @@ public class PaperTrussTask extends AbstractAcsTask {
if ("010605".equals(json.getString("task_type")) || "010603".equals(json.getString("task_type")) || "010604".equals(json.getString("task_type"))) {
dto.setVersion(json.getJSONObject("request_param").getString("have_generation"));
}
if ("010606".equals(json.getString("task_type"))) {
dto.setVersion(json.getJSONObject("request_param").getString("need_generation"));
}
resultList.add(dto);
}
return resultList;