Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
2494fd36
Commit
2494fd36
authored
Sep 08, 2020
by
linboxuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add queryTradeProduceList
parent
b2ac9897
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
8 deletions
+17
-8
center-channel/app/base/api/impl/opaction/tmOrderCall.js
+1
-5
center-channel/app/base/service/impl/utilsSve/utilsOrderSve.js
+1
-0
center-channel/app/base/service/impl/utilsSve/utilsTmOrderCallSve.js
+14
-2
center-channel/app/config/routes/api.js
+1
-1
No files found.
center-channel/app/base/api/impl/opaction/tmOrderCall.js
View file @
2494fd36
...
@@ -4,7 +4,7 @@ var settings = require("../../../../config/settings");
...
@@ -4,7 +4,7 @@ var settings = require("../../../../config/settings");
class
ProductAPI
extends
WEBBase
{
class
ProductAPI
extends
WEBBase
{
constructor
()
{
constructor
()
{
super
();
super
();
this
.
utils
OrderSve
=
system
.
getObject
(
"service.utilsSve.utilsOrder
Sve"
);
this
.
utils
TmOrderCallSve
=
system
.
getObject
(
"service.utilsSve.utilsTmOrderCall
Sve"
);
}
}
/**
/**
* 接口跳转-POST请求
* 接口跳转-POST请求
...
@@ -13,9 +13,6 @@ class ProductAPI extends WEBBase {
...
@@ -13,9 +13,6 @@ class ProductAPI extends WEBBase {
* action_body 执行的参数
* action_body 执行的参数
*/
*/
async
springBoard
(
pobj
,
qobj
,
req
)
{
async
springBoard
(
pobj
,
qobj
,
req
)
{
if
(
!
pobj
.
actionProcess
)
{
return
system
.
getResult
(
null
,
"actionProcess参数不能为空"
);
}
if
(
!
pobj
.
actionType
)
{
if
(
!
pobj
.
actionType
)
{
return
system
.
getResult
(
null
,
"actionType参数不能为空"
);
return
system
.
getResult
(
null
,
"actionType参数不能为空"
);
}
}
...
@@ -25,7 +22,6 @@ class ProductAPI extends WEBBase {
...
@@ -25,7 +22,6 @@ class ProductAPI extends WEBBase {
async
opActionProcess
(
pobj
,
action_type
,
req
)
{
async
opActionProcess
(
pobj
,
action_type
,
req
)
{
pobj
.
requestId
=
req
.
requestId
;
pobj
.
requestId
=
req
.
requestId
;
var
opResult
=
null
;
var
opResult
=
null
;
console
.
log
(
"11111"
,
opResult
)
switch
(
action_type
)
{
switch
(
action_type
)
{
case
"queryTradeProduceList"
:
//2020 0907 lin 新增 ali查询 用户确认资料支付尾款,并更新订单状态
case
"queryTradeProduceList"
:
//2020 0907 lin 新增 ali查询 用户确认资料支付尾款,并更新订单状态
opResult
=
await
this
.
utilsTmOrderCallSve
.
queryTradeProduceList
(
pobj
,
pobj
.
actionBody
);
opResult
=
await
this
.
utilsTmOrderCallSve
.
queryTradeProduceList
(
pobj
,
pobj
.
actionBody
);
...
...
center-channel/app/base/service/impl/utilsSve/utilsOrderSve.js
View file @
2494fd36
...
@@ -819,6 +819,7 @@ class UtilsOrderService extends AppServiceBase {
...
@@ -819,6 +819,7 @@ class UtilsOrderService extends AppServiceBase {
pobj
.
actionType
=
"addOrder"
;
pobj
.
actionType
=
"addOrder"
;
var
reqUrl
=
this
.
centerOrderUrl
+
"action/order/springBoard"
;
var
reqUrl
=
this
.
centerOrderUrl
+
"action/order/springBoard"
;
pobj
.
orderStatus
=
64
;
// 2020 0908 lin 新增。64作为orderinfo的orderStatus的值。含义为已付部分款
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
if
(
result
)
{
if
(
result
)
{
var
tmResult
=
{
var
tmResult
=
{
...
...
center-channel/app/base/service/impl/utilsSve/utilsTmOrderCallSve.js
View file @
2494fd36
...
@@ -2,14 +2,26 @@ const system = require("../../../system");
...
@@ -2,14 +2,26 @@ const system = require("../../../system");
var
settings
=
require
(
"../../../../config/settings"
);
var
settings
=
require
(
"../../../../config/settings"
);
const
querystring
=
require
(
'querystring'
);
const
querystring
=
require
(
'querystring'
);
const
AppServiceBase
=
require
(
"../../app.base"
);
const
AppServiceBase
=
require
(
"../../app.base"
);
const
{
or
}
=
require
(
"sequelize"
);
//订单操作类
//订单操作类
class
UtilsOpOrderService
extends
AppServiceBase
{
class
UtilsOpOrderService
extends
AppServiceBase
{
constructor
()
{
constructor
()
{
super
();
super
();
this
.
aliclient
=
system
.
getObject
(
"util.aliyunClient"
);
}
}
async
queryTradeProduceList
(
pobj
,
actionBody
)
{
//修改联系人
async
queryTradeProduceList
(
pobj
,
actionBody
)
{
//2020 0907 lin 新增 ali查询 用户确认资料支付尾款,并更新订单状态
return
system
.
getResultSuccess
();
var
obj
=
{
BuyerStatus
:
11
,
PageNum
:
1
,
PageSize
:
20
,
SortFiled
:
"updateTime"
,
SortOrder
:
"DESC"
,
type
:
"TM"
};
let
orderList
=
await
this
.
aliclient
.
reqbyget
({
action
:
"QueryTradeProduceList"
,
reqbody
:
obj
});
console
.
log
(
"orderList"
,
orderList
)
return
system
.
getResultSuccess
(
orderList
);
}
}
}
}
module
.
exports
=
UtilsOpOrderService
;
module
.
exports
=
UtilsOpOrderService
;
center-channel/app/config/routes/api.js
View file @
2494fd36
...
@@ -212,7 +212,7 @@ module.exports = function (app) {
...
@@ -212,7 +212,7 @@ module.exports = function (app) {
return
;
return
;
}
}
// 2020 0812 lin 只去掉了check,因为要记录智能诊断的返回值,其他接口暂时未去掉
// 2020 0812 lin 只去掉了check,因为要记录智能诊断的返回值,其他接口暂时未去掉
if
([
"getAppTokenByHosts"
,
"getAppTokenByAppKey"
,
"test"
,
"getIndustries"
,
"getSecondIndustries"
,
"getQualificationByIndustry"
,
"counselling"
].
indexOf
(
req
.
body
.
actionType
)
>=
0
)
{
if
([
"getAppTokenByHosts"
,
"getAppTokenByAppKey"
,
"test"
,
"getIndustries"
,
"getSecondIndustries"
,
"getQualificationByIndustry"
,
"counselling"
,
"queryTradeProduceList"
].
indexOf
(
req
.
body
.
actionType
)
>=
0
)
{
req
.
body
.
actionBody
.
appHosts
=
req
.
host
;
req
.
body
.
actionBody
.
appHosts
=
req
.
host
;
next
();
next
();
return
;
return
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment