BmsshipStatementController.java 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package com.steerinfo.dil.controller;
  2. import com.steerinfo.dil.service.impl.BmsshipStatementServiceImpl;
  3. import com.steerinfo.dil.util.BaseRESTfulController;
  4. import io.swagger.annotations.ApiImplicitParam;
  5. import io.swagger.annotations.ApiImplicitParams;
  6. import io.swagger.annotations.ApiModelProperty;
  7. import org.springframework.beans.factory.annotation.Autowired;
  8. import org.springframework.web.bind.annotation.*;
  9. import java.util.Map;
  10. /**
  11. * @Description:
  12. * @Author:HuJianGuo
  13. * @GreateTime:2021/10/22 17:34
  14. * @Version:V2.0
  15. */
  16. @RestController
  17. @RequestMapping("/${api.version}/bmsshipstatement")
  18. public class BmsshipStatementController extends BaseRESTfulController {
  19. @Autowired
  20. BmsshipStatementServiceImpl bmsshipStatementService;
  21. /**
  22. * 采购船运账单接口
  23. *
  24. * @param statementId
  25. * @return
  26. */
  27. @ApiModelProperty(value = "采购船运账单接口")
  28. @ApiImplicitParams({
  29. @ApiImplicitParam(name = "statementId", value = "账单主键id", required = true, dataType = "Integer"),
  30. })
  31. @PostMapping("/getShipStatement")
  32. public Map<String, Object> getShipStatement(@RequestParam Integer statementId) {
  33. Map<String,Object> mapValue = bmsshipStatementService.getShipStatement(statementId);
  34. return mapValue;
  35. }
  36. }