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
dead33de
Commit
dead33de
authored
Mar 18, 2020
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aaa
parent
1b11abe8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
28 deletions
+46
-28
center-order/app/base/service/impl/dbneed/needsolutionSve.js
+46
-28
No files found.
center-order/app/base/service/impl/dbneed/needsolutionSve.js
View file @
dead33de
...
...
@@ -329,34 +329,52 @@ 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
}
}
// //立即支付下单保存方案
// 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
// };
// var {
// "notes":"方案备注",
// "bizType":"companyreg",
// "solution":{
// "area":"区",
// "city":"市",
// "scope":"经营范围",
// "remark":"方案备注",
// "orgType":"组织类型",
// "companyName":"测试公司名称",
// "companyType":"公司性质",
// "industryType":"行业",
// "companyCategory":"纳税人类型"
// }
// }
// var reqObj = {
// }
// }
}
module
.
exports
=
NeedsolutionService
;
...
...
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