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
47a96597
Commit
47a96597
authored
Apr 19, 2020
by
宋毅
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'center-order' of gitlab.gongsibao.com:jiangyong/zhichan into center-order
parents
44ad40e9
200f15d5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
+11
-3
center-order/app/base/api/impl/action/icpapi.js
+3
-0
center-order/app/base/service/impl/dbneed/needinfoSve.js
+8
-3
center-order/app/base/service/impl/dbneed/needsolutionSve.js
+0
-0
No files found.
center-order/app/base/api/impl/action/icpapi.js
View file @
47a96597
...
...
@@ -60,6 +60,9 @@ class IcpAPI extends APIBase {
case
"getIcpProgrammeDetail"
:
//获取方案详情(内部调用)
opResult
=
await
this
.
needsolutionSve
.
getIcpProgrammeDetail
(
pobj
);
break
;
case
"getProgrammeInfoByChannelNeedNo"
:
//获取需求方案列表
opResult
=
await
this
.
needsolutionSve
.
getProgrammeInfoByChannelNeedNo
(
pobj
);
break
;
default
:
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
break
;
...
...
center-order/app/base/service/impl/dbneed/needinfoSve.js
View file @
47a96597
...
...
@@ -10,6 +10,7 @@ class NeedinfoService extends ServiceBase {
}
async
getItemByNeedNo
(
pobj
)
{
var
item
=
await
this
.
dao
.
getItemByNeedNo
(
pobj
.
actionBody
.
needNo
);
console
.
log
(
system
.
getResultSuccess
(
item
));
if
(
!
item
)
{
return
system
.
getResult
(
null
,
"需求数据为空,30210"
);
}
...
...
@@ -84,6 +85,10 @@ class NeedinfoService extends ServiceBase {
channelTypeName
:
actionBody
.
channel_type_name
,
status
:
"wts"
}
if
(
nobj
.
channelTypeCode
==
7
||
nobj
.
channelTypeCode
==
5
){
nobj
.
province
=
nobj
.
city
,
nobj
.
city
=
""
;
}
await
this
.
dao
.
create
(
nobj
);
return
system
.
getResultSuccess
();
}
...
...
@@ -114,5 +119,5 @@ class NeedinfoService extends ServiceBase {
}
module
.
exports
=
NeedinfoService
;
// var a=new NeedinfoService();
// a.needinfo2fq();
\ No newline at end of file
var
a
=
new
NeedinfoService
();
var
b
=
a
.
getItemByNeedNo
({
actionBody
:{
needNo
:
"N202004132334EjurnEr"
}});
\ No newline at end of file
center-order/app/base/service/impl/dbneed/needsolutionSve.js
View file @
47a96597
This diff is collapsed.
Click to expand it.
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