package com.spring.modules.part.controller; import com.spring.common.utils.R; import com.spring.modules.part.dto.ManufacturingStructuresBatchSaveDto; import com.spring.modules.part.service.ManufacturingStructuresService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.RestController; /** * 制造结构维护:批量保存(内部逐条调用 {@link com.spring.modules.part.service.BomManagementService#updateBomComponent}) */ @RestController @RequestMapping("plm/manufacturingStructures") public class ManufacturingStructuresController { @Autowired private ManufacturingStructuresService manufacturingStructuresService; @PostMapping("/batchSave") @ResponseBody public R batchSave(@RequestBody ManufacturingStructuresBatchSaveDto dto) { manufacturingStructuresService.batchSave(dto); return R.ok(); } }