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
15b5f57d
Commit
15b5f57d
authored
Dec 27, 2020
by
兰国旗
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
laolan
parent
9ddf34bc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
center-order/app/base/service/impl/qcutils/regCenterOrderSve.js
+5
-4
No files found.
center-order/app/base/service/impl/qcutils/regCenterOrderSve.js
View file @
15b5f57d
...
@@ -814,15 +814,17 @@ class RegCenterOrderService{
...
@@ -814,15 +814,17 @@ class RegCenterOrderService{
//回写沟通记录
//回写沟通记录
async
regWriteCommunicationLog
(
pobj
)
{
async
regWriteCommunicationLog
(
pobj
)
{
console
.
log
(
'
actionBody
------'
,
pobj
)
console
.
log
(
'
回写沟通记录----pobj
------'
,
pobj
)
// 查询需求沟通记录
// 查询需求沟通记录
pobj
.
actionBody
.
Note
=
[
"noteTime"
,
moment
().
format
(
"YYYY-MM-DD HH:mm:ss"
),
"note"
,
pobj
.
actionBody
.
note
];
pobj
.
actionBody
.
Note
=
[
"noteTime"
,
moment
().
format
(
"YYYY-MM-DD HH:mm:ss"
),
"note"
,
pobj
.
actionBody
.
note
];
let
needRes
=
await
this
.
needinfoDao
.
findOne
({
channelNeedNo
:
pobj
.
actionBody
.
intentionBizId
});
let
needRes
=
await
this
.
needinfoDao
.
findOne
({
channelNeedNo
:
pobj
.
actionBody
.
intentionBizId
});
console
.
log
(
'needRes------'
,
needRes
)
console
.
log
(
'
回写沟通记录----
needRes------'
,
needRes
)
var
uappIds
var
uappIds
// 没有需求单直接返回
// 没有需求单直接返回
if
(
!
needRes
)
{
if
(
!
needRes
)
{
return
system
.
getResult
(
"没有这个需求单"
);
return
system
.
getResult
(
"没有这个需求单"
);
}
else
{
uappIds
=
needRes
.
uapp_id
}
}
// 如果未推送/以推送 修改为已跟进
// 如果未推送/以推送 修改为已跟进
if
(
needRes
.
status
==
"wts"
||
needRes
.
status
==
"yts"
)
{
if
(
needRes
.
status
==
"wts"
||
needRes
.
status
==
"yts"
)
{
...
@@ -840,7 +842,6 @@ class RegCenterOrderService{
...
@@ -840,7 +842,6 @@ class RegCenterOrderService{
channelNeedNo
:
pobj
.
actionBody
.
intentionBizId
channelNeedNo
:
pobj
.
actionBody
.
intentionBizId
};
};
var
updateRes
=
await
this
.
needinfoDao
.
update
(
paramWhere
);
var
updateRes
=
await
this
.
needinfoDao
.
update
(
paramWhere
);
return
system
.
getResultSuccess
(
uappIds
);
// 有需求单有沟通记录 json_array_append
// 有需求单有沟通记录 json_array_append
}
else
{
}
else
{
var
paramWhere
=
{
var
paramWhere
=
{
...
@@ -849,8 +850,8 @@ class RegCenterOrderService{
...
@@ -849,8 +850,8 @@ class RegCenterOrderService{
};
};
var
updateRes
=
await
this
.
needinfoDao
.
update
(
paramWhere
);
var
updateRes
=
await
this
.
needinfoDao
.
update
(
paramWhere
);
console
.
log
(
'updateRes------'
,
updateRes
)
console
.
log
(
'updateRes------'
,
updateRes
)
return
system
.
getResultSuccess
(
uappIds
);
}
}
return
system
.
getResultSuccess
(
uappIds
);
}
}
//新增查询需求沟通记录
//新增查询需求沟通记录
async
regQueryExpertCommunicationLogs
(
pobj
){
async
regQueryExpertCommunicationLogs
(
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