|
@@ -19,7 +19,9 @@ import {
|
|
|
* @param req.querytype 查询类型 1-日报表 2-周期报表 3-日报表(指定时间段[开始交易日,结束交易日]) 4-日报表明细
|
|
* @param req.querytype 查询类型 1-日报表 2-周期报表 3-日报表(指定时间段[开始交易日,结束交易日]) 4-日报表明细
|
|
|
*/
|
|
*/
|
|
|
export function qryAreaExpourseReport(req: AreaExpourseReportReq): Promise<Ermcp3ExpourseReport[]> {
|
|
export function qryAreaExpourseReport(req: AreaExpourseReportReq): Promise<Ermcp3ExpourseReport[]> {
|
|
|
- req.userid = getUserId()
|
|
|
|
|
|
|
+ if (!req.userid) {
|
|
|
|
|
+ req.userid = getUserId()
|
|
|
|
|
+ }
|
|
|
return commonSearch_go('/Ermcp3/QryAreaExpourseReport', req).catch((err) => {
|
|
return commonSearch_go('/Ermcp3/QryAreaExpourseReport', req).catch((err) => {
|
|
|
throw new Error(`查询敞口报表: ${err.message}`);
|
|
throw new Error(`查询敞口报表: ${err.message}`);
|
|
|
});
|
|
});
|
|
@@ -29,7 +31,9 @@ export function qryAreaExpourseReport(req: AreaExpourseReportReq): Promise<Ermcp
|
|
|
* 查询现货报表 /Ermcp3/QryAreaSpotplReport
|
|
* 查询现货报表 /Ermcp3/QryAreaSpotplReport
|
|
|
*/
|
|
*/
|
|
|
export function qryAreaSpotplReport(req: AreaSpotplReportReq): Promise<Ermcp3AreaSpotPLReport[]> {
|
|
export function qryAreaSpotplReport(req: AreaSpotplReportReq): Promise<Ermcp3AreaSpotPLReport[]> {
|
|
|
- req.userid = getUserId()
|
|
|
|
|
|
|
+ if (!req.userid) {
|
|
|
|
|
+ req.userid = getUserId()
|
|
|
|
|
+ }
|
|
|
return commonSearch_go('/Ermcp3/QryAreaSpotplReport', req).catch((err) => {
|
|
return commonSearch_go('/Ermcp3/QryAreaSpotplReport', req).catch((err) => {
|
|
|
throw new Error(`查询现货报表: ${err.message}`);
|
|
throw new Error(`查询现货报表: ${err.message}`);
|
|
|
});
|
|
});
|
|
@@ -40,7 +44,9 @@ export function qryAreaSpotplReport(req: AreaSpotplReportReq): Promise<Ermcp3Are
|
|
|
* @param req
|
|
* @param req
|
|
|
*/
|
|
*/
|
|
|
export function qryAreaStockReport(req: AreaStockReportReq): Promise<Ermcp3AreaStockReport[]> {
|
|
export function qryAreaStockReport(req: AreaStockReportReq): Promise<Ermcp3AreaStockReport[]> {
|
|
|
- req.userid = getUserId()
|
|
|
|
|
|
|
+ if (!req.userid) {
|
|
|
|
|
+ req.userid = getUserId()
|
|
|
|
|
+ }
|
|
|
return commonSearch_go('/Ermcp3/QryAreaStockReport', req).catch((err) => {
|
|
return commonSearch_go('/Ermcp3/QryAreaStockReport', req).catch((err) => {
|
|
|
throw new Error(`查询库存报表: ${err.message}`);
|
|
throw new Error(`查询库存报表: ${err.message}`);
|
|
|
});
|
|
});
|
|
@@ -51,7 +57,9 @@ export function qryAreaStockReport(req: AreaStockReportReq): Promise<Ermcp3AreaS
|
|
|
* @param req
|
|
* @param req
|
|
|
*/
|
|
*/
|
|
|
export function qryFinanceReport(req: FinanceReportReq): Promise<Ermcp3FinanceReport[]> {
|
|
export function qryFinanceReport(req: FinanceReportReq): Promise<Ermcp3FinanceReport[]> {
|
|
|
- req.userid = getUserId()
|
|
|
|
|
|
|
+ if (!req.userid) {
|
|
|
|
|
+ req.userid = getUserId()
|
|
|
|
|
+ }
|
|
|
return commonSearch_go('/Ermcp3/QryFinanceReport', req).catch((err) => {
|
|
return commonSearch_go('/Ermcp3/QryFinanceReport', req).catch((err) => {
|
|
|
throw new Error(`查询财务报表: ${err.message}`);
|
|
throw new Error(`查询财务报表: ${err.message}`);
|
|
|
});
|
|
});
|