KdYdMaterialController.java 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package com.malk.huagao.controller;
  2. import com.malk.huagao.service.IKdYdMaterialService;
  3. import com.malk.huagao.service.IKdYdOrderService;
  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 KdYdMaterialController {
  24. @Autowired
  25. private YDClient ydClient;
  26. @Autowired
  27. private IKdYdMaterialService kdYdMaterialService;
  28. @PostMapping("/kdYdMaterial1")
  29. McR insertkdYdMaterial1(@RequestBody Map map) {
  30. kdYdMaterialService.insertkdYdMaterial(map);
  31. return McR.success();
  32. }
  33. @PostMapping("/kdYdMaterial")
  34. Map<String, Object> insertkdYdMaterial(@RequestBody Map map) {
  35. Map<String, Object> stringObjectMap = kdYdMaterialService.addkdYdMaterial(map);
  36. return stringObjectMap;
  37. }
  38. }