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
e497505a
Commit
e497505a
authored
Aug 18, 2020
by
wkliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
诊断 新建方案
parent
8d492b55
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
2 deletions
+47
-2
center-channel/app/base/api/impl/zzzd/diagnosisneedbus.js
+3
-1
center-channel/app/base/service/impl/utilsSve/utilsNdbSve.js
+11
-1
center-channel/app/front/entry/public/apidoc/appDesc/diagnosisneedbusDesc.md
+33
-0
No files found.
center-channel/app/base/api/impl/zzzd/diagnosisneedbus.js
View file @
e497505a
...
@@ -60,10 +60,12 @@ class diagnosisNeedBus extends WEBBase {
...
@@ -60,10 +60,12 @@ class diagnosisNeedBus extends WEBBase {
}
}
opResult
=
await
this
.
unSve
.
getNeedDetail
(
pobj
);
opResult
=
await
this
.
unSve
.
getNeedDetail
(
pobj
);
break
;
break
;
case
'licenseCompare'
:
case
'licenseCompare'
:
opResult
=
await
this
.
unSve
.
licenseCompare
(
pobj
.
actionBody
);
opResult
=
await
this
.
unSve
.
licenseCompare
(
pobj
.
actionBody
);
break
break
case
'addDnCase'
:
opResult
=
await
this
.
unSve
.
addCase
(
pobj
)
break
default
:
default
:
opResult
=
system
.
getResult
(
null
,
"actionType参数错误"
);
opResult
=
system
.
getResult
(
null
,
"actionType参数错误"
);
break
;
break
;
...
...
center-channel/app/base/service/impl/utilsSve/utilsNdbSve.js
View file @
e497505a
...
@@ -115,6 +115,17 @@ class FblicenseService extends AppServiceBase {
...
@@ -115,6 +115,17 @@ class FblicenseService extends AppServiceBase {
}
}
}
}
async
addCase
(
pobj
)
{
try
{
let
url
=
`
${
this
.
centerOrderUrl
}
action/diagnosisneedbus/springBoard`
pobj
.
actionType
=
'addCase'
let
result
=
await
this
.
restClient
.
execPost
(
pobj
,
url
)
return
JSON
.
parse
(
result
.
stdout
)
}
catch
(
error
)
{
return
system
.
getResultFail
(
-
1
,
error
.
message
||
'failed'
)
}
}
ObjTrim
(
data
)
{
ObjTrim
(
data
)
{
let
k
=
Object
.
keys
(
data
)
let
k
=
Object
.
keys
(
data
)
for
(
let
i
of
k
)
{
for
(
let
i
of
k
)
{
...
@@ -122,7 +133,6 @@ class FblicenseService extends AppServiceBase {
...
@@ -122,7 +133,6 @@ class FblicenseService extends AppServiceBase {
delete
data
[
i
]
delete
data
[
i
]
}
}
}
}
console
.
log
(
data
)
return
data
return
data
}
}
}
}
...
...
center-channel/app/front/entry/public/apidoc/appDesc/diagnosisneedbusDesc.md
View file @
e497505a
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
6.
[
获取需求列表
](
#getDnNeedList
)
6.
[
获取需求列表
](
#getDnNeedList
)
7.
[
获取需求详情
](
#getDnNeedDetail
)
7.
[
获取需求详情
](
#getDnNeedDetail
)
8.
[
证照对比数据
](
#licenseCompare
)
8.
[
证照对比数据
](
#licenseCompare
)
9.
[
新建方案
](
#addDnCase
)
## **<a name="getDnList"> 获取诊断列表(人工)</a>**
## **<a name="getDnList"> 获取诊断列表(人工)</a>**
...
@@ -450,3 +451,35 @@
...
@@ -450,3 +451,35 @@
"requestId"
:
"1936ab0c419e4132805aa197920a6b33"
"requestId"
:
"1936ab0c419e4132805aa197920a6b33"
}
}
```
```
## **<a name="addDnCase"> 新建方案</a>**
[
返回到目录
](
#menu
)
<a
name=
"menu"
href=
"/doc"
>
返回主目录
</a>
##### URL
[
/web/zzzd/diagnosisneedbus/springBoard
]
#### 参数格式 `JSON`
#### HTTP 请求方式 `POST`
#### 渠道执行的类型 actionType:addDnCase
```
javascript
{
"diagnosisNo"
:
"test123"
,
// 需求单号
"solutionContent"
:
{
"testk"
:
"testv"
}
// 方案明细
}
```
#### 返回结果
```
javascript
{
"status"
:
0
,
"msg"
:
"success"
,
"data"
:
"requestId"
:
"1936ab0c419e4132805aa197920a6b33"
}
```
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