huminmin
2026-04-27 2a71f6790ddf6be7f63e6b009fc8d325a2a1d13b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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));
    }
 
}