Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taobao-mini-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qinhaitao
taobao-mini-template
Commits
1eeb527d
Commit
1eeb527d
authored
Oct 11, 2020
by
李硕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交导出中奖名单筛选
parent
e7a028b3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
rankopenprize.service.js
server/duiba/service/rankopenprize.service.js
+3
-2
No files found.
server/duiba/service/rankopenprize.service.js
View file @
1eeb527d
...
...
@@ -56,7 +56,7 @@ class RankopenprizeService {
}
//《条件搜索》查询中奖信息
async
getUserPrizeByActivityId
(
activityId
,
pageNo
,
pageSize
,
prizeId
,
userNick
,
timeStart
,
timeEnd
,
shipStatus
,
type
,
prizeDataType
)
{
async
getUserPrizeByActivityId
(
activityId
,
pageNo
,
pageSize
,
prizeId
,
userNick
,
timeStart
,
timeEnd
,
shipStatus
,
type
,
prizeDataType
)
{
let
p
=
prizeId
?
{
_id
:
prizeId
}
:
''
;
let
u
=
userNick
?
{
userNick
:
{
$regex
:
".*"
+
userNick
+
".*"
}
}
:
''
;
let
c
=
(
timeStart
>
0
&&
timeEnd
>
0
)
?
{
createTime
:
{
$gt
:
timeStart
,
$lt
:
timeEnd
}
}
:
''
;
...
...
@@ -88,7 +88,7 @@ class RankopenprizeService {
//《条件搜索》获取中奖名单长度
async
getTotalObjectCount
(
activityId
,
prizeId
,
userNick
,
timeStart
,
timeEnd
,
shipStatus
,
type
,
prizeDataType
)
{
async
getTotalObjectCount
(
activityId
,
prizeId
,
userNick
,
timeStart
,
timeEnd
,
shipStatus
,
type
,
prizeDataType
)
{
let
p
=
prizeId
?
{
_id
:
prizeId
}
:
''
;
let
u
=
userNick
?
{
userNick
:
{
$regex
:
".*"
+
userNick
+
".*"
}
}
:
''
;
let
c
=
(
timeStart
>
0
&&
timeEnd
>
0
)
?
{
createTime
:
{
$gt
:
timeStart
,
$lt
:
timeEnd
}
}
:
''
;
...
...
@@ -104,6 +104,7 @@ class RankopenprizeService {
let
t
=
type
?
{
type
:
+
type
}
:
''
;
let
d
=
prizeDataType
?
{
prizeDataType
:
+
prizeDataType
}
:
''
;
let
arr
=
[
p
,
u
,
c
,
s
,
t
,
d
];
arr
=
arr
.
filter
((
i
)
=>
{
return
i
});
console
.
log
(
'arr--111---'
,
arr
,
"s>>>"
,
s
);
return
await
this
.
rankopenprizeDao
.
count
({
activityId
,
...
...
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