commit code
This commit is contained in:
+43
-13
@@ -15,6 +15,7 @@ import com.fangjia.job.common.util.DateUtilCustom;
|
|||||||
import com.fangjia.job.fsh.document.CustomerStat;
|
import com.fangjia.job.fsh.document.CustomerStat;
|
||||||
import com.fangjia.job.fsh.po.EnterpriseProductUser;
|
import com.fangjia.job.fsh.po.EnterpriseProductUser;
|
||||||
import com.fangjia.job.fsh.po.FinancialCustomersConfig;
|
import com.fangjia.job.fsh.po.FinancialCustomersConfig;
|
||||||
|
import com.fangjia.job.fsh.po.HouseInfo;
|
||||||
import com.fangjia.job.fsh.po.PotentialCustomersFilterConfig;
|
import com.fangjia.job.fsh.po.PotentialCustomersFilterConfig;
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
@@ -143,30 +144,59 @@ public class CustomerStatServiceImpl implements CustomerStatService {
|
|||||||
end = timeMap.get("end");
|
end = timeMap.get("end");
|
||||||
}
|
}
|
||||||
// 判断用户理财广告点击率
|
// 判断用户理财广告点击率
|
||||||
double adClickRate = getfinancialAdClickRate(eid, uid, start, end);
|
if (config.getAdClickRate() > 0) {
|
||||||
if (adClickRate <= config.getAdClickRate()) {
|
double adClickRate = getfinancialAdClickRate(eid, uid, start, end);
|
||||||
continue;
|
if (adClickRate <= config.getAdClickRate()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 判断房产分析PV
|
// 判断房产分析PV
|
||||||
if (visitLogService.queryPvCountByUser(eid, uid, Arrays.asList("/fsh/result"), start, end) <= config.getHouseAnalyPv()) {
|
if (config.getHouseAnalyPv() > 0) {
|
||||||
continue;
|
if (visitLogService.queryPvCountByUser(eid, uid, Arrays.asList("/fsh/result"), start, end) <= config.getHouseAnalyPv()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 判断出售分析PV
|
// 判断出售分析PV
|
||||||
if (visitLogService.queryPvCountByUser(eid, uid, Arrays.asList("/saleAnalysis/analysisDetail"), start, end) <= config.getSaleAnalyPv()) {
|
if (config.getSaleAnalyPv() > 0) {
|
||||||
continue;
|
if (visitLogService.queryPvCountByUser(eid, uid, Arrays.asList("/saleAnalysis/analysisDetail"), start, end) <= config.getSaleAnalyPv()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 判断出租管理PV
|
// 判断出租管理PV
|
||||||
if (visitLogService.queryPvCountByUser(eid, uid, Arrays.asList("/rent/index"), start, end) <= config.getRentManagerPv()) {
|
if (config.getRentManagerPv() > 0) {
|
||||||
continue;
|
if (visitLogService.queryPvCountByUser(eid, uid, Arrays.asList("/rent/index"), start, end) <= config.getRentManagerPv()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 判断房产数量
|
// 判断房产数量
|
||||||
if (houseInfoService.queryCountByEidAndUid(eid, uid) <= config.getHouseCountRank()) {
|
if (config.getHouseCountRank() > 0) {
|
||||||
continue;
|
if (houseInfoService.queryCountByEidAndUid(eid, uid) <= config.getHouseCountRank()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 判断房产评级
|
||||||
|
if (config.getHouseLevel() > 0) {
|
||||||
|
HouseInfo houseInfo = houseInfoService.findHighLevelHouseInfo(eid, uid);
|
||||||
|
if (houseInfo == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (houseInfo.getLevel() != config.getHouseLevel()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 判断房产价值排名
|
// 判断房产价值排名
|
||||||
if (this.getHousePriceLevel(eid, uid) <= config.getHousePriceRank()) {
|
if (config.getHousePriceRank() > 0) {
|
||||||
continue;
|
if (this.getHousePriceLevel(eid, uid) <= config.getHousePriceRank()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
+7
@@ -2,6 +2,8 @@ package com.fangjia.job.fsh.service;
|
|||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
import com.fangjia.job.fsh.po.HouseInfo;
|
||||||
|
|
||||||
public interface HouseInfoService {
|
public interface HouseInfoService {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -92,4 +94,9 @@ public interface HouseInfoService {
|
|||||||
*/
|
*/
|
||||||
Long queryUserHouseTotalPrice(Long eid, String uid);
|
Long queryUserHouseTotalPrice(Long eid, String uid);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查找最高等级的房产信息
|
||||||
|
*/
|
||||||
|
HouseInfo findHighLevelHouseInfo(Long eid, String uid);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+6
@@ -107,4 +107,10 @@ public class HouseInfoServiceImpl extends EntityService<HouseInfo> implements Ho
|
|||||||
return sum;
|
return sum;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public HouseInfo findHighLevelHouseInfo(Long eid, String uid) {
|
||||||
|
return super.getByParams(new String[] { "level" }, new String[] { "eid", "uid" ,"remove_status"},
|
||||||
|
new Object[] { eid, uid, 0 }, HouseInfo.level_orders);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user