package com.ruoyi.production.controller;
|
|
import com.ruoyi.framework.web.domain.R;
|
import com.ruoyi.production.bean.vo.ProductionBomStructureVo;
|
import com.ruoyi.production.service.ProductionBomStructureService;
|
import io.swagger.v3.oas.annotations.Operation;
|
import lombok.AllArgsConstructor;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.PathVariable;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import java.util.List;
|
|
/**
|
* <p>
|
* 生产订单BOM产品结构 前端控制器
|
* </p>
|
*
|
* @author 芯导软件(江苏)有限公司
|
* @since 2026-04-21 03:55:52
|
*/
|
@RestController
|
@RequestMapping("/productionBomStructure")
|
@AllArgsConstructor
|
public class ProductionBomStructureController {
|
|
private ProductionBomStructureService productionBomStructureService;
|
|
@GetMapping("/listByBomId/{bomId}")
|
@Operation(summary = "根据BOM查询生产订单BOM结构树")
|
public R<List<ProductionBomStructureVo>> listByBomId(@PathVariable Long bomId) {
|
return R.ok(productionBomStructureService.listByBomId(bomId));
|
}
|
|
}
|