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
531746a1
Commit
531746a1
authored
Sep 11, 2020
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改统计
parent
f24998dc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
PageDataVO.java
...ava/com/github/wxiaoqi/security/common/vo/PageDataVO.java
+1
-0
CompanyWalletDetailBiz.java
...a/com/xxfc/platform/order/biz/CompanyWalletDetailBiz.java
+1
-5
AdminCompanyWalletDetailController.java
...r/rest/background/AdminCompanyWalletDetailController.java
+5
-1
No files found.
ace-common/src/main/java/com/github/wxiaoqi/security/common/vo/PageDataVO.java
View file @
531746a1
...
...
@@ -32,6 +32,7 @@ public class PageDataVO<T> {
public
static
<
M
>
PageDataVO
<
M
>
pageInfo
(
PageInfo
<
M
>
pageInfo
){
PageDataVO
<
M
>
pageDataVo
=
new
PageDataVO
<>();
pageDataVo
.
setData
(
pageInfo
.
getList
());
pageDataVo
.
setTotalCount
(
pageInfo
.
getTotal
());
pageDataVo
.
setPageNum
(
pageInfo
.
getPageNum
());
pageDataVo
.
setTotalPage
(
pageInfo
.
getPages
());
pageDataVo
.
setPageSize
(
pageInfo
.
getSize
());
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/CompanyWalletDetailBiz.java
View file @
531746a1
...
...
@@ -4,8 +4,6 @@ package com.xxfc.platform.order.biz;
import
cn.hutool.json.JSONObject
;
import
cn.hutool.json.JSONUtil
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageInfo
;
import
com.github.wxiaoqi.security.common.biz.BaseBiz
;
import
com.github.wxiaoqi.security.common.exception.BaseException
;
import
com.github.wxiaoqi.security.common.util.process.ResultCode
;
...
...
@@ -259,9 +257,7 @@ public class CompanyWalletDetailBiz extends BaseBiz<CompanyWalletDetailMapper, C
public
PageDataVO
<
CompanyWalletDetailVo
>
selectList
(
WalletDetailDTO
walletDetailDTO
)
{
PageHelper
.
startPage
(
walletDetailDTO
.
getPage
(),
walletDetailDTO
.
getLimit
());
PageInfo
<
CompanyWalletDetailVo
>
branchCompanyPageInfo
=
new
PageInfo
<>(
getList
(
walletDetailDTO
));
return
PageDataVO
.
pageInfo
(
branchCompanyPageInfo
);
return
PageDataVO
.
pageInfo
(
walletDetailDTO
.
getPage
(),
walletDetailDTO
.
getLimit
(),
()
->
getList
(
walletDetailDTO
));
}
public
List
<
CompanyWalletDetailVo
>
getList
(
WalletDetailDTO
walletDetailDTO
){
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/rest/background/AdminCompanyWalletDetailController.java
View file @
531746a1
...
...
@@ -5,9 +5,11 @@ import com.github.wxiaoqi.security.admin.feign.UserFeign;
import
com.github.wxiaoqi.security.admin.feign.rest.UserRestInterface
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.rest.BaseController
;
import
com.github.wxiaoqi.security.common.vo.PageDataVO
;
import
com.xxfc.platform.order.biz.CompanyWalletDetailBiz
;
import
com.xxfc.platform.order.entity.CompanyWalletDetail
;
import
com.xxfc.platform.order.pojo.dto.WalletDetailDTO
;
import
com.xxfc.platform.order.pojo.vo.CompanyWalletDetailVo
;
import
io.swagger.annotations.ApiModelProperty
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
...
@@ -29,7 +31,8 @@ public class AdminCompanyWalletDetailController extends BaseController<CompanyWa
@RequestMapping
(
value
=
"selectList"
,
method
=
RequestMethod
.
GET
)
@ApiModelProperty
(
value
=
"营收明细列表"
)
public
ObjectRestResponse
refundAmount
(
WalletDetailDTO
walletDetailDTO
)
{
public
ObjectRestResponse
<
PageDataVO
<
CompanyWalletDetailVo
>>
refundAmount
(
WalletDetailDTO
walletDetailDTO
)
{
setPowerData
(
walletDetailDTO
,
true
);
return
ObjectRestResponse
.
succ
(
baseBiz
.
selectList
(
walletDetailDTO
));
}
...
...
@@ -37,6 +40,7 @@ public class AdminCompanyWalletDetailController extends BaseController<CompanyWa
@RequestMapping
(
value
=
"sumAmount"
,
method
=
RequestMethod
.
GET
)
@ApiModelProperty
(
value
=
"营收统计"
)
public
ObjectRestResponse
sumAmount
(
WalletDetailDTO
walletDetailDTO
)
{
setPowerData
(
walletDetailDTO
,
true
);
return
ObjectRestResponse
.
succ
(
baseBiz
.
getSumAmount
(
walletDetailDTO
));
}
...
...
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