info接口修改,增加订单供给关系接口

parent 5330e8fc
...@@ -8,6 +8,7 @@ import com.aps.entity.Algorithm.Chromosome; ...@@ -8,6 +8,7 @@ import com.aps.entity.Algorithm.Chromosome;
import com.aps.entity.basic.ScheduleChromosome; import com.aps.entity.basic.ScheduleChromosome;
import com.aps.entity.Gantt.ProductGanttVO; import com.aps.entity.Gantt.ProductGanttVO;
import com.aps.entity.Gantt.ResourceGanttVO; import com.aps.entity.Gantt.ResourceGanttVO;
import com.aps.entity.Gantt.SupplyRelationResponse;
import com.aps.entity.Gantt.TaskVO; import com.aps.entity.Gantt.TaskVO;
import com.aps.entity.basic.*; import com.aps.entity.basic.*;
import com.aps.service.plan.PlanResultService; import com.aps.service.plan.PlanResultService;
...@@ -875,5 +876,30 @@ public class ResourceGanttController { ...@@ -875,5 +876,30 @@ public class ResourceGanttController {
return R.ok("工单拖拽排序成功"); return R.ok("工单拖拽排序成功");
} }
@PostMapping("/supplyRelation")
@Operation(summary = "获取供给关系", description = "根据工单工序ID获取其供给关系",
requestBody = @io.swagger.v3.oas.annotations.parameters.RequestBody(
description = "获取供给关系参数",
content = @io.swagger.v3.oas.annotations.media.Content(
mediaType = "application/json",
examples = @io.swagger.v3.oas.annotations.media.ExampleObject(
name = "获取供给关系示例",
value = "{\n \"sceneId\": \"B571EF6682DB463AB2977B1055A74112\",\n \"entryId\": 472\n}"
)
)
)
)
public R<SupplyRelationResponse> getSupplyRelation(@RequestBody Map<String, Object> params) {
log.info("getSupplyRelation 请求参数: {}", params);
// 提取参数
String sceneId = ParamValidator.getString(params, "sceneId", "场景ID");
Integer entryId = ParamValidator.getInteger(params, "entryId", "工序ID");
ParamValidator.validateSceneExists(sceneService, sceneId);
// 调用服务获取供给关系
List<Object> data = planResultService.getSupplyRelation(sceneId, entryId, sceneService);
return R.ok(SupplyRelationResponse.success(data));
}
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment