| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- package com.uas.controller;
- import com.uas.service.SyncOrgElementsBaseInfoService;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.stereotype.Controller;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RequestMethod;
- import org.springframework.web.bind.annotation.ResponseBody;
- import java.util.HashMap;
- import java.util.Map;
- /**
- * @author koul
- * @email koul@usoftchina.com
- * @date 2021-05-17 13:39
- */
- @Controller
- @RequestMapping("/org")
- public class SyncOrgElementsBaseInfoController {
- @Autowired
- private SyncOrgElementsBaseInfoService syncOrgElementsBaseInfoService;
- /**
- *
- */
- @RequestMapping(value = "/syncOrgElementsBaseInfo/sendSyncOrgElementsBaseInfo",method = RequestMethod.GET)
- @ResponseBody
- public Map<String, Object> sendSyncOrgElementsBaseInfo() {
- Map<String, Object> modelMap = new HashMap<String, Object>();
- modelMap.put("log", syncOrgElementsBaseInfoService.sendSyncOrgElementsBaseInfo());
- modelMap.put("success", true);
- return modelMap;
- }
- @RequestMapping(value = "/test")
- @ResponseBody
- public String test() {
- return "test";
- }
- }
|