|
@@ -774,22 +774,6 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
|
774
|
774
|
lambdaQueryWrapper.eq(CustomerVisit::getCustomerId,taRecommendCustomer.getCustomerId());
|
775
|
775
|
CustomerVisit customerVisit = customerVisitMapper.selectOne(lambdaQueryWrapper);
|
776
|
776
|
taRecommendCustomerVO.setCustomerVisit(customerVisit);
|
777
|
|
- }else if (CommConstant.CUSTOMER_PREPARATORY.equals(taRecommendCustomer.getStatus())) {
|
778
|
|
- // 认筹状态
|
779
|
|
- LambdaQueryWrapper<CustomerPreparatory> lambdaQueryWrapper = new LambdaQueryWrapper<>();
|
780
|
|
- lambdaQueryWrapper.eq(CustomerPreparatory::getCustomerId,taRecommendCustomer.getCustomerId());
|
781
|
|
- CustomerPreparatory customerPreparatory = customerPreparatoryMapper.selectOne(lambdaQueryWrapper);
|
782
|
|
- taRecommendCustomerVO.setCustomerPreparatory(customerPreparatory);
|
783
|
|
- }else if (CommConstant.CUSTOMER_SIGNED.equals(taRecommendCustomer.getStatus())) {
|
784
|
|
- // 签约状态
|
785
|
|
- LambdaQueryWrapper<CustomerSignatory> lambdaQueryWrapper = new LambdaQueryWrapper<>();
|
786
|
|
- lambdaQueryWrapper.eq(CustomerSignatory::getCustomerId,taRecommendCustomer.getCustomerId());
|
787
|
|
- List<CustomerSignatory> customerSignatories = customerSignatoryMapper.selectList(lambdaQueryWrapper);
|
788
|
|
- customerSignatories.forEach(e -> {
|
789
|
|
- TaBuildingApartment taBuildingApartment = taBuildingApartmentMapper.selectById(e.getHouseType());
|
790
|
|
- e.setBuildingApartment(taBuildingApartment);
|
791
|
|
- });
|
792
|
|
- taRecommendCustomerVO.setCustomerSignatory(customerSignatories);
|
793
|
777
|
}
|
794
|
778
|
|
795
|
779
|
LambdaQueryWrapper<ChannelCustomer> channelCustomerLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
@@ -798,6 +782,22 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
|
798
|
782
|
if (null != customer) {
|
799
|
783
|
taRecommendCustomerVO.setChannelCustomer(customer);
|
800
|
784
|
}
|
|
785
|
+ // 认筹状态
|
|
786
|
+ LambdaQueryWrapper<CustomerPreparatory> lambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
787
|
+ lambdaQueryWrapper.eq(CustomerPreparatory::getCustomerId,taRecommendCustomer.getCustomerId());
|
|
788
|
+ CustomerPreparatory customerPreparatory = customerPreparatoryMapper.selectOne(lambdaQueryWrapper);
|
|
789
|
+ taRecommendCustomerVO.setCustomerPreparatory(customerPreparatory);
|
|
790
|
+
|
|
791
|
+ // 签约状态
|
|
792
|
+ LambdaQueryWrapper<CustomerSignatory> qylambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
793
|
+ qylambdaQueryWrapper.eq(CustomerSignatory::getCustomerId,taRecommendCustomer.getCustomerId());
|
|
794
|
+ List<CustomerSignatory> customerSignatories = customerSignatoryMapper.selectList(qylambdaQueryWrapper);
|
|
795
|
+ customerSignatories.forEach(e -> {
|
|
796
|
+ TaBuildingApartment taBuildingApartment = taBuildingApartmentMapper.selectById(e.getHouseType());
|
|
797
|
+ e.setBuildingApartment(taBuildingApartment);
|
|
798
|
+ });
|
|
799
|
+ taRecommendCustomerVO.setCustomerSignatory(customerSignatories);
|
|
800
|
+
|
801
|
801
|
return ResponseBean.success(taRecommendCustomerVO);
|
802
|
802
|
}
|
803
|
803
|
|