RmsMaterialController.java 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. package com.steerinfo.dil.controller;
  2. import com.steerinfo.dil.service.impl.RmsMaterialServiceImpl;
  3. import com.steerinfo.dil.util.BaseRESTfulController;
  4. import com.steerinfo.dil.util.PageListAdd;
  5. import com.steerinfo.framework.controller.RESTfulResult;
  6. import com.steerinfo.framework.service.pagehelper.PageHelper;
  7. import io.swagger.annotations.ApiImplicitParam;
  8. import io.swagger.annotations.ApiImplicitParams;
  9. import io.swagger.annotations.ApiModelProperty;
  10. import io.swagger.annotations.ApiOperation;
  11. import org.springframework.beans.factory.annotation.Autowired;
  12. import org.springframework.web.bind.annotation.PostMapping;
  13. import org.springframework.web.bind.annotation.RequestBody;
  14. import org.springframework.web.bind.annotation.RequestMapping;
  15. import org.springframework.web.bind.annotation.RestController;
  16. import java.util.List;
  17. import java.util.Map;
  18. /**
  19. * @Description:
  20. * @Author:HuJianGuo
  21. * @GreateTime:2021/10/22 17:34
  22. * @Version:V2.0
  23. */
  24. @RestController
  25. @RequestMapping("/${api.version}/rmsmaterial")
  26. public class RmsMaterialController extends BaseRESTfulController {
  27. @Autowired
  28. RmsMaterialServiceImpl rmsMaterialService;
  29. /**
  30. * 物资管理对接接口
  31. *
  32. * @param mapVal
  33. * @return
  34. */
  35. @ApiModelProperty(value = "物资管理对接接口")
  36. @ApiImplicitParams({
  37. @ApiImplicitParam(name = "EASMaterialId", value = "1", required = true, dataType = "String"),
  38. @ApiImplicitParam(name = "materialCode", value = "08010102010300005", required = true, dataType = "String"),
  39. @ApiImplicitParam(name = "materialType", value = "原料", required = true, dataType = "String"),
  40. @ApiImplicitParam(name = "materialName", value = "巴粉", required = true, dataType = "String"),
  41. @ApiImplicitParam(name = "materialSpecification", value = "", required = true, dataType = "String"),
  42. @ApiImplicitParam(name = "materialModel", value = "", required = true, dataType = "String"),
  43. @ApiImplicitParam(name = "unitOfMeasure", value = "吨", required = true, dataType = "String"),
  44. @ApiImplicitParam(name = "materialLength", value = "", required = true, dataType = "String"),
  45. @ApiImplicitParam(name = "dataStatus", value = "1", required = true, dataType = "Integer"),
  46. })
  47. @PostMapping("/operationMaterial")
  48. public RESTfulResult operationMaterial(@RequestBody Map<String, Object> mapVal) {
  49. int result = rmsMaterialService.operationMaterial(mapVal);
  50. return success(result);
  51. }
  52. }