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
6a378872
Commit
6a378872
authored
Mar 18, 2020
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
submitProgramme
parent
da74c651
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
6 deletions
+26
-6
center-order/app/base/service/impl/dbneed/needsolutionSve.js
+26
-6
No files found.
center-order/app/base/service/impl/dbneed/needsolutionSve.js
View file @
6a378872
...
...
@@ -85,12 +85,32 @@ class NeedsolutionService extends ServiceBase {
ab
[
"solutionNo"
]
=
solutionNo
;
ab
[
"status"
]
=
"dqr"
;
ab
.
solutionContent
=
JSON
.
stringify
(
ab
.
solutionContent
);
var
od
=
await
this
.
dao
.
create
(
ab
);
if
(
od
&&
od
.
id
){
return
system
.
getResultSuccess
({
needinfo
:
needinfo
,
needsolution
:
od
});
}
else
{
return
system
.
getResultFail
(
-
202
,
"提交方案失败"
);
}
return
await
this
.
db
.
transaction
(
async
function
(
t
)
{
var
od
=
await
this
.
dao
.
create
(
ab
,
t
);
if
(
od
&&
od
.
id
){
var
followContent
=
{
followDate
:
new
Date
(),
content
:
"提交到方案"
};
followContent
=
JSON
.
stringify
(
followContent
);
var
needObj
=
{
id
:
needinfo
.
id
,
followManUserId
:
user
.
id
,
//跟进人id
followManName
:
user
.
channel_username
,
//跟进人姓名
followManMobile
:
user
.
mobile
,
//跟进人手机号(合伙人)
followManOnlyCode
:
user
.
channel_userid
,
//跟进者唯一码
followContent
:
followContent
};
await
this
.
needinfoDao
.
update
(
needObj
,
t
);
needinfo
=
await
this
.
needinfoDao
.
model
.
findOne
({
where
:{
needNo
:
ab
.
needNo
},
raw
:
true
});
return
system
.
getResultSuccess
({
needinfo
:
needinfo
,
needsolution
:
od
});
}
else
{
return
system
.
getResultFail
(
-
202
,
"提交方案失败"
);
}
})
}
//接收方案编号(方案推送至阿里后,接收保存方案信息)
async
receiveProgrammeNo
(
pobj
){
...
...
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