Commit 171ab53b authored by Tong Li's avatar Tong Li

半成品,订单拆分

parent d9aa65fc
......@@ -326,7 +326,7 @@ public class ResourceGanttController {
log.info("spiltOrder 请求参数: {}", params);
String sceneId = ParamValidator.getString(params, "sceneId", "场景ID");
String orderid = ParamValidator.getString(params, "orderid", "订单ID");
String orderid = ParamValidator.getString(params, "orderId", "订单ID");
List<?> splitCounts = ParamValidator.getList(params, "splitCounts", "拆分数量");
Double[] splitCountsArray = ParamValidator.convertToDoubleArray(splitCounts, "拆分数量");
......
......@@ -563,7 +563,7 @@ if(routingIds.size()==0)
order.getFinishOrderId().add(forder.getId());
order.getTargetFinishedOperationId().add(operation.getId());
orderMaterial.getProductOrderID().add(forder.getId());
orderMaterial.getProductOrderID().add(order.getId());
double useq = Math.min(needed, order.getSYQuantity());
needed -= useq;
......
......@@ -36,16 +36,16 @@ public class PlanResultServiceTest {
// NSGAIIUtils nsgaiiUtils=new NSGAIIUtils();
// nsgaiiUtils.Test();
// planResultService.execute2("31EC5BAF7F6B41DFB79AB031D81C53C0");
planResultService.execute2("8B13052B347B4FC4B21D59E685B06642");
//planResultService.execute2("C5FB5EF2A7334A0A92F826F4937E1008");
// planResultService.execute2("8B13052B347B4FC4B21D59E685B06642");
// LocalDateTime t= LocalDateTime.of(2025, 11, 15, 6, 51, 11);
// List<Integer> opids=new ArrayList<>();
// opids.add(1);
// planResultService.Move("B571EF6682DB463AB2977B1055A74112",opids,t,3403L);
// planResultService.Redecode("B6AE363FF5044DDF8DECE32D5FE0F7EA");
// planResultService.Redecode("E2B98BDD535E467096E4444E7C739D8C");
//planResultService.SpiltOperation("B6AE363FF5044DDF8DECE32D5FE0F7EA",5,new Double[]{6d, 5d});
planResultService.SpiltOrder("A41D662EE0764D008173C5A0E42B15F6","5f9d5383-b89a-4a4f-8805-2f617c711968",new Double[]{500d, 500d});
}
@Test
......
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