SyncOrgElementsBaseInfoController.java 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. package com.uas.controller;
  2. import com.uas.service.SyncOrgElementsBaseInfoService;
  3. import org.springframework.beans.factory.annotation.Autowired;
  4. import org.springframework.stereotype.Controller;
  5. import org.springframework.web.bind.annotation.RequestMapping;
  6. import org.springframework.web.bind.annotation.RequestMethod;
  7. import org.springframework.web.bind.annotation.ResponseBody;
  8. import java.util.HashMap;
  9. import java.util.Map;
  10. /**
  11. * @author koul
  12. * @email koul@usoftchina.com
  13. * @date 2021-05-17 13:39
  14. */
  15. @Controller
  16. @RequestMapping("/org")
  17. public class SyncOrgElementsBaseInfoController {
  18. @Autowired
  19. private SyncOrgElementsBaseInfoService syncOrgElementsBaseInfoService;
  20. /**
  21. *
  22. */
  23. @RequestMapping(value = "/syncOrgElementsBaseInfo/sendSyncOrgElementsBaseInfo",method = RequestMethod.GET)
  24. @ResponseBody
  25. public Map<String, Object> sendSyncOrgElementsBaseInfo() {
  26. Map<String, Object> modelMap = new HashMap<String, Object>();
  27. modelMap.put("log", syncOrgElementsBaseInfoService.sendSyncOrgElementsBaseInfo());
  28. modelMap.put("success", true);
  29. return modelMap;
  30. }
  31. @RequestMapping(value = "/test")
  32. @ResponseBody
  33. public String test() {
  34. return "test";
  35. }
  36. }