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
b601eef8
Commit
b601eef8
authored
Dec 31, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
e4b8138a
91920686
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
20 deletions
+26
-20
AppUserPositionTempBiz.java
...ub/wxiaoqi/security/admin/biz/AppUserPositionTempBiz.java
+19
-17
OrderProfileDispayVo.java
...com/xxfc/platform/order/pojo/vo/OrderProfileDispayVo.java
+1
-1
OrderProfileDisplayBiz.java
...a/com/xxfc/platform/order/biz/OrderProfileDisplayBiz.java
+4
-2
CompanyOrderReceivedStatiscsAdminController.java
...ckground/CompanyOrderReceivedStatiscsAdminController.java
+2
-0
No files found.
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/AppUserPositionTempBiz.java
View file @
b601eef8
...
@@ -428,10 +428,11 @@ public class AppUserPositionTempBiz extends BaseBiz<AppUserPositionTempMapper, A
...
@@ -428,10 +428,11 @@ public class AppUserPositionTempBiz extends BaseBiz<AppUserPositionTempMapper, A
appUserPositionTempDTO
.
setPositionId
(
6
);
appUserPositionTempDTO
.
setPositionId
(
6
);
appUserPositionChangeRecordBiz
.
addPositionChangeRecord
(
userPositionTemp
,
oldData
,
operatorId
,
appUserPositionTempDTO
.
getRelTime
());
appUserPositionChangeRecordBiz
.
addPositionChangeRecord
(
userPositionTemp
,
oldData
,
operatorId
,
appUserPositionTempDTO
.
getRelTime
());
}
}
if
(
Objects
.
nonNull
(
appUserPositionTempDTO
.
getUserId
()))
{
if
(
Objects
.
nonNull
(
appUserPositionTempDTO
.
getUserId
())
&&
!
Objects
.
equals
(
0
,
appUserPositionTempDTO
.
getUserId
())
)
{
if
(
StaffChangeStatusEnum
.
needChangePostionsStatus
.
contains
(
changeStatus
))
{
if
(
StaffChangeStatusEnum
.
needChangePostionsStatus
.
contains
(
changeStatus
))
{
//用户表更改其身份
//用户表更改其身份
AppUserDetail
appUserDetail
=
detailBiz
.
checkeIsAppUser
(
userPositionTemp
.
getUserId
());
AppUserDetail
appUserDetail
=
detailBiz
.
checkeIsAppUser
(
userPositionTemp
.
getUserId
());
if
(
Objects
.
nonNull
(
appUserDetail
)
&&
Objects
.
nonNull
(
appUserDetail
.
getUserid
()))
{
//1.查询股东表 根据userid 或 手机号
//1.查询股东表 根据userid 或 手机号
Integer
postionId
=
appShareholderDetailBiz
.
findShareholderByUserIdOrPhone
(
appUserPositionTempDTO
.
getUserId
(),
appUserPositionTempDTO
.
getPhone
());
Integer
postionId
=
appShareholderDetailBiz
.
findShareholderByUserIdOrPhone
(
appUserPositionTempDTO
.
getUserId
(),
appUserPositionTempDTO
.
getPhone
());
//离职
//离职
...
@@ -452,6 +453,7 @@ public class AppUserPositionTempBiz extends BaseBiz<AppUserPositionTempMapper, A
...
@@ -452,6 +453,7 @@ public class AppUserPositionTempBiz extends BaseBiz<AppUserPositionTempMapper, A
}
}
}
}
}
}
}
return
ObjectRestResponse
.
succ
();
return
ObjectRestResponse
.
succ
();
}
}
...
@@ -471,7 +473,7 @@ public class AppUserPositionTempBiz extends BaseBiz<AppUserPositionTempMapper, A
...
@@ -471,7 +473,7 @@ public class AppUserPositionTempBiz extends BaseBiz<AppUserPositionTempMapper, A
//用户表更改其身份
//用户表更改其身份
if
(
Objects
.
nonNull
(
appUserPositionTempDTO
.
getUserId
()))
{
if
(
Objects
.
nonNull
(
appUserPositionTempDTO
.
getUserId
()))
{
AppUserDetail
appUserDetail
=
detailBiz
.
checkeIsAppUser
(
userPositionTemp
.
getUserId
());
AppUserDetail
appUserDetail
=
detailBiz
.
checkeIsAppUser
(
userPositionTemp
.
getUserId
());
if
(
appUserDetail
!=
null
)
{
if
(
appUserDetail
!=
null
&&
Objects
.
nonNull
(
appUserDetail
.
getUserid
())
)
{
Integer
postionId
=
appShareholderDetailBiz
.
findShareholderByUserIdOrPhone
(
appUserPositionTempDTO
.
getUserId
(),
appUserPositionTempDTO
.
getPhone
());
Integer
postionId
=
appShareholderDetailBiz
.
findShareholderByUserIdOrPhone
(
appUserPositionTempDTO
.
getUserId
(),
appUserPositionTempDTO
.
getPhone
());
postionId
=
Objects
.
isNull
(
postionId
)
?
appUserPositionTempDTO
.
getPositionId
()
:
postionId
;
postionId
=
Objects
.
isNull
(
postionId
)
?
appUserPositionTempDTO
.
getPositionId
()
:
postionId
;
loginBiz
.
updateUserPosition
(
appUserDetail
.
getUserid
(),
postionId
);
loginBiz
.
updateUserPosition
(
appUserDetail
.
getUserid
(),
postionId
);
...
...
xx-order/xx-order-api/src/main/java/com/xxfc/platform/order/pojo/vo/OrderProfileDispayVo.java
View file @
b601eef8
...
@@ -64,6 +64,6 @@ public class OrderProfileDispayVo implements Serializable {
...
@@ -64,6 +64,6 @@ public class OrderProfileDispayVo implements Serializable {
}
}
public
BigDecimal
getOrderAmount
()
{
public
BigDecimal
getOrderAmount
()
{
return
CollectionUtils
.
isEmpty
(
orderProfiles
)?
BigDecimal
.
ZERO
:
order
Profiles
.
stream
().
map
(
OrderProfileVo:
:
getOrderAmount
).
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
)
;
return
CollectionUtils
.
isEmpty
(
orderProfiles
)?
BigDecimal
.
ZERO
:
order
Amount
;
}
}
}
}
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/OrderProfileDisplayBiz.java
View file @
b601eef8
...
@@ -89,7 +89,8 @@ public class OrderProfileDisplayBiz extends BaseBiz<OrderProfileDisplayMapper, O
...
@@ -89,7 +89,8 @@ public class OrderProfileDisplayBiz extends BaseBiz<OrderProfileDisplayMapper, O
//2.1查询订单数据
//2.1查询订单数据
List
<
BaseOrderDTO
>
baseOrders
=
baseOrderBiz
.
findOrdersByDate
(
startDate
,
endDate
);
List
<
BaseOrderDTO
>
baseOrders
=
baseOrderBiz
.
findOrdersByDate
(
startDate
,
endDate
);
//2.2查询固定数据
//2.2查询固定数据
List
<
OrderProfileDisplay
>
orderProfileDisplays
=
findOrderProfileDisplayDataByDate
(
startDate
,
endDate
);
Date
constantEndDate
=
DateUtil
.
offsetDay
(
endDate
,
-
1
).
toJdkDate
();
List
<
OrderProfileDisplay
>
orderProfileDisplays
=
findOrderProfileDisplayDataByDate
(
startDate
,
constantEndDate
);
CountDownLatch
latch
=
new
CountDownLatch
(
3
);
CountDownLatch
latch
=
new
CountDownLatch
(
3
);
//3. 十大运营中心订单数据
//3. 十大运营中心订单数据
...
@@ -155,8 +156,9 @@ public class OrderProfileDisplayBiz extends BaseBiz<OrderProfileDisplayMapper, O
...
@@ -155,8 +156,9 @@ public class OrderProfileDisplayBiz extends BaseBiz<OrderProfileDisplayMapper, O
//2.支付终端统计
//2.支付终端统计
wrapToPayProfileWithPayTerminal
(
baseOrders
,
orderAmountConstant
,
largeScreenDisplayConstantDataBo
,
orderPayProfileDispalyVo
);
wrapToPayProfileWithPayTerminal
(
baseOrders
,
orderAmountConstant
,
largeScreenDisplayConstantDataBo
,
orderPayProfileDispalyVo
);
BigDecimal
realOrderAmount
=
baseOrders
.
stream
().
map
(
BaseOrderDTO:
:
getRealAmount
).
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
);
//累计订单金额
//累计订单金额
orderProfileDispayVo
.
setOrderAmount
(
orderAmountConstant
);
orderProfileDispayVo
.
setOrderAmount
(
orderAmountConstant
.
add
(
realOrderAmount
)
);
orderProfileDispayVo
.
setOrderPayProfileDisplay
(
orderPayProfileDispalyVo
);
orderProfileDispayVo
.
setOrderPayProfileDisplay
(
orderPayProfileDispalyVo
);
return
orderProfileDispayVo
;
return
orderProfileDispayVo
;
}
}
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/rest/background/CompanyOrderReceivedStatiscsAdminController.java
View file @
b601eef8
...
@@ -53,6 +53,8 @@ public class CompanyOrderReceivedStatiscsAdminController {
...
@@ -53,6 +53,8 @@ public class CompanyOrderReceivedStatiscsAdminController {
public
void
exportCompanyPerformance
(
@RequestBody
CompanyPerformanceFindDTO
companyPerformanceFindDTO
,
HttpServletResponse
response
){
public
void
exportCompanyPerformance
(
@RequestBody
CompanyPerformanceFindDTO
companyPerformanceFindDTO
,
HttpServletResponse
response
){
try
{
try
{
companyPerformanceFindDTO
.
setLimit
(
null
);
companyPerformanceFindDTO
.
setPage
(
null
);
String
name
=
DateTimeFormatter
.
ofPattern
(
"YYYYMMddHHmmss"
).
format
(
LocalDateTime
.
now
());
String
name
=
DateTimeFormatter
.
ofPattern
(
"YYYYMMddHHmmss"
).
format
(
LocalDateTime
.
now
());
response
.
setContentType
(
"application/vnd.ms-excel;charset=utf-8"
);
response
.
setContentType
(
"application/vnd.ms-excel;charset=utf-8"
);
String
filename
=
String
.
format
(
"%s-company-statistics.xlsx"
,
name
);
String
filename
=
String
.
format
(
"%s-company-statistics.xlsx"
,
name
);
...
...
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