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
566b68c9
Commit
566b68c9
authored
Feb 02, 2021
by
兰国旗
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
huifu
parent
90f0c280
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
26 deletions
+19
-26
center-order/app/base/service/impl/qcutils/regCenterOrderSve.js
+19
-26
No files found.
center-order/app/base/service/impl/qcutils/regCenterOrderSve.js
View file @
566b68c9
...
...
@@ -33,29 +33,21 @@ class RegCenterOrderService{
// 获取需求详情
async
selectNeedInfo
(
pobj
){
pobj
.
actionType
=
"selectNeedInfo"
if
(
pobj
.
actionBody
.
orderNo
){
var
orderinfo
=
await
this
.
orderinfoDao
.
findOne
({
channelOrderNo
:
pobj
.
actionBody
.
orderNo
});
if
(
!
orderinfo
||
!
orderinfo
.
orderNo
)
{
return
system
.
getResult
(
null
,
"订单数据为空,30210"
);
}
var
needsolution
=
await
this
.
needsolutionDao
.
findOne
({
orderNo
:
orderinfo
.
orderNo
});
if
(
!
needsolution
||
!
needsolution
.
channelSolutionNo
)
{
return
system
.
getResult
(
null
,
"方案数据为空,30211"
);
}
var
needinfo
=
await
this
.
needinfoDao
.
findOne
({
channelNeedNo
:
needsolution
.
channelNeedNo
});
if
(
!
needinfo
||
!
needinfo
.
channelNeedNo
)
{
return
system
.
getResult
(
null
,
"需求
数据为空,30212
"
);
if
(
!
needinfo
&&
!
needsolution
)
{
return
system
.
getResult
(
null
,
"需求
/方案数据为空,30211
"
);
}
}
if
(
pobj
.
actionBody
.
channelNeedNo
){
var
needinfo
=
await
this
.
needinfoDao
.
findOne
({
channelNeedNo
:
pobj
.
actionBody
.
channelNeedNo
});
if
(
!
needinfo
||
!
needinfo
.
channelNeedNo
)
{
return
system
.
getResult
(
null
,
"需求数据为空,30213"
);
}
}
return
system
.
getResultSuccess
(
needinfo
);
if
(
!
needinfo
&&
needsolution
){
needinfo
=
{}
needinfo
.
publishMobile
=
needsolution
.
solutionContent
.
customerInfo
.
publishMobile
}
return
system
.
getResultSuccess
(
needinfo
);
}
//提交需求
async
submitRegNeed
(
pobj
,
actionBody
,
req
)
{
var
needNo
=
await
this
.
getBusUid
(
"n"
);
...
...
@@ -224,18 +216,18 @@ class RegCenterOrderService{
return
system
.
getResult
(
null
,
"方案数据为空,30210"
);
}
}
if
(
pobj
.
actionBody
.
orderNo
){
var
orderinfo
=
await
this
.
orderinfoDao
.
findOne
({
channelOrderNo
:
pobj
.
actionBody
.
orderNo
});
if
(
orderinfo
){
var
solutionitem
=
await
this
.
needsolutionDao
.
findOne
({
orderNo
:
orderinfo
.
orderNo
});
}
if
(
!
solutionitem
)
{
return
system
.
getResult
(
null
,
"方案数据为空,30210"
);
}
var
orderinfo
=
await
this
.
orderinfoDao
.
findOne
({
channelOrderNo
:
pobj
.
actionBody
.
orderNo
});
var
solutionitem
=
{}
if
(
orderinfo
){
var
solutionitem
=
await
this
.
needsolutionDao
.
findOne
({
orderNo
:
orderinfo
.
orderNo
});
}
var
item
=
await
this
.
needinfoDao
.
getItemByNeedNo
(
solutionitem
.
needNo
);
if
(
!
item
)
{
return
system
.
getResult
(
null
,
"需求数据为空,30210"
);
if
(
!
item
&&
!
solutionitem
)
{
return
system
.
getResult
(
null
,
"需求或者方案不存在,30211"
);
}
if
(
!
item
&&
solutionitem
)
{
item
=
{}
item
.
publishMobile
=
solutionitem
.
solutionContent
.
customerInfo
.
publishMobile
}
item
.
solutionProvince
=
solutionitem
.
solutionContent
.
solution
.
area
;
item
.
solutionContent
=
solutionitem
.
solutionContent
...
...
@@ -1188,4 +1180,4 @@ class RegCenterOrderService{
}
}
module
.
exports
=
RegCenterOrderService
;
module
.
exports
=
RegCenterOrderService
;
\ No newline at end of file
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