贷款潜客分析条件查询
This commit is contained in:
@@ -14,6 +14,7 @@ import com.fangjia.job.common.util.DingDingMessageUtil;
|
||||
import com.fangjia.job.fsh.document.UserStat;
|
||||
import com.fangjia.job.fsh.po.EnterpriseProductUser;
|
||||
import com.fangjia.job.fsh.po.FinancialCustomersConfig;
|
||||
import com.fangjia.job.fsh.po.LoanCustomersConfig;
|
||||
import com.fangjia.job.fsh.po.PotentialCustomersFilterConfig;
|
||||
import com.fangjia.job.fsh.service.CustomerStatService;
|
||||
import com.fangjia.job.fsh.service.EnterpriseProductUserService;
|
||||
@@ -21,6 +22,7 @@ import com.fangjia.job.fsh.service.FinancialCustomersConfigService;
|
||||
import com.fangjia.job.fsh.service.HouseInfoService;
|
||||
import com.fangjia.job.fsh.service.HouseSubstitutionService;
|
||||
import com.fangjia.job.fsh.service.LoanApplyService;
|
||||
import com.fangjia.job.fsh.service.LoanCustomersConfigService;
|
||||
import com.fangjia.job.fsh.service.PotentialCustomersFilterConfigService;
|
||||
import com.fangjia.job.fsh.service.UserStatService;
|
||||
|
||||
@@ -56,6 +58,9 @@ public class UserStatJob implements SimpleJob {
|
||||
@Autowired
|
||||
private FinancialCustomersConfigService financialCustomersConfigService;
|
||||
|
||||
@Autowired
|
||||
private LoanCustomersConfigService loanCustomersConfigService;
|
||||
|
||||
@Override
|
||||
public void execute(ShardingContext shardingContext) {
|
||||
logger.info("开始执行UserStatJob");
|
||||
@@ -65,7 +70,8 @@ public class UserStatJob implements SimpleJob {
|
||||
PotentialCustomersFilterConfig loanFilterConfig = potentialCustomersFilterConfigService.get(2);
|
||||
// 理财潜客分析条件
|
||||
List<FinancialCustomersConfig> financialCustomersList = financialCustomersConfigService.queryAll();
|
||||
|
||||
// 贷款潜客分析条件
|
||||
List<LoanCustomersConfig> LoanCustomersConfigList = loanCustomersConfigService.queryAll();
|
||||
long total = enterpriseProductUserService.queryCount();
|
||||
int pages = PageBean.calcPages(total, 1000);
|
||||
for (int i = 1; i <= pages; i++) {
|
||||
@@ -75,7 +81,7 @@ public class UserStatJob implements SimpleJob {
|
||||
processStat(user);
|
||||
|
||||
// 理财和贷款潜客统计
|
||||
customerStatService.customerStat(user, financiaFilterConfig, loanFilterConfig, financialCustomersList);
|
||||
customerStatService.customerStat(user, financiaFilterConfig, loanFilterConfig, financialCustomersList, LoanCustomersConfigList);
|
||||
} catch (Exception e) {
|
||||
logger.error("用户维度统计任务异常", e);
|
||||
DingDingMessageUtil.sendTextMessage("用户维度统计任务异常:" + e.getMessage());
|
||||
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package com.fangjia.job.fsh.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.fangjia.job.fsh.po.LoanCustomersConfig;
|
||||
|
||||
public interface LoanCustomersConfigService {
|
||||
|
||||
List<LoanCustomersConfig> queryAll();
|
||||
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
package com.fangjia.job.fsh.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.cxytiandi.jdbc.EntityService;
|
||||
import com.fangjia.job.fsh.po.LoanCustomersConfig;
|
||||
|
||||
@Service
|
||||
public class LoanCustomersConfigServiceImpl extends EntityService<LoanCustomersConfig> implements LoanCustomersConfigService {
|
||||
|
||||
@Override
|
||||
public List<LoanCustomersConfig> queryAll() {
|
||||
return super.list();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user