|
|
|
@ -3,6 +3,7 @@ package com.ruoyi.database.controller;
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
|
import com.ruoyi.database.domain.MetaActualUserInfo;
|
|
|
|
|
import com.ruoyi.database.domain.MetaRealEstateInfo;
|
|
|
|
|
import com.ruoyi.database.service.MetaActualUserInfoService;
|
|
|
|
|
import com.ruoyi.common.annotation.Log;
|
|
|
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
|
|
@ -10,8 +11,10 @@ import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
|
|
import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
|
|
import com.ruoyi.common.enums.BusinessType;
|
|
|
|
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
|
|
|
|
import com.ruoyi.database.service.MetaRealEstateInfoService;
|
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
@ -32,6 +35,7 @@ import java.util.List;
|
|
|
|
|
public class MetaActualUserInfoController extends BaseController {
|
|
|
|
|
|
|
|
|
|
private final MetaActualUserInfoService metaActualUserInfoService;
|
|
|
|
|
private final MetaRealEstateInfoService metaRealEstateInfoService;
|
|
|
|
|
|
|
|
|
|
@GetMapping
|
|
|
|
|
@ApiOperation("查询实有人口信息表")
|
|
|
|
@ -67,6 +71,15 @@ public class MetaActualUserInfoController extends BaseController {
|
|
|
|
|
return getDataTable(list);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/house")
|
|
|
|
|
@ApiOperation("根据人口住址查地址经纬度")
|
|
|
|
|
public AjaxResult houseList(@ApiParam("住址") @RequestParam String para) {
|
|
|
|
|
List<MetaRealEstateInfo> list = metaRealEstateInfoService.lambdaQuery().eq(MetaRealEstateInfo::getRealEstateAddress, para).list();
|
|
|
|
|
MetaRealEstateInfo metaRealEstateInfo = list.get(0);
|
|
|
|
|
return AjaxResult.success(metaRealEstateInfo);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PostMapping
|
|
|
|
|
@ApiOperation("新增实有人口信息表")
|
|
|
|
|
@Log(title = "实有人口信息表", businessType = BusinessType.INSERT)
|
|
|
|
|