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
20508a9c
Commit
20508a9c
authored
Jul 25, 2020
by
王栋源
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wdy
parent
771ad335
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
center-order/app/base/api/impl/action/need.js
+3
-0
center-order/app/base/service/impl/dbneed/needinfoSve.js
+13
-0
No files found.
center-order/app/base/api/impl/action/need.js
View file @
20508a9c
...
...
@@ -45,6 +45,9 @@ class IcAPI extends APIBase {
case
"needClose"
:
//需求关闭
opResult
=
await
this
.
needinfoSve
.
needClose
(
pobj
,
pobj
.
actionBody
,
req
);
break
;
case
"getItemByChannelSolutionNo"
:
//渠道方案号获取需求详情
opResult
=
await
this
.
needinfoSve
.
needClose
(
pobj
,
pobj
.
actionBody
,
req
);
break
;
default
:
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
break
;
...
...
center-order/app/base/service/impl/dbneed/needinfoSve.js
View file @
20508a9c
...
...
@@ -7,6 +7,7 @@ class NeedinfoService extends ServiceBase {
super
(
"dbneed"
,
ServiceBase
.
getDaoName
(
NeedinfoService
));
this
.
execlient
=
system
.
getObject
(
"util.execClient"
);
this
.
needsolutionSve
=
system
.
getObject
(
"service.dbneed.needsolutionSve"
);
this
.
needsolutionDao
=
system
.
getObject
(
"db.dbneed.needsolutionDao"
);
}
async
getItemByNeedNo
(
pobj
)
{
var
item
=
await
this
.
dao
.
getItemByNeedNo
(
pobj
.
actionBody
.
needNo
);
...
...
@@ -159,6 +160,18 @@ class NeedinfoService extends ServiceBase {
}
async
getItemByChannelSolutionNo
(
pobj
){
var
solutionitem
=
await
this
.
needsolutionDao
.
findOne
({
where
:
{
channelSolutionNo
:
pobj
.
actionBody
.
bizId
}});
if
(
!
solutionitem
)
{
return
system
.
getResult
(
null
,
"需求数据为空,30210"
);
}
var
item
=
await
this
.
dao
.
getItemByNeedNo
(
solutionitem
.
needNo
);
if
(
!
item
)
{
return
system
.
getResult
(
null
,
"需求数据为空,30210"
);
}
return
system
.
getResultSuccess
(
item
);
}
}
module
.
exports
=
NeedinfoService
;
...
...
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