package com.lyms.cm.controller.sys; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RestController; import com.baomidou.mybatisplus.plugins.Page; import com.lyms.cm.entity.sys.SysRegions; import com.lyms.cm.service.sys.SysRegionsService; import com.lyms.web.controller.BaseController; /** *

* 省市区地址表 前端控制器 *

* * @author maliang * @since 2017-03-08 */ @RestController @RequestMapping("/sysRegions") public class SysRegionsController extends BaseController { @Autowired private SysRegionsService regionService; /** *
  • @Description:获取区域信息 *
  • @return *
  • 创建人:maliang *
  • 创建时间:2017年3月8日 *
  • 修改人: *
  • 修改时间: * * @return */ @RequestMapping(value = "/find", method = RequestMethod.GET) public Page findRegions(String id) { Page page = getPage(); page.setSize(Integer.MAX_VALUE); List regions = regionService.selectRegions(id); page.setRecords(regions); return page; } }