廖井涛
2025-09-18 7b5f1e33b4936c02fbe31d4b064ea3873da2e511
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
package com.example.erp.controller.sd;
 
import cn.dev33.satoken.annotation.SaCheckPermission;
import com.example.erp.common.Result;
import com.example.erp.entity.sd.BasicData;
import com.example.erp.entity.sd.BomBase;
import com.example.erp.service.sd.BasicDataService;
import com.example.erp.service.sd.BomDataService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
 
import java.util.Map;
 
@RestController
@RequestMapping("/BomData")
@Api(value="BOM相关controller",tags={"BOM相关操作接口"})
public class BomDataController {
    final
    BomDataService bomDataService;
 
    public BomDataController(BomDataService bomDataService) {
        this.bomDataService = bomDataService;
    }
    @ApiOperation("更新基础数据")
    @PostMapping("saveMaterialBomData")
    public Result saveMaterialBomData(@RequestBody Map<String, Object> object){
        return  Result.seccess(bomDataService.saveMaterialBomDataSv(object));
    }
 
}