You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1.1 KiB

  1. package com.spring.modules.part.controller;
  2. import com.spring.common.utils.R;
  3. import com.spring.modules.part.dto.ManufacturingStructuresBatchSaveDto;
  4. import com.spring.modules.part.service.ManufacturingStructuresService;
  5. import org.springframework.beans.factory.annotation.Autowired;
  6. import org.springframework.web.bind.annotation.PostMapping;
  7. import org.springframework.web.bind.annotation.RequestBody;
  8. import org.springframework.web.bind.annotation.RequestMapping;
  9. import org.springframework.web.bind.annotation.ResponseBody;
  10. import org.springframework.web.bind.annotation.RestController;
  11. /**
  12. * 制造结构维护批量保存内部逐条调用 {@link com.spring.modules.part.service.BomManagementService#updateBomComponent}
  13. */
  14. @RestController
  15. @RequestMapping("plm/manufacturingStructures")
  16. public class ManufacturingStructuresController {
  17. @Autowired
  18. private ManufacturingStructuresService manufacturingStructuresService;
  19. @PostMapping("/batchSave")
  20. @ResponseBody
  21. public R batchSave(@RequestBody ManufacturingStructuresBatchSaveDto dto) {
  22. manufacturingStructuresService.batchSave(dto);
  23. return R.ok();
  24. }
  25. }