BmstruckStatementController.java 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. package com.steerinfo.dil.controller;
  2. import com.steerinfo.dil.service.impl.BmstruckStatementServiceImpl;
  3. import com.steerinfo.dil.util.BaseRESTfulController;
  4. import com.steerinfo.framework.controller.RESTfulResult;
  5. import io.swagger.annotations.ApiImplicitParam;
  6. import io.swagger.annotations.ApiImplicitParams;
  7. import io.swagger.annotations.ApiModelProperty;
  8. import org.springframework.beans.factory.annotation.Autowired;
  9. import org.springframework.web.bind.annotation.*;
  10. import java.util.Map;
  11. /**
  12. * @Description:
  13. * @Author:HuJianGuo
  14. * @GreateTime:2021/10/22 17:34
  15. * @Version:V2.0
  16. */
  17. @RestController
  18. @RequestMapping("/${api.version}/bmstruckstatement")
  19. public class BmstruckStatementController extends BaseRESTfulController {
  20. @Autowired
  21. BmstruckStatementServiceImpl bmstruckStatementService;
  22. /**
  23. * 销售汽运账单接口
  24. *
  25. * @param statementId
  26. * @return
  27. */
  28. @ApiModelProperty(value = "销售汽运账单接口")
  29. @ApiImplicitParams({
  30. @ApiImplicitParam(name = "statementId", value = "账单主键id", required = true, dataType = "Integer"),
  31. })
  32. @PostMapping("/getStatement")
  33. public Map<String, Object> getStatement(@RequestParam Integer statementId) {
  34. Map<String,Object> mapValue = bmstruckStatementService.getStatement(statementId);
  35. return mapValue;
  36. }
  37. /**
  38. * 金蝶返回账单接口
  39. *
  40. * @param mapValue
  41. * @return
  42. */
  43. @ApiModelProperty(value = "金蝶返回账单接口")
  44. @ApiImplicitParams({
  45. @ApiImplicitParam(name = "mapValue", value = "账单主键id", required = true, dataType = "MAP"),
  46. })
  47. @PostMapping("/updateStatement")
  48. public RESTfulResult updateStatement(@RequestBody Map<String,Object> mapValue) {
  49. int result = bmstruckStatementService.updateStatement(mapValue);
  50. return success(result);
  51. }
  52. }