|
|
@ -14,12 +14,15 @@ import com.epmet.commons.tools.utils.ConvertUtils; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.constant.StrangerResiGuideConstant; |
|
|
|
import com.epmet.dao.StrangerAccessRecordDao; |
|
|
|
import com.epmet.dto.PaCustomerDTO; |
|
|
|
import com.epmet.dto.StrangerAccessRecordDTO; |
|
|
|
import com.epmet.dto.form.*; |
|
|
|
import com.epmet.dto.result.CustomerGridForStrangerResultDTO; |
|
|
|
import com.epmet.dto.result.HomeDesignByCustomerResultDTO; |
|
|
|
import com.epmet.dto.result.PublicCustomerGridForStrangerResultDTO; |
|
|
|
import com.epmet.dto.result.PublicCustomerResultDTO; |
|
|
|
import com.epmet.entity.StrangerAccessRecordEntity; |
|
|
|
import com.epmet.feign.EpmetThirdFeignClient; |
|
|
|
import com.epmet.feign.EpmetUserFeignClient; |
|
|
|
import com.epmet.feign.GovOrgFeignClient; |
|
|
|
import com.epmet.feign.OperCustomizeFeignClient; |
|
|
@ -52,6 +55,8 @@ public class StrangerAccessRecordServiceImpl extends BaseServiceImpl<StrangerAcc |
|
|
|
private EpmetUserFeignClient epmetUserFeignClient; |
|
|
|
@Autowired |
|
|
|
private OperCustomizeFeignClient operCustomizeFeignClient; |
|
|
|
@Autowired |
|
|
|
private EpmetThirdFeignClient epmetThirdFeignClient; |
|
|
|
|
|
|
|
/** |
|
|
|
* 查询陌生人访问记录 |
|
|
@ -249,8 +254,16 @@ public class StrangerAccessRecordServiceImpl extends BaseServiceImpl<StrangerAcc |
|
|
|
@Override |
|
|
|
public Result<List<PublicCustomerGridForStrangerResultDTO>> thirdCustomerGridList(PublicCustomerGridListFormDTO formDTO) { |
|
|
|
|
|
|
|
//0.调用epmet-third服务,根据appId查询客户信息
|
|
|
|
Result<PublicCustomerResultDTO> result = epmetThirdFeignClient.getCustomerMsg(formDTO.getAppId()); |
|
|
|
if(!result.success()){ |
|
|
|
throw new RenException(result.getCode()); |
|
|
|
} |
|
|
|
PublicCustomerResultDTO resultDTO = result.getData(); |
|
|
|
PaCustomerDTO customer = resultDTO.getCustomer(); |
|
|
|
|
|
|
|
ThirdCustomerGridListFormDTO third = new ThirdCustomerGridListFormDTO(); |
|
|
|
third.setCustomerId(formDTO.getCustomerId()); |
|
|
|
third.setCustomerId(customer.getId()); |
|
|
|
//1.参数设置
|
|
|
|
//根据是自动定位还是手动定位获取地区编码值
|
|
|
|
third.setAreaCode(ModuleConstant.NOT_POSITION_AUTHORIZED == formDTO.getIsAuthorized() ? |
|
|
|