Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
a9a58107
Commit
a9a58107
authored
Nov 27, 2019
by
libin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'staff-statistics' into dev
parents
796c0ff2
b15727e9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
StaffStatisticsBo.java
...m/github/wxiaoqi/security/admin/bo/StaffStatisticsBo.java
+1
-0
StaffStatisticsFindDTO.java
...ub/wxiaoqi/security/admin/dto/StaffStatisticsFindDTO.java
+2
-0
StaffStatisticsBiz.java
...github/wxiaoqi/security/admin/biz/StaffStatisticsBiz.java
+2
-2
No files found.
ace-modules/ace-admin-api/src/main/java/com/github/wxiaoqi/security/admin/bo/StaffStatisticsBo.java
View file @
a9a58107
...
...
@@ -23,6 +23,7 @@ public class StaffStatisticsBo {
private
static
final
long
serialVersionUID
=
1L
;
private
String
name
;
private
Integer
userId
;
private
List
<
String
>
companyNames
;
private
List
<
Integer
>
compnayIds
;
private
List
<
String
>
postionNames
;
...
...
ace-modules/ace-admin-api/src/main/java/com/github/wxiaoqi/security/admin/dto/StaffStatisticsFindDTO.java
View file @
a9a58107
...
...
@@ -23,4 +23,6 @@ public class StaffStatisticsFindDTO extends PageParam {
private
String
companyName
;
private
Integer
userPostionId
;
private
Integer
companyId
;
private
List
<
Integer
>
userIds
;
private
Boolean
isExport
;
}
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/StaffStatisticsBiz.java
View file @
a9a58107
...
...
@@ -77,8 +77,7 @@ public class StaffStatisticsBiz {
//3.根据订单id查询订单相关信息
List
<
Integer
>
orderIds
=
appUserSellingWaterDTOS
.
stream
().
map
(
AppUserSellingWaterDTO:
:
getOrderId
).
collect
(
Collectors
.
toList
());
ObjectRestResponse
<
List
<
OrderDTO
>>
response
=
orderFeign
.
findOrdersByorderId
(
orderIds
);
List
<
OrderDTO
>
orders
=
CollUtil
.
newArrayList
();
//response.getData();
List
<
OrderDTO
>
orders
=
response
.
getData
();
Map
<
Integer
,
Integer
>
ordersMap
=
orders
.
stream
().
collect
(
Collectors
.
toMap
(
OrderDTO:
:
getId
,
OrderDTO:
:
getCompanyId
));
for
(
AppUserSellingWaterDTO
appUserSellingWaterDTO
:
appUserSellingWaterDTOS
)
{
appUserSellingWaterDTO
.
setCompanyId
(
ordersMap
.
get
(
appUserSellingWaterDTO
.
getOrderId
())
==
null
?
NO_COMPANY_STATE
:
ordersMap
.
get
(
appUserSellingWaterDTO
.
getOrderId
()));
...
...
@@ -220,6 +219,7 @@ public class StaffStatisticsBiz {
staffStatisticsBo
.
setPostionNames
(
Arrays
.
asList
(
userStaffBo
.
getPostionName
()));
staffStatisticsBo
.
setPostionIds
(
Arrays
.
asList
(
userStaffBo
.
getPostionId
()));
}
staffStatisticsBo
.
setUserId
(
userStaffBo
.
getUserId
());
staffStatisticsBo
.
setName
(
StringUtils
.
hasText
(
userStaffBo
.
getRealName
())?
userStaffBo
.
getRealName
():
userStaffBo
.
getNickName
());
staffStatisticsBo
.
setPhone
(
userStaffBo
.
getPhone
());
staffStatisticsBo
.
setMemberAmount
(
BigDecimal
.
ZERO
);
...
...
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