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
213593b8
Commit
213593b8
authored
Aug 12, 2020
by
wkliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
67aec9b8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
68 additions
and
1 deletions
+68
-1
center-channel/app/base/api/impl/action/askFor.js
+0
-1
center-channel/app/base/api/impl/zzzd/diagnosisneedbus.js
+42
-0
center-channel/app/base/service/impl/utilsSve/utilsNdbSve.js
+26
-0
No files found.
center-channel/app/base/api/impl/action/askFor.js
View file @
213593b8
...
@@ -18,7 +18,6 @@ class askFor extends WEBBase {
...
@@ -18,7 +18,6 @@ class askFor extends WEBBase {
* @memberof askFor
* @memberof askFor
*/
*/
async
tradeMark
(
pobj
,
qobj
,
req
)
{
async
tradeMark
(
pobj
,
qobj
,
req
)
{
switch
(
pobj
.
actionType
)
{
switch
(
pobj
.
actionType
)
{
case
'niceQuery'
:
case
'niceQuery'
:
const
param
=
pobj
.
actionBody
const
param
=
pobj
.
actionBody
...
...
center-channel/app/base/api/impl/zzzd/diagnosisneedbus.js
0 → 100644
View file @
213593b8
var
WEBBase
=
require
(
"../../web.base"
);
var
system
=
require
(
"../../../system"
);
class
diagnosisNeedBus
extends
WEBBase
{
constructor
()
{
super
();
this
.
unSve
=
system
.
getObject
(
'service.utilsSve.utilsNdbSve'
)
}
async
springBoard
(
pobj
,
qobj
,
req
)
{
var
result
=
await
this
.
opActionProcess
(
pobj
,
pobj
.
actionType
,
req
);
return
result
;
}
async
opActionProcess
(
pobj
,
action_type
,
req
)
{
var
opResult
=
null
;
switch
(
action_type
)
{
case
"test"
:
//测试
opResult
=
system
.
getResultSuccess
(
null
,
"测试成功"
);
break
;
case
"getDnList"
:
// 精确检索
opResult
=
await
this
.
unSve
.
getList
(
pobj
);
break
;
case
'getDnListPending'
:
// 获取详情
pobj
.
actionBody
.
status
=
'dcl'
opResult
=
await
this
.
unSve
.
getList
(
pobj
);
break
;
case
'getDnDetail'
:
// 获取列表
opResult
=
await
this
.
unSve
.
getDetail
(
pobj
);
break
;
case
'doDnEAV'
:
opResult
=
await
this
.
unSve
.
doEAV
(
pobj
);
break
;
default
:
opResult
=
system
.
getResult
(
null
,
"actionType参数错误"
);
break
;
}
return
opResult
;
}
}
module
.
exports
=
diagnosisNeedBus
;
\ No newline at end of file
center-channel/app/base/service/impl/utilsSve/utilsNdbSve.js
0 → 100644
View file @
213593b8
const
System
=
require
(
"../../../system"
);
var
settings
=
require
(
"../../../../config/settings"
);
const
AppServiceBase
=
require
(
"../../app.base"
);
class
FblicenseService
extends
AppServiceBase
{
constructor
()
{
super
();
this
.
centerOrderUrl
=
settings
.
centerOrderUrl
()
this
.
restClient
=
System
.
getObject
(
"util.restClient"
)
};
async
getList
(
data
)
{
try
{
let
url
=
`
${
this
.
centerOrderUrl
}
action/diagnosisneedbus/springBoard`
console
.
log
(
url
)
data
.
actionType
=
'getList'
let
result
=
await
this
.
restClient
.
execPost
(
data
,
url
)
return
result
}
catch
(
error
)
{
return
{
code
:
-
1
,
msg
:
error
.
message
||
'failed'
,
}
}
}
}
module
.
exports
=
FblicenseService
;
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