Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fit-finance
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fitness-server
fit-finance
Commits
d227d82d
Commit
d227d82d
authored
Apr 11, 2024
by
程裕兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:page cashier
parent
7330a8f9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
api/src/main/java/com/jiejing/fitness/finance/api/cashier/request/PageStudioCashierRequest.java
+2
-4
app/src/main/java/com/jiejing/fitness/finance/app/controller/cashier/StudioCashierController.java
+3
-0
No files found.
api/src/main/java/com/jiejing/fitness/finance/api/cashier/request/PageStudioCashierRequest.java
View file @
d227d82d
...
@@ -75,12 +75,10 @@ public class PageStudioCashierRequest {
...
@@ -75,12 +75,10 @@ public class PageStudioCashierRequest {
@ApiModelProperty
(
value
=
"交易成功结束时间"
)
@ApiModelProperty
(
value
=
"交易成功结束时间"
)
private
Date
successEndTime
;
private
Date
successEndTime
;
@ApiModelProperty
(
value
=
"页码:0开始"
,
required
=
true
)
@ApiModelProperty
(
value
=
"页码:0开始"
)
@NotNull
(
message
=
"页码不能为空"
)
private
Integer
current
;
private
Integer
current
;
@ApiModelProperty
(
value
=
"分页大小"
,
required
=
true
)
@ApiModelProperty
(
value
=
"分页大小"
)
@NotNull
(
message
=
"分页大小不能为空"
)
private
Integer
size
;
private
Integer
size
;
}
}
app/src/main/java/com/jiejing/fitness/finance/app/controller/cashier/StudioCashierController.java
View file @
d227d82d
...
@@ -19,6 +19,7 @@ import com.jiejing.fitness.finance.service.cashier.params.PageStudioCashierParam
...
@@ -19,6 +19,7 @@ import com.jiejing.fitness.finance.service.cashier.params.PageStudioCashierParam
import
com.jiejing.fitness.finance.service.cashier.params.PageStudioSettleParams
;
import
com.jiejing.fitness.finance.service.cashier.params.PageStudioSettleParams
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Optional
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
javax.validation.Valid
;
import
javax.validation.Valid
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
...
@@ -57,6 +58,8 @@ public class StudioCashierController implements StudioCashierApi {
...
@@ -57,6 +58,8 @@ public class StudioCashierController implements StudioCashierApi {
public
JsonResult
<
PageVO
<
StudioCashierRecordVO
>>
page
(
public
JsonResult
<
PageVO
<
StudioCashierRecordVO
>>
page
(
@Valid
@RequestBody
PageStudioCashierRequest
request
)
{
@Valid
@RequestBody
PageStudioCashierRequest
request
)
{
PageStudioCashierParams
params
=
BeanUtil
.
map
(
request
,
PageStudioCashierParams
.
class
);
PageStudioCashierParams
params
=
BeanUtil
.
map
(
request
,
PageStudioCashierParams
.
class
);
params
.
setCurrent
(
Optional
.
ofNullable
(
request
.
getCurrent
()).
orElse
(
0
));
params
.
setSize
(
Optional
.
ofNullable
(
request
.
getSize
()).
orElse
(
10
));
return
JsonResult
.
success
(
studioCashierService
.
page
(
params
));
return
JsonResult
.
success
(
studioCashierService
.
page
(
params
));
}
}
...
...
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