|
@@ -100,6 +100,11 @@ public class AdsOverallSummaryServiceImpl implements IAdsOverallSummaryService {
|
|
|
//前端展示的折线数据对象实体
|
|
|
AdsOverallSummaryLineDataVO adsOverallSummaryLineDataVO = new AdsOverallSummaryLineDataVO();
|
|
|
|
|
|
+ //根据条件获取数据
|
|
|
+ Condition lineCon = myCondition(param, true, false);
|
|
|
+ //查询条件变为字符串
|
|
|
+ String s = lineCon.toSql(dao.getEntity(AdsOverallSummary.class));
|
|
|
+
|
|
|
//自定义sql语句
|
|
|
Sql sql = Sqls.create("Select dt," +
|
|
|
"SUM(x.today_total_cost) cost, " +
|
|
@@ -108,11 +113,13 @@ public class AdsOverallSummaryServiceImpl implements IAdsOverallSummaryService {
|
|
|
"SUM(x.today_nature_amount) nature_amount, " +
|
|
|
"SUM(x.first_roi) first_roi," +
|
|
|
"SUM(x.today_player_count) player_account " +
|
|
|
- "from ads_overall_summary x $condition");
|
|
|
- //根据条件获取数据
|
|
|
- Condition lineCon = myCondition(param, true, false);
|
|
|
+ "from ads_overall_summary x " + s);
|
|
|
+
|
|
|
//拼接查询条件
|
|
|
- sql.setCondition(lineCon);
|
|
|
+ //sql.setCondition(lineCon);
|
|
|
+
|
|
|
+
|
|
|
+ log.info("sql:" + sql.toString());
|
|
|
|
|
|
//自定义回显对象
|
|
|
sql.setCallback(Sqls.callback.entities());
|