AmstruckPurplanMaterialController.java 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. package com.steerinfo.dil.controller;
  2. import com.steerinfo.dil.service.IAmstruckPurplanMaterialService;
  3. import com.steerinfo.dil.util.BaseRESTfulController;
  4. import com.steerinfo.framework.controller.RESTfulResult;
  5. import io.swagger.annotations.ApiOperation;
  6. import org.springframework.beans.factory.annotation.Autowired;
  7. import org.springframework.web.bind.annotation.PostMapping;
  8. import org.springframework.web.bind.annotation.RequestBody;
  9. import org.springframework.web.bind.annotation.RequestMapping;
  10. import org.springframework.web.bind.annotation.RestController;
  11. import java.util.Map;
  12. /**
  13. * @ author :TXF
  14. * @ time :2021/10/27 14:08
  15. */
  16. @RestController
  17. @RequestMapping("/${api.version}/amstruckpurplanmaterial")
  18. public class AmstruckPurplanMaterialController extends BaseRESTfulController {
  19. @Autowired
  20. IAmstruckPurplanMaterialService amstruckPurplanMaterialService;
  21. @ApiOperation(value="更改计划子表重量")
  22. @PostMapping("/updateMaterial")
  23. public RESTfulResult updateMaterial(@RequestBody(required = false) Map<String, Object> map){
  24. amstruckPurplanMaterialService.updateMaterial(map);
  25. return success(1);
  26. }
  27. }