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
00a677ec
Commit
00a677ec
authored
Aug 31, 2020
by
王悦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询咨询客户列表
parent
5dd8ee5d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletions
+19
-1
center-order/app/base/api/impl/action/need.js
+3
-0
center-order/app/base/service/impl/dbneed/needinfoSve.js
+16
-1
No files found.
center-order/app/base/api/impl/action/need.js
View file @
00a677ec
...
...
@@ -60,6 +60,9 @@ class IcAPI extends APIBase {
case
"confirmIcpIntention"
:
// 2020 0827 lin 新增 4.3 用户需求确认
opResult
=
await
this
.
needinfoSve
.
confirmIcpIntention
(
pobj
,
pobj
.
actionBody
,
req
);
break
;
case
"getUnCreated"
:
// 获取需求列表
opResult
=
await
this
.
needinfoSve
.
getUnCreated
(
pobj
,
pobj
.
actionBody
,
req
);
break
;
default
:
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
break
;
...
...
center-order/app/base/service/impl/dbneed/needinfoSve.js
View file @
00a677ec
...
...
@@ -86,7 +86,8 @@ class NeedinfoService extends ServiceBase {
typeName
:
actionBody
.
type_name
,
channelTypeCode
:
actionBody
.
channel_type_code
,
channelTypeName
:
actionBody
.
channel_type_name
,
status
:
"wts"
status
:
"wts"
,
notes
:
actionBody
.
notes
}
if
(
nobj
.
channelTypeCode
==
7
||
nobj
.
channelTypeCode
==
5
)
{
nobj
.
province
=
nobj
.
city
,
...
...
@@ -292,6 +293,20 @@ class NeedinfoService extends ServiceBase {
return
system
.
getResultSuccess
();
}
}
async
getUnCreated
(
pobj
,
data
,
req
)
{
let
stdate
=
new
Date
(
pobj
.
actionBody
.
Begin
);
let
enddate
=
new
Date
(
pobj
.
actionBody
.
End
);
let
query
=
{
where
:{}};
query
.
where
[
"created_at"
]
=
{
[
this
.
db
.
Op
.
between
]:
[
stdate
,
enddate
]
};
try
{
let
res
=
await
this
.
dao
.
model
.
findAndCountAll
(
query
);
res
=
res
.
rows
.
map
(
n
=>
n
.
channelNeedNo
);
res
=
pobj
.
actionBody
.
data
.
filter
(
ali
=>!
res
.
includes
(
ali
.
BizId
));
return
system
.
getResultSuccess
(
res
)
}
catch
(
error
)
{
return
system
.
getResultFail
(
-
1
,
error
.
message
)
}
}
}
module
.
exports
=
NeedinfoService
;
...
...
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