|
@ -2,12 +2,15 @@ package com.kms.yxgh.common.controller; |
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
import com.kms.system.domain.SysXzqh; |
|
|
import com.kms.system.domain.SysXzqh; |
|
|
|
|
|
import com.kms.system.service.SysDictTypeService; |
|
|
import com.kms.system.service.SysXzqhService; |
|
|
import com.kms.system.service.SysXzqhService; |
|
|
import com.kms.yxgh.base.Response; |
|
|
import com.kms.yxgh.base.Response; |
|
|
|
|
|
import com.shuili.common.core.domain.entity.SysDictData; |
|
|
import io.swagger.annotations.Api; |
|
|
import io.swagger.annotations.Api; |
|
|
import io.swagger.annotations.ApiOperation; |
|
|
import io.swagger.annotations.ApiOperation; |
|
|
import lombok.AllArgsConstructor; |
|
|
import lombok.AllArgsConstructor; |
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
|
|
import org.springframework.web.bind.annotation.PathVariable; |
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
@ -29,7 +32,7 @@ import java.util.List; |
|
|
public class CommonApiController { |
|
|
public class CommonApiController { |
|
|
|
|
|
|
|
|
private final SysXzqhService sysXzqhService; |
|
|
private final SysXzqhService sysXzqhService; |
|
|
|
|
|
private final SysDictTypeService dictTypeService; |
|
|
|
|
|
|
|
|
@GetMapping("/xzgh/getGuangDong") |
|
|
@GetMapping("/xzgh/getGuangDong") |
|
|
@ApiOperation("获取广东省下属市区") |
|
|
@ApiOperation("获取广东省下属市区") |
|
@ -39,4 +42,11 @@ public class CommonApiController { |
|
|
.eq(SysXzqh::getLayer, 2)); |
|
|
.eq(SysXzqh::getLayer, 2)); |
|
|
return Response.ok(list); |
|
|
return Response.ok(list); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("根据字典类型查询字典数据信息") |
|
|
|
|
|
@GetMapping(value = "/dict/type/{dictType}") |
|
|
|
|
|
public Response<List<SysDictData>> dictType(@PathVariable String dictType) { |
|
|
|
|
|
return Response.ok(dictTypeService.selectDictDataByType(dictType)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|