|
@@ -32,6 +32,8 @@ public class AdqAdIncomeServiceImpl implements IAdqAdIncomeService {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private AdqErrorLogMapper adqErrorLogMapper;
|
|
private AdqErrorLogMapper adqErrorLogMapper;
|
|
|
|
|
|
|
|
|
|
+ private static final Map<String, String> adSlotMap = new HashMap<>();
|
|
|
|
|
+
|
|
|
public List<JSONObject> getAdqAdIncomeRetryJob() {
|
|
public List<JSONObject> getAdqAdIncomeRetryJob() {
|
|
|
return adqAdIncomeMapper.queryAdqAdIncomeRetryJob();
|
|
return adqAdIncomeMapper.queryAdqAdIncomeRetryJob();
|
|
|
}
|
|
}
|
|
@@ -81,6 +83,7 @@ public class AdqAdIncomeServiceImpl implements IAdqAdIncomeService {
|
|
|
AdqPublisherAdunitGeneral report = JSONObject.parseObject(statItem.toJSONString(), AdqPublisherAdunitGeneral.class);
|
|
AdqPublisherAdunitGeneral report = JSONObject.parseObject(statItem.toJSONString(), AdqPublisherAdunitGeneral.class);
|
|
|
report.setAppId(appId);
|
|
report.setAppId(appId);
|
|
|
report.setStatDate(Integer.valueOf(report.getDate().replace("-", "")));
|
|
report.setStatDate(Integer.valueOf(report.getDate().replace("-", "")));
|
|
|
|
|
+ report.setAdSlotName(getAdSlotName(report.getAdSlot()));
|
|
|
//System.out.println(report);
|
|
//System.out.println(report);
|
|
|
reports.add(report);
|
|
reports.add(report);
|
|
|
}
|
|
}
|
|
@@ -158,6 +161,7 @@ public class AdqAdIncomeServiceImpl implements IAdqAdIncomeService {
|
|
|
AdqPublisherAdunitGeneral report = JSONObject.parseObject(dataJson.toJSONString(), AdqPublisherAdunitGeneral.class);
|
|
AdqPublisherAdunitGeneral report = JSONObject.parseObject(dataJson.toJSONString(), AdqPublisherAdunitGeneral.class);
|
|
|
report.setAppId(appId);
|
|
report.setAppId(appId);
|
|
|
report.setStatDate(Integer.valueOf(report.getDate().replace("-", "")));
|
|
report.setStatDate(Integer.valueOf(report.getDate().replace("-", "")));
|
|
|
|
|
+ report.setAdSlotName(getAdSlotName(report.getAdSlot()));
|
|
|
//System.out.println(report);
|
|
//System.out.println(report);
|
|
|
reports.add(report);
|
|
reports.add(report);
|
|
|
}
|
|
}
|
|
@@ -206,4 +210,24 @@ public class AdqAdIncomeServiceImpl implements IAdqAdIncomeService {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+ private String getAdSlotName(String adSlot) {
|
|
|
|
|
+ if (adSlotMap.isEmpty()) {
|
|
|
|
|
+ adSlotMap.put("SLOT_ID_BIZ_BOTTOM", "公众号底部广告");
|
|
|
|
|
+ adSlotMap.put("SLOT_ID_BIZ_MID_CONTEXT", "公众号文中广告");
|
|
|
|
|
+ adSlotMap.put("SLOT_ID_BIZ_VIDEO_END", "公众号视频后贴");
|
|
|
|
|
+ adSlotMap.put("SLOT_ID_BIZ_SPONSOR", "公众号互选广告");
|
|
|
|
|
+ adSlotMap.put("SLOT_ID_BIZ_CPS", "公众号返佣商品");
|
|
|
|
|
+ adSlotMap.put("SLOT_ID_WEAPP_BANNER", "小程序banner");
|
|
|
|
|
+ adSlotMap.put("SLOT_ID_WEAPP_REWARD_VIDEO", "小程序激励视频");
|
|
|
|
|
+ adSlotMap.put("SLOT_ID_WEAPP_INTERSTITIAL", "小程序插屏广告");
|
|
|
|
|
+ adSlotMap.put("SLOT_ID_WEAPP_VIDEO_FEEDS", "小程序视频广告");
|
|
|
|
|
+ adSlotMap.put("SLOT_ID_WEAPP_VIDEO_BEGIN", "小程序视频前贴");
|
|
|
|
|
+ adSlotMap.put("SLOT_ID_WEAPP_BOX", "小程序格子广告");
|
|
|
|
|
+ adSlotMap.put("SLOT_ID_WEAPP_TEMPLATE", "小程序原生模板广告");
|
|
|
|
|
+ adSlotMap.put("SLOT_ID_WEAPP_COVER", "封面广告");
|
|
|
|
|
+ }
|
|
|
|
|
+ return adSlotMap.get(adSlot);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|