|
|
@@ -2,6 +2,7 @@ package cn.com.ctop.job.bytedance.data.service.impl;
|
|
|
|
|
|
import cn.com.ctop.job.bytedance.data.mapper.ReportsAdPushMapper;
|
|
|
import cn.com.ctop.job.bytedance.data.service.ITotalRankPushService;
|
|
|
+import cn.com.ctop.job.bytedance.data.utils.Check;
|
|
|
import cn.com.ctop.job.bytedance.data.utils.DateUtils;
|
|
|
import cn.com.ctop.job.bytedance.utils.FeishuRobotUtil;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
@@ -88,10 +89,16 @@ public class TotalRankPushServiceImpl implements ITotalRankPushService {
|
|
|
p3p4List.add(p3);
|
|
|
List<String> p4List = new ArrayList<>();
|
|
|
for (int i = 0; i < entry.getValue().size(); i++) {
|
|
|
+ String phonenumber = mobileMap.get(entry.getValue().get(i).get("phonenumber"));
|
|
|
+ List us = new ArrayList();
|
|
|
+ if (!Check.isNull(phonenumber)) {
|
|
|
+ us.add(ImmutableMap.of("id", phonenumber));
|
|
|
+ }
|
|
|
String p4 = part_4.replaceAll("\\$\\{object_list_4.rankRank}", String.valueOf(entry.getValue().get(i).getOrDefault("rk", "-")))
|
|
|
- .replaceAll("\\$\\{object_list_4.user_id}", JSON.toJSONString(Arrays.asList(ImmutableMap.of("id", mobileMap.get(entry.getValue().get(i).get("phonenumber"))))))
|
|
|
.replaceAll("\\$\\{object_list_4.rankTodayData}", String.valueOf(entry.getValue().get(i).getOrDefault("cost_amount", "0")))
|
|
|
- .replaceAll("\\$\\{object_list_4.rankRealROI}", String.valueOf(entry.getValue().get(i).getOrDefault("real_roi", "0")));
|
|
|
+ .replaceAll("\\$\\{object_list_4.rankRealROI}", String.valueOf(entry.getValue().get(i).getOrDefault("real_roi", "0")))
|
|
|
+ .replaceAll("\\$\\{object_list_4.user_id}", JSON.toJSONString(us))
|
|
|
+ ;
|
|
|
p4List.add(p4);
|
|
|
}
|
|
|
p3p4List.addAll(p4List);
|