|
|
@@ -1,12 +1,8 @@
|
|
|
/** ================================= 现货报表 ================================**/
|
|
|
-import APP from '@/services';
|
|
|
-import * as type from './interface';
|
|
|
+import { getUsrId } from '@/services/bus/user';
|
|
|
import { commonSearch_go } from '@/services/go/index';
|
|
|
-import { QuerySpotDayReportReq } from './interface';
|
|
|
-import { QuerySpotDayReportDetailReq } from './interface';
|
|
|
-import { QuerySpotMonthReportReq } from './interface';
|
|
|
-import { QuerySpotMonthReportDetailReq } from './interface';
|
|
|
-import { QuerySpotPLReportReq } from './interface';
|
|
|
+import * as type from './interface';
|
|
|
+import { QuerySpotDayReportDetailReq, QuerySpotMonthReportDetailReq, QuerySpotMonthReportReq, QuerySpotPLReportReq } from './interface';
|
|
|
/**
|
|
|
* 查询现货损益报表
|
|
|
* @param queryInfo 查询条件
|
|
|
@@ -22,15 +18,15 @@ export async function QuerySpotPLReport(queryInfo: QuerySpotPLReportReq): Promis
|
|
|
|
|
|
/**
|
|
|
* 查询现货报表
|
|
|
- * @param queryInfo 查询信息
|
|
|
+ * @param tradedate 交易日(格式:yyyyMMdd)
|
|
|
* @returns 现货报表
|
|
|
*/
|
|
|
-export async function QuerySpotDayReport(queryInfo: QuerySpotDayReportReq): Promise<type.QuerySpotDayReportRsp[]> {
|
|
|
- try {
|
|
|
- return commonSearch_go('/Ermcp3/QryReportDaySpot', queryInfo);
|
|
|
- } catch (err) {
|
|
|
+export async function QuerySpotDayReport(tradedate: string): Promise<type.QuerySpotDayReportRsp[]> {
|
|
|
+ const userid = getUsrId()
|
|
|
+ return commonSearch_go('/Ermcp3/QryReportDaySpot', { tradedate, userid }).catch(err => {
|
|
|
throw new Error(`查询现货报表: ${err.message}`);
|
|
|
- }
|
|
|
+ });
|
|
|
+
|
|
|
}
|
|
|
|
|
|
/**
|