|
|
@ -1,19 +1,12 @@ |
|
|
|
package com.epmet.controller; |
|
|
|
|
|
|
|
import com.epmet.commons.tools.annotation.LoginUser; |
|
|
|
import com.epmet.commons.tools.annotation.MaskResponse; |
|
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.dto.IcBuildingDTO; |
|
|
|
import com.epmet.dto.IcHouseDTO; |
|
|
|
import com.epmet.dto.form.lingshan.ScreenPartyCenterHouseDistributionFormDTO; |
|
|
|
import com.epmet.dto.result.lingshan.HouseDetailResultDTO; |
|
|
|
import com.epmet.service.IcBuildingService; |
|
|
|
import com.epmet.service.IcHouseService; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
import javax.annotation.Resource; |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 灵山大屏-查询gov-org库的接口, 可以放在这.... |
|
|
@ -23,44 +16,15 @@ import java.util.List; |
|
|
|
@RestController |
|
|
|
@RequestMapping("houseScreen") |
|
|
|
public class LingShanScreenGovOrgController { |
|
|
|
@Autowired |
|
|
|
@Resource |
|
|
|
private IcHouseService icHouseService; |
|
|
|
@Autowired |
|
|
|
private IcBuildingService icBuildingService; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* 灵山大屏:查询楼栋坐标 |
|
|
|
* |
|
|
|
* @param tokenDto |
|
|
|
* @param formDTO |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@PostMapping("building-distribution") |
|
|
|
public Result<List<IcBuildingDTO>> buildingDistribution(@LoginUser TokenDto tokenDto, @RequestBody ScreenPartyCenterHouseDistributionFormDTO formDTO) { |
|
|
|
return new Result<List<IcBuildingDTO>>().ok(icBuildingService.buildingDistribution(tokenDto.getCustomerId(), formDTO.getGridId(), formDTO.getNeighborHoodId())); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* 灵山大屏:查询房屋坐标点位 |
|
|
|
* 支持根据网格\小区\楼栋id查询 |
|
|
|
*/ |
|
|
|
@PostMapping("house-distribution") |
|
|
|
public Result<List<IcHouseDTO>> houseDistribution(@LoginUser TokenDto tokenDto, @RequestBody ScreenPartyCenterHouseDistributionFormDTO formDTO) { |
|
|
|
return new Result<List<IcHouseDTO>>().ok(icHouseService.houseDistribution(tokenDto.getCustomerId(), formDTO.getGridId(), formDTO.getNeighborHoodId(), formDTO.getBuildingId())); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 灵山大屏:点击房屋,显示房屋详情 |
|
|
|
* @param houseId |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@MaskResponse(fieldNames = {"showOwnerIdCard", "showOwnerPhone"}, fieldsMaskType = {MaskResponse.MASK_TYPE_ID_CARD, MaskResponse.MASK_TYPE_MOBILE}) |
|
|
|
@PostMapping("houseDetail/{houseId}") |
|
|
|
public Result<HouseDetailResultDTO> queryHouseDetail(@PathVariable("houseId")String houseId){ |
|
|
|
return new Result<HouseDetailResultDTO>().ok(icHouseService.queryHouseDetail(houseId)); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|