KdYdOrderController.java 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. package com.malk.huagao.controller;
  2. import com.malk.huagao.service.IKdYdOrderService;
  3. import com.malk.server.common.McR;
  4. import com.malk.service.aliwork.YDClient;
  5. import org.springframework.beans.factory.annotation.Autowired;
  6. import org.springframework.web.bind.annotation.PostMapping;
  7. import org.springframework.web.bind.annotation.RequestBody;
  8. import org.springframework.web.bind.annotation.RequestMapping;
  9. import org.springframework.stereotype.Controller;
  10. import org.springframework.web.bind.annotation.RestController;
  11. import java.util.Map;
  12. /**
  13. * <p>
  14. * 前端控制器
  15. * </p>
  16. *
  17. * @author LQY
  18. * @since 2025-10-15
  19. */
  20. @RestController
  21. @RequestMapping("/hg")
  22. public class KdYdOrderController {
  23. @Autowired
  24. private YDClient ydClient;
  25. @Autowired
  26. private IKdYdOrderService kdYdOrderService;
  27. @PostMapping("/kdYdOrder")
  28. McR insertkdYdOrder(@RequestBody Map map) {
  29. kdYdOrderService.insertkdYdOrder(map);
  30. return McR.success();
  31. }
  32. @PostMapping("/SckdYdOrder")
  33. McR SckdYdOrder(@RequestBody Map map) {
  34. kdYdOrderService.SckdYdOrder(map);
  35. return McR.success();
  36. }
  37. }