Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
brandkbs2
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenjunjie
brandkbs2
Commits
114e6fd7
Commit
114e6fd7
authored
Sep 22, 2022
by
陈健智
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
舆情库聚合修复,用户行为修复
parent
dcf29a94
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
src/main/java/com/zhiwei/brandkbs2/pojo/MarkFlowEntity.java
+3
-3
src/main/java/com/zhiwei/brandkbs2/service/impl/BehaviorServiceImpl.java
+2
-2
src/main/java/com/zhiwei/brandkbs2/service/impl/MarkDataServiceImpl.java
+1
-0
No files found.
src/main/java/com/zhiwei/brandkbs2/pojo/MarkFlowEntity.java
View file @
114e6fd7
...
...
@@ -61,12 +61,12 @@ public class MarkFlowEntity implements Serializable {
return
entity
;
}
public
static
MarkFlowEntity
getAggreeInstance
(
List
<
MarkFlowEntity
>
entities
,
int
size
)
{
public
static
MarkFlowEntity
getAggreeInstance
(
List
<
MarkFlowEntity
>
entities
,
Integer
size
)
{
// 首条数据为主
MarkFlowEntity
entity
=
Tools
.
copyByJson
(
entities
.
get
(
0
),
MarkFlowEntity
.
class
);
if
(
size
>
1
)
{
if
(
null
!=
size
&&
size
>
1
)
{
entity
.
getType
().
put
(
"fold"
,
true
);
entity
.
getType
().
put
(
"size"
,
size
);
entity
.
getType
().
put
(
"size"
,
size
);
}
return
entity
;
}
...
...
src/main/java/com/zhiwei/brandkbs2/service/impl/BehaviorServiceImpl.java
View file @
114e6fd7
...
...
@@ -76,7 +76,7 @@ public class BehaviorServiceImpl implements BehaviorService {
Date
end
=
new
Date
(
endTime
);
String
[]
collectionNames
=
behaviorDao
.
generateCollectionNames
(
start
,
end
);
Query
query
=
new
Query
();
query
.
addCriteria
(
Criteria
.
where
(
"cTime"
).
gte
(
start
).
lt
(
end
).
and
(
"backstage"
).
is
(
backstage
));
query
.
addCriteria
(
Criteria
.
where
(
"cTime"
).
gte
(
start
Time
).
lt
(
endTime
).
and
(
"backstage"
).
is
(
backstage
));
if
(
StringUtils
.
isNotEmpty
(
nickname
))
{
List
<
User
>
userList
=
userDao
.
findList
(
Query
.
query
(
Criteria
.
where
(
"nickname"
).
regex
(
Pattern
.
compile
(
"^.*"
+
nickname
+
".*$"
,
Pattern
.
CASE_INSENSITIVE
))));
// 根据nickname未查询
...
...
@@ -102,7 +102,7 @@ public class BehaviorServiceImpl implements BehaviorService {
Date
start
=
new
Date
(
startTime
);
Date
end
=
new
Date
(
endTime
);
Query
query
=
new
Query
();
query
.
addCriteria
(
Criteria
.
where
(
"cTime"
).
gte
(
start
).
lt
(
end
).
and
(
"backstage"
).
is
(
backstage
));
query
.
addCriteria
(
Criteria
.
where
(
"cTime"
).
gte
(
start
Time
).
lt
(
endTime
).
and
(
"backstage"
).
is
(
backstage
));
List
<
Behavior
>
behaviorList
=
behaviorDao
.
findList
(
query
,
behaviorDao
.
generateCollectionNames
(
start
,
end
));
List
<
ExportBehaviorDTO
>
resList
=
new
ArrayList
<>(
behaviorList
.
size
());
behaviorList
.
forEach
(
behavior
->
{
...
...
src/main/java/com/zhiwei/brandkbs2/service/impl/MarkDataServiceImpl.java
View file @
114e6fd7
...
...
@@ -531,6 +531,7 @@ public class MarkDataServiceImpl implements MarkDataService {
linkedGroupId
=
projectService
.
getProjectVOById
(
projectId
).
getBrandLinkedGroupId
();
markSearchDTO
.
setLinkedGroupId
(
linkedGroupId
);
}
markSearchDTO
.
setPage
(
1
);
markSearchDTO
.
setPageSize
(
10000
);
return
markSearchDTO
;
}
...
...
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