Commit e910ed9f by 王昆

gsb

parent 6b2db2d2
...@@ -83,7 +83,7 @@ class DeliverDao extends Dao { ...@@ -83,7 +83,7 @@ class DeliverDao extends Dao {
sql.push("INNER JOIN `d_deliver` t1 ON t2.`deliver_id` = t1.`id`"); sql.push("INNER JOIN `d_deliver` t1 ON t2.`deliver_id` = t1.`id`");
sql.push("WHERE 1 = 1"); sql.push("WHERE 1 = 1");
this.setChannelDeliverCondition(sql, params); this.setChannelDeliverCondition(sql, params);
sql.push("GROUP BY t1.id");
sql.push("ORDER BY t1.created_at DESC"); sql.push("ORDER BY t1.created_at DESC");
if (params.pageSize > 0) { if (params.pageSize > 0) {
sql.push("LIMIT :startRow, :pageSize"); sql.push("LIMIT :startRow, :pageSize");
......
...@@ -17,7 +17,6 @@ class DeliverChannelDao extends Dao { ...@@ -17,7 +17,6 @@ class DeliverChannelDao extends Dao {
if (params.channel_id) { if (params.channel_id) {
sql.push("AND channel_id = :channel_id"); sql.push("AND channel_id = :channel_id");
} }
sql.push("GROUP BY deliver_id")
return this.customQuery(sql.join(" "), params); return this.customQuery(sql.join(" "), params);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment