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
7bc96c63
Commit
7bc96c63
authored
Mar 18, 2020
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
needinfo
parent
837ff72c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
4 deletions
+45
-4
center-order/app/base/service/impl/dbneed/needinfoSve.js
+1
-1
center-order/app/base/service/impl/dbneed/needsolutionSve.js
+44
-3
No files found.
center-order/app/base/service/impl/dbneed/needinfoSve.js
View file @
7bc96c63
...
...
@@ -77,7 +77,7 @@ class NeedinfoService extends ServiceBase {
var
needsolutioninfo
=
await
self
.
needsolutionDao
.
findOne
({
channelNeedNo
:
pobj
.
actionBody
.
intentionBizId
},
t
)
needsolutioninfo
.
status
=
"yzf"
;
await
self
.
needsolutionDao
.
update
(
needsolutioninfo
,
t
);
await
//
await
})
}
...
...
center-order/app/base/service/impl/dbneed/needsolutionSve.js
View file @
7bc96c63
...
...
@@ -329,7 +329,48 @@ class NeedsolutionService extends ServiceBase {
return
system
.
getResultSuccess
();
}
//立即支付下单保存方案
async
createSolutionByOrder
(
pobj
){
var
ab
=
pobj
.
actionBody
;
var
app
=
pobj
.
appInfo
;
if
(
!
app
||
!
app
.
uapp_id
){
return
system
.
getResultFail
(
-
100
,
"未知渠道"
);
}
if
(
!
ab
.
solutionBizid
){
return
system
.
getResultFail
(
-
101
,
"需求编号不能为空"
);
}
var
needinfo
=
await
this
.
needinfoDao
.
model
.
findOne
({
where
:{
channelNeedNo
:
ab
.
intentionBizId
,
uapp_id
:
app
.
uapp_id
},
raw
:
true
});
if
(
!
needinfo
||
!
needinfo
.
id
){
return
system
.
getResultFail
(
-
102
,
"未知需求信息"
);
}
var
solution
=
{
"companyName"
:
ab
.
companyName
,
"area"
:
ab
.
area
,
"city"
:
ab
.
city
,
"companyCategory"
:
ab
.
companyCategory
,
"companyType"
:
ab
.
companyType
,
"orgType"
:
ab
.
orgType
,
"industryType"
:
ab
,
industryType
,
"scope"
:
ab
.
scope
,
"remark"
:
ab
.
remark
}
}
}
module
.
exports
=
NeedsolutionService
;
\ No newline at end of file
module
.
exports
=
NeedsolutionService
;
// orderNo
// orderPrice
// phone
// companyName
// city
// area
// companyCategory
// companyType
// orgType
// industryType
// scope
// remark
// solutionBizid
\ 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