fix Dashboard TopOrderFee

master
luoyang 6 years ago
parent c5e246c538
commit a2de0ea35e

@ -148,7 +148,7 @@ public class DashboardServiceImpl implements DashboardService,DashboardAnalysisT
return commonAnalysis4;
}
JSONObject res = new JSONObject();
List<JSONObject> topOrders = transactionAnalysisMapper.getTopOrders(params, new PageBounds(1, 1, Order.formString("aud_fee.desc")));
List<JSONObject> topOrders = transactionAnalysisMapper.getTopOrders(params);
if (!topOrders.isEmpty()) {
res.put("top_amount_order", topOrders.get(0));
}

@ -33,7 +33,7 @@ public interface TransactionAnalysisMapper {
JSONObject getEarliestOrder(@Param("client_id") int client_id);
List<JSONObject> getTopOrders(JSONObject params, PageBounds pagination);
List<JSONObject> getTopOrders(JSONObject params);
List<JSONObject> getTradeAmountInTypes(JSONObject params);

@ -163,7 +163,7 @@
<if test="org_ids!=null">and o.org_id in
<foreach collection="org_ids" item="org_id" open="(" close=")" separator=",">#{org_id}</foreach></if>
<![CDATA[
GROUP BY o.order_id
GROUP BY o.order_id ORDER BY aud_fee DESC limit 1
]]>
</select>

Loading…
Cancel
Save