@@ -299,6 +299,8 @@ class HttpServerOnlySet
$ids_array = array_map(function ($i) {
return "'$i'";
}, $ids);
+ $ids_array = implode(",", $ids_array);
+
$sql = "select trade_id,sum(money) as msum,money_type from money_details where trade_id in ($ids_array) and money_type = 4 group by trade_id,money_type ";
$ret = DB::select($sql);