KdYdReceivableController.java 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. package com.malk.huagao.controller;
  2. import com.malk.huagao.service.IKdYdOutboundService;
  3. import com.malk.huagao.service.IKdYdReceivableService;
  4. import com.malk.server.common.McR;
  5. import com.malk.service.aliwork.YDClient;
  6. import org.springframework.beans.factory.annotation.Autowired;
  7. import org.springframework.web.bind.annotation.PostMapping;
  8. import org.springframework.web.bind.annotation.RequestBody;
  9. import org.springframework.web.bind.annotation.RequestMapping;
  10. import org.springframework.stereotype.Controller;
  11. import org.springframework.web.bind.annotation.RestController;
  12. import java.util.Map;
  13. /**
  14. * <p>
  15. * 前端控制器
  16. * </p>
  17. *
  18. * @author LQY
  19. * @since 2025-10-16
  20. */
  21. @RestController
  22. @RequestMapping("/hg")
  23. public class KdYdReceivableController {
  24. @Autowired
  25. private YDClient ydClient;
  26. @Autowired
  27. private IKdYdReceivableService kdYdReceivableService;
  28. @PostMapping("/kdYdReceivable1")
  29. McR insertkdYdReceivable1(@RequestBody Map map) {
  30. kdYdReceivableService.insertkdYdReceivable(map);
  31. return McR.success();
  32. }
  33. @PostMapping("/kdYdReceivable")
  34. Map<String, Object> insertkdYdReceivable(@RequestBody Map map) {
  35. Map<String, Object> stringObjectMap =kdYdReceivableService.insertkdYdReceivable1(map);
  36. return stringObjectMap;
  37. }
  38. @PostMapping("/kdYdpayment")
  39. Map<String, Object> insertkdYdpayment(@RequestBody Map map) {
  40. Map<String, Object> stringObjectMap =kdYdReceivableService.insertkdYdpayment(map);
  41. return stringObjectMap;
  42. }
  43. }