|
@@ -231,8 +231,6 @@ public class AccountReportServiceImpl implements IAccountReportService {
|
|
|
public JSONObject getStatistics(JSONObject json) {
|
|
|
JSONObject returnJson = new JSONObject();
|
|
|
try {
|
|
|
-
|
|
|
-
|
|
|
Integer type = json.getInteger("type");
|
|
|
String nowDate = DateUtils.getNowDate("yyyy-MM-dd"); // 当前日期
|
|
|
String anotherDay = DateUtils.getAnotherDay("yyyy-MM-dd", nowDate, -1); // 当前日期-1
|
|
@@ -270,7 +268,6 @@ public class AccountReportServiceImpl implements IAccountReportService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
Long photoShow = nowAccountSummary.getLong("photoShow");// 今日封面展示
|
|
|
Long yesterdayPhotoShow = yesterdayAccountSummary.getLong("photoShow");// 昨日封面展示
|
|
|
if (!Check.isNull(photoShow) && !Check.isNull(yesterdayPhotoShow)) {
|
|
@@ -282,7 +279,6 @@ public class AccountReportServiceImpl implements IAccountReportService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
Long photoClick = nowAccountSummary.getLong("photoClick");// 封面点击
|
|
|
Long yesterdayPhotoClick = yesterdayAccountSummary.getLong("photoClick");
|
|
|
if (!Check.isNull(photoClick) && !Check.isNull(yesterdayPhotoClick)) {
|
|
@@ -294,7 +290,6 @@ public class AccountReportServiceImpl implements IAccountReportService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
Long nowAClick = nowAccountSummary.getLong("aclick"); // 爆光
|
|
|
Long yesterdayAClick = yesterdayAccountSummary.getLong("aclick");
|
|
|
if (!Check.isNull(nowAClick) && !Check.isNull(nowAClick)) {
|
|
@@ -306,7 +301,6 @@ public class AccountReportServiceImpl implements IAccountReportService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
BigDecimal nowPhotoClickRatio = nowAccountSummary.getBigDecimal("photoClickRatio"); // 封面点击率
|
|
|
BigDecimal yesterdayPhotoClickRatio = yesterdayAccountSummary.getBigDecimal("photoClickRatio");
|
|
|
if (!Check.isNull(nowPhotoClickRatio) && !Check.isNull(yesterdayPhotoClickRatio)) {
|
|
@@ -318,7 +312,6 @@ public class AccountReportServiceImpl implements IAccountReportService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
BigDecimal nowCvr = nowAccountSummary.getBigDecimal("cvr"); // cvr
|
|
|
BigDecimal yesterdayCvr = yesterdayAccountSummary.getBigDecimal("cvr");
|
|
|
if (!Check.isNull(nowCvr) && !Check.isNull(yesterdayCvr)) {
|
|
@@ -330,7 +323,6 @@ public class AccountReportServiceImpl implements IAccountReportService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
BigDecimal nowCpm = nowAccountSummary.getBigDecimal("cpm"); // cpm
|
|
|
BigDecimal yesterdayCpm = yesterdayAccountSummary.getBigDecimal("cpm");
|
|
|
if (!Check.isNull(nowCpm) && !Check.isNull(yesterdayCpm)) {
|
|
@@ -342,7 +334,6 @@ public class AccountReportServiceImpl implements IAccountReportService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
Long nowBClick = nowAccountSummary.getLong("bClick"); // 行为数
|
|
|
Long yesterdayBClick = yesterdayAccountSummary.getLong("bClick");
|
|
|
if (!Check.isNull(nowBClick) && !Check.isNull(yesterdayBClick)) {
|
|
@@ -354,7 +345,6 @@ public class AccountReportServiceImpl implements IAccountReportService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
Long nowFormCount = nowAccountSummary.getLong("formCount"); // 表单提交数
|
|
|
Long yesterdayFormCount = yesterdayAccountSummary.getLong("formCount");
|
|
|
|
|
@@ -365,7 +355,6 @@ public class AccountReportServiceImpl implements IAccountReportService {
|
|
|
} else {
|
|
|
chainRatioJson.put("formCountProportion", 0); //表单提交数环比
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
|
|
|
BigDecimal nowFormPrice = nowAccountSummary.getBigDecimal("formPrice"); // 表单提交单价
|
|
@@ -377,11 +366,8 @@ public class AccountReportServiceImpl implements IAccountReportService {
|
|
|
} else {
|
|
|
chainRatioJson.put("formPriceProportion", 0); // 表单提交单价环比
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
|
|
|
returnJson.put("chainRatio", chainRatioJson);
|