123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- package com.steerinfo.dil.controller;
- import com.steerinfo.dil.service.impl.RmsMaterialServiceImpl;
- import com.steerinfo.dil.util.BaseRESTfulController;
- import com.steerinfo.dil.util.PageListAdd;
- import com.steerinfo.framework.controller.RESTfulResult;
- import com.steerinfo.framework.service.pagehelper.PageHelper;
- import io.swagger.annotations.ApiImplicitParam;
- import io.swagger.annotations.ApiImplicitParams;
- import io.swagger.annotations.ApiModelProperty;
- import io.swagger.annotations.ApiOperation;
- 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.RestController;
- import java.util.List;
- import java.util.Map;
- /**
- * @Description:
- * @Author:HuJianGuo
- * @GreateTime:2021/10/22 17:34
- * @Version:V2.0
- */
- @RestController
- @RequestMapping("/${api.version}/rmsmaterial")
- public class RmsMaterialController extends BaseRESTfulController {
- @Autowired
- RmsMaterialServiceImpl rmsMaterialService;
- /**
- * 物资管理对接接口
- *
- * @param mapVal
- * @return
- */
- @ApiModelProperty(value = "物资管理对接接口")
- @ApiImplicitParams({
- @ApiImplicitParam(name = "EASMaterialId", value = "1", required = true, dataType = "String"),
- @ApiImplicitParam(name = "materialCode", value = "08010102010300005", required = true, dataType = "String"),
- @ApiImplicitParam(name = "materialType", value = "原料", required = true, dataType = "String"),
- @ApiImplicitParam(name = "materialName", value = "巴粉", required = true, dataType = "String"),
- @ApiImplicitParam(name = "materialSpecification", value = "", required = true, dataType = "String"),
- @ApiImplicitParam(name = "materialModel", value = "", required = true, dataType = "String"),
- @ApiImplicitParam(name = "unitOfMeasure", value = "吨", required = true, dataType = "String"),
- @ApiImplicitParam(name = "materialLength", value = "", required = true, dataType = "String"),
- @ApiImplicitParam(name = "dataStatus", value = "1", required = true, dataType = "Integer"),
- })
- @PostMapping("/operationMaterial")
- public RESTfulResult operationMaterial(@RequestBody Map<String, Object> mapVal) {
- int result = rmsMaterialService.operationMaterial(mapVal);
- return success(result);
- }
- }
|