|
|
@@ -7,10 +7,7 @@ import com.jzg.commons.entity.vo.SysAreaVo;
|
|
|
import com.jzg.organization.service.SysAreaService;
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
@@ -34,7 +31,8 @@ public class AreaController {
|
|
|
|
|
|
@Schema(description = "根据地址与身份证查询省市区")
|
|
|
@GetMapping(value = "queryByAddress")
|
|
|
- public HttpResult<PersonAreaVo> queryByAddress(String address, String idCard) {
|
|
|
- return HttpResult.ok(sysAreaService.queryByAddress(address,idCard));
|
|
|
+ public HttpResult<PersonAreaVo> queryByAddress(@RequestParam("address") String address,
|
|
|
+ @RequestParam("idCard") String idCard) {
|
|
|
+ return HttpResult.ok(sysAreaService.queryByAddress(address, idCard));
|
|
|
}
|
|
|
}
|