mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-14 21:52:07 +08:00
测试获取优化算法接口,初步定义获取优化数据cfdata
This commit is contained in:
+8
-1
@@ -62,10 +62,17 @@ public class OptimizePlanController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/getOptimizeParam")
|
@GetMapping("/getOptimizeParam")
|
||||||
@Operation(summary = "获取优化算法参数 (未完成)")
|
@Operation(summary = "获取优化算法参数")
|
||||||
@PreAuthorize("@ss.hasPermission('executor:optimize-plate:create')")
|
@PreAuthorize("@ss.hasPermission('executor:optimize-plate:create')")
|
||||||
public CommonResult<OptimizeParamResVO> getOptimizeParam(@RequestParam @Valid @NotNull(message = "排单id不能空") Long planId) {
|
public CommonResult<OptimizeParamResVO> getOptimizeParam(@RequestParam @Valid @NotNull(message = "排单id不能空") Long planId) {
|
||||||
return CommonResult.success(optimizePlanService.getOptimizeParam(planId));
|
return CommonResult.success(optimizePlanService.getOptimizeParam(planId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("/getCfData")
|
||||||
|
@Operation(summary = "获取cfData")
|
||||||
|
@PreAuthorize("@ss.hasPermission('executor:optimize-plate:create')")
|
||||||
|
public CommonResult<OptimizeParamResVO> getCfData(@RequestParam @Valid @NotNull(message = "排单id不能空") Long planId) {
|
||||||
|
return CommonResult.success(optimizePlanService.getCfData(planId));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-1
@@ -182,7 +182,8 @@ public class OptimizePlanServiceImpl implements OptimizePlanService {
|
|||||||
.select(GoodsDO::getId ,GoodsDO::getWidth, GoodsDO::getHeight)
|
.select(GoodsDO::getId ,GoodsDO::getWidth, GoodsDO::getHeight)
|
||||||
.leftJoin(PlateDO.class, PlateDO::getGoodsId, GoodsDO::getGoodsId)
|
.leftJoin(PlateDO.class, PlateDO::getGoodsId, GoodsDO::getGoodsId)
|
||||||
.leftJoin(OrderItemDO.class, OrderItemDO::getPlanId, PlateDO::getPlateNo)
|
.leftJoin(OrderItemDO.class, OrderItemDO::getPlanId, PlateDO::getPlateNo)
|
||||||
.leftJoin(PlanItemDO.class, PlanItemDO::getItemId, OrderItemDO::getId);
|
.leftJoin(PlanItemDO.class, PlanItemDO::getItemId, OrderItemDO::getId)
|
||||||
|
.eq(PlanItemDO::getPlanId, planId);
|
||||||
|
|
||||||
GoodsDO goodsDO = goodsMapper.selectJoinOne(GoodsDO.class, wrapper);
|
GoodsDO goodsDO = goodsMapper.selectJoinOne(GoodsDO.class, wrapper);
|
||||||
rawSizes.add(OptimizeParamResVO.RawSize.builder()
|
rawSizes.add(OptimizeParamResVO.RawSize.builder()
|
||||||
|
|||||||
Reference in New Issue
Block a user