|
|
@@ -1,14 +1,10 @@ |
|
|
|
package com.taauav.front.controller; |
|
|
|
|
|
|
|
import com.taauav.admin.entity.SysCity; |
|
|
|
import com.taauav.admin.entity.TauvInspectFile; |
|
|
|
import com.taauav.admin.service.ILsAdminService; |
|
|
|
import com.taauav.admin.service.ILsAuthGroupService; |
|
|
|
import com.taauav.admin.service.ILsCityService; |
|
|
|
import com.taauav.admin.service.ITauvInspectFileService; |
|
|
|
import com.taauav.common.bean.Response; |
|
|
|
import com.taauav.common.util.StringUtils; |
|
|
|
import com.taauav.front.dto.LsInspectFileDTO; |
|
|
|
import com.taauav.front.utils.LoginUtils; |
|
|
|
import com.taauav.front.vo.LSAdminVo; |
|
|
|
import com.taauav.front.vo.LSVillageVo; |
|
|
|
import com.taauav.front.vo.SysCityVo; |
|
|
@@ -17,7 +13,6 @@ import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
import java.math.BigInteger; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
@@ -44,7 +39,8 @@ public class LSAdminController extends FrontBaseController { |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@GetMapping("/info") |
|
|
|
public Response info(@RequestParam("userId") Integer userId, @RequestParam Map<String, String> map) { |
|
|
|
public Response info(@RequestParam Map<String, String> map) { |
|
|
|
Integer userId = LoginUtils.getAdminId(); |
|
|
|
LSAdminVo info = lsAdminService.getAdminInfo(userId); |
|
|
|
|
|
|
|
//数据权限处理 |
|
|
@@ -62,7 +58,8 @@ public class LSAdminController extends FrontBaseController { |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@GetMapping("/village") |
|
|
|
public Response getVillageData(@RequestParam("userId")Integer userId, @RequestParam("townId") BigInteger townId, @RequestParam Map<String, String> map) { |
|
|
|
public Response getVillageData(@RequestParam("townId") BigInteger townId, @RequestParam Map<String, String> map) { |
|
|
|
Integer userId = LoginUtils.getAdminId(); |
|
|
|
LSVillageVo village = lsAdminService.getVillageList(userId, townId, map); |
|
|
|
return response.success(village); |
|
|
|
} |