|
|
@ -40,6 +40,7 @@ import com.epmet.dao.CustomerDao; |
|
|
|
import com.epmet.dto.*; |
|
|
|
import com.epmet.dto.form.*; |
|
|
|
import com.epmet.dto.result.*; |
|
|
|
import com.epmet.dto.screen.form.InitCustomerIndexForm; |
|
|
|
import com.epmet.entity.CustomerEntity; |
|
|
|
import com.epmet.feign.*; |
|
|
|
import com.epmet.redis.CustomerRedis; |
|
|
@ -85,6 +86,10 @@ public class CustomerServiceImpl extends BaseServiceImpl<CustomerDao, CustomerEn |
|
|
|
private EpmetUserOpenFeignClient epmetUserOpenFeignClient; |
|
|
|
@Autowired |
|
|
|
private EpmetMessageOpenFeignClient epmetMessageOpenFeignClient; |
|
|
|
@Autowired |
|
|
|
private EpmetPointOpenFeignClient epmetPointOpenFeignClient; |
|
|
|
@Autowired |
|
|
|
private DataStatisticalOpenFeignClient dataStatisticalOpenFeignClient; |
|
|
|
|
|
|
|
@Override |
|
|
|
public PageData<CustomerDTO> page(Map<String, Object> params) { |
|
|
@ -550,6 +555,22 @@ public class CustomerServiceImpl extends BaseServiceImpl<CustomerDao, CustomerEn |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//2021.1.25 sun 新增初始化客户积分规则和评价指标权重 start
|
|
|
|
//8.客户初始化已有的积分规则
|
|
|
|
Result<InitPointRuleResultDTO> resultPoint = epmetPointOpenFeignClient.initPointRule(); |
|
|
|
if (!resultPoint.success()) { |
|
|
|
throw new RenException(resultPoint.getCode(), resultPoint.getInternalMsg()); |
|
|
|
} |
|
|
|
|
|
|
|
//9.新客户初始化评价指标 权重
|
|
|
|
InitCustomerIndexForm indexForm = new InitCustomerIndexForm(); |
|
|
|
indexForm.setCustomerId(formDTO.getCustomerId()); |
|
|
|
Result<Boolean> resultData = dataStatisticalOpenFeignClient.initCustomerIndex(indexForm); |
|
|
|
if (!resultData.success()) { |
|
|
|
throw new RenException(resultData.getCode(), resultData.getInternalMsg()); |
|
|
|
} |
|
|
|
//2021.1.25 end
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
private InitCustomerMQMsg.InitCustomerStaff constructStaffInfo4CustomerInit(String agencyId, PaUserDTO paUser) { |
|
|
|