|
|
@ -312,26 +312,24 @@ public class StrangerAccessRecordServiceImpl extends BaseServiceImpl<StrangerAcc |
|
|
|
* @date 2021.01.18 16:39 |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public Result<List<CustomerGridForStrangerResultDTO>> listCustomerGridH5(CustomerGridListFormDTO customerGridListFormDTO,String customerId) { |
|
|
|
|
|
|
|
ListCustomerGridFormDTO listCustomerGridFormDTO = new ListCustomerGridFormDTO(); |
|
|
|
listCustomerGridFormDTO.setAreaCode(StringUtils.isBlank(customerGridListFormDTO.getSelectedAreaCode()) ? |
|
|
|
public Result<List<PublicCustomerGridForStrangerResultDTO>> listCustomerGridH5(CustomerGridListFormDTO customerGridListFormDTO,String customerId) { |
|
|
|
ThirdCustomerGridListFormDTO gridParam = new ThirdCustomerGridListFormDTO(); |
|
|
|
gridParam.setAreaCode(StringUtils.isBlank(customerGridListFormDTO.getSelectedAreaCode()) ? |
|
|
|
customerGridListFormDTO.getAreaCode() : customerGridListFormDTO.getSelectedAreaCode()); |
|
|
|
|
|
|
|
listCustomerGridFormDTO.setPageNo(null == customerGridListFormDTO.getPageNo() ? ModuleConstant.MIN_CURRENT_PAGE_NO : customerGridListFormDTO.getPageNo()); |
|
|
|
listCustomerGridFormDTO.setPageSize(customerGridListFormDTO.getPageSize()); |
|
|
|
listCustomerGridFormDTO.setCustomerId(customerId); |
|
|
|
|
|
|
|
Result<List<CustomerGridForStrangerResultDTO>> queryResult = |
|
|
|
gridParam.setPageNo(null == customerGridListFormDTO.getPageNo() ? ModuleConstant.MIN_CURRENT_PAGE_NO : customerGridListFormDTO.getPageNo()); |
|
|
|
gridParam.setPageSize(customerGridListFormDTO.getPageSize()); |
|
|
|
gridParam.setCustomerId(customerId); |
|
|
|
Result<List<PublicCustomerGridForStrangerResultDTO>> queryResult = |
|
|
|
govOrgFeignClient |
|
|
|
.queryGridListByAreaCode(listCustomerGridFormDTO); |
|
|
|
.queryCustomerGridList(gridParam); |
|
|
|
|
|
|
|
//Feign调用成功
|
|
|
|
if (queryResult.success()) { |
|
|
|
List<CustomerGridForStrangerResultDTO> queryList = queryResult.getData(); |
|
|
|
List<PublicCustomerGridForStrangerResultDTO> queryList = queryResult.getData(); |
|
|
|
if (null != queryResult && queryList.size() > 0) { |
|
|
|
StrangerAccessRecordEntity strangerTrance = new StrangerAccessRecordEntity(); |
|
|
|
strangerTrance.setLocationAreaCode(listCustomerGridFormDTO.getAreaCode()); |
|
|
|
strangerTrance.setLocationAreaCode(gridParam.getAreaCode()); |
|
|
|
strangerTrance.setIsAuthorized(customerGridListFormDTO.getIsAuthorized()); |
|
|
|
strangerTrance.setGridNumber(queryList.size()); |
|
|
|
strangerTrance.setVisitTime(new Date()); |
|
|
|