|
|
|
@ -277,6 +277,23 @@ public class TradeLogServiceImpl implements TradeLogService {
|
|
|
|
|
};
|
|
|
|
|
});
|
|
|
|
|
JSONObject result = PageListUtils.buildPageListResult(logs);
|
|
|
|
|
// JSONObject analysis = orderMapper.analysisOrders(params);
|
|
|
|
|
// result.put("analysis", analysis);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
@Override
|
|
|
|
|
public JSONObject incrementalAnalysisOrders(TradeLogQuery query, JSONObject manager) {
|
|
|
|
|
JSONObject params = query.toParams(null);
|
|
|
|
|
if (ManagerRole.BD_USER.hasRole(manager.getIntValue("role")) && !ManagerRole.ORG_MANAGER.hasRole(manager.getIntValue("role"))) {
|
|
|
|
|
params.put("bd_user", manager.getString("manager_id"));
|
|
|
|
|
}
|
|
|
|
|
orgManager.checkOrgIds(manager, params);
|
|
|
|
|
if (query.getGatewayChild() != null) {
|
|
|
|
|
params.put("trade_type", new ArrayList<Integer>() {{
|
|
|
|
|
add(query.getGatewayChild());
|
|
|
|
|
}});
|
|
|
|
|
}
|
|
|
|
|
JSONObject result = new JSONObject();
|
|
|
|
|
JSONObject analysis = orderMapper.analysisOrders(params);
|
|
|
|
|
result.put("analysis", analysis);
|
|
|
|
|
return result;
|
|
|
|
|