package com.ld.igds.m.controller; import com.ld.igds.m.manager.OAManager; import com.ld.igds.oa.dto.AssetData; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import org.springframework.web.servlet.ModelAndView; import java.util.List; /** * OA模块的控制层 */ @RestController @RequestMapping("basic/oa") public class OAController { @Autowired private OAManager oAManager; /** * 资产地图 *

* * @param * @return */ @RequestMapping("/asset-map") public ModelAndView assetMap(@RequestParam(value = "companyId", required = false) String companyId) { ModelAndView view = new ModelAndView(); List gpsLocation = oAManager.getGpsLocation(companyId); view.addObject("gpsLocation", gpsLocation); view.setViewName("admin/oa/asset-map"); return view; } @RequestMapping("/quaryLocation") public List quaryLocation(@RequestParam(value = "companyId", required = false) String companyId) { return oAManager.getGpsLocation(companyId); } }