SelfServiceMachineController.java 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. package com.steerinfo.dil.controller;
  2. import com.steerinfo.dil.service.impl.SelfServiceMachineServiceImpl;
  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.ApiOperation;
  8. import org.springframework.beans.factory.annotation.Autowired;
  9. import org.springframework.web.bind.annotation.PostMapping;
  10. import org.springframework.web.bind.annotation.RequestBody;
  11. import org.springframework.web.bind.annotation.RequestMapping;
  12. import org.springframework.web.bind.annotation.RestController;
  13. import java.util.Map;
  14. /**
  15. * @ author :TXF
  16. * @ time :2021/10/19 18:06
  17. */
  18. @RequestMapping("${api.version}/thd")
  19. @RestController
  20. public class SelfServiceMachineController extends BaseRESTfulController {
  21. @Autowired
  22. SelfServiceMachineServiceImpl selfServiceMachineService;
  23. @ApiOperation(value="查询数据打印提货单接口")
  24. @ApiImplicitParams({
  25. @ApiImplicitParam(name = "mapValue", value = "运输订单号", required = false, dataType = "Map"),
  26. })
  27. @PostMapping("/printTHD")
  28. public RESTfulResult printTiHuoDan(@RequestBody(required=false) Map<String, Object> mapValue){
  29. Map<String, Object> tiHuoDan = selfServiceMachineService.printTiHuoDan((String) mapValue.get("orderNumber"));
  30. return success(tiHuoDan);
  31. }
  32. }