|
@@ -27,7 +27,6 @@ import com.ytpm.app.enums.LoginType;
|
|
|
import com.ytpm.app.model.YtDyzAdRecord;
|
|
import com.ytpm.app.model.YtDyzAdRecord;
|
|
|
import com.ytpm.app.model.YtDyzLoginRecord;
|
|
import com.ytpm.app.model.YtDyzLoginRecord;
|
|
|
import com.ytpm.app.model.YtDyzUser;
|
|
import com.ytpm.app.model.YtDyzUser;
|
|
|
-import com.ytpm.app.param.AdRecordStatisticParam;
|
|
|
|
|
import com.ytpm.custom.CustomField;
|
|
import com.ytpm.custom.CustomField;
|
|
|
import com.ytpm.dao.AppMapper;
|
|
import com.ytpm.dao.AppMapper;
|
|
|
import com.ytpm.dao.DictMapper;
|
|
import com.ytpm.dao.DictMapper;
|
|
@@ -610,11 +609,9 @@ public class RiskServiceImpl implements RiskService {
|
|
|
Date limitStartDate = DateUtil.offset(new Date(), DateField.MONTH, -monthCount);
|
|
Date limitStartDate = DateUtil.offset(new Date(), DateField.MONTH, -monthCount);
|
|
|
int recordCount = 0;
|
|
int recordCount = 0;
|
|
|
try {
|
|
try {
|
|
|
- AdRecordStatisticParam param = new AdRecordStatisticParam();
|
|
|
|
|
- param.setUserId(dyzUser.getUserId());
|
|
|
|
|
- param.setAdSourceType(AdSourceTypeEnum.rewarded_video.getAdSourceType());
|
|
|
|
|
- param.setStartTime(limitStartDate);
|
|
|
|
|
- Object o = feignInvoker.invoke(userApp.getServiceName(), "queryRecordMonthCount", param);
|
|
|
|
|
|
|
+ Object o = feignInvoker.invoke(userApp.getServiceName(), "queryRecordMonthCount",
|
|
|
|
|
+ dyzUser.getUserId(), AdSourceTypeEnum.rewarded_video.getAdSourceType(),
|
|
|
|
|
+ DateUtil.format(limitStartDate, "yyyy-MM-dd HH:mm:ss"));
|
|
|
JSONObject object = JSON.parseObject(JSON.toJSONString(o));
|
|
JSONObject object = JSON.parseObject(JSON.toJSONString(o));
|
|
|
if (object.get("data") != null) {
|
|
if (object.get("data") != null) {
|
|
|
recordCount = Integer.parseInt(object.get("data").toString());
|
|
recordCount = Integer.parseInt(object.get("data").toString());
|
|
@@ -707,7 +704,7 @@ public class RiskServiceImpl implements RiskService {
|
|
|
*/
|
|
*/
|
|
|
private void checkRisk746(YtDyzUser dyzUser, List<YtDyzAdRecord> records) {
|
|
private void checkRisk746(YtDyzUser dyzUser, List<YtDyzAdRecord> records) {
|
|
|
RiskTemplateView revenue = configMapper.getByCode(dyzUser.getAppId()+"-746");
|
|
RiskTemplateView revenue = configMapper.getByCode(dyzUser.getAppId()+"-746");
|
|
|
- if(revenue.getEnabled()!=1)return;
|
|
|
|
|
|
|
+ if (revenue == null || revenue.getEnabled() != 1) return;
|
|
|
Map<String, String> revenueMap = revenue.getConfigList().stream().collect(
|
|
Map<String, String> revenueMap = revenue.getConfigList().stream().collect(
|
|
|
Collectors.toMap(RiskConfigView::getFieldName, RiskConfigView::getConfigVal));
|
|
Collectors.toMap(RiskConfigView::getFieldName, RiskConfigView::getConfigVal));
|
|
|
List<YtDyzAdRecord> revenues = records.stream().filter(
|
|
List<YtDyzAdRecord> revenues = records.stream().filter(
|