Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
O
on-site-service
Project
Project
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
external
on-site-service
Commits
f35564e4
Commit
f35564e4
authored
Jul 27, 2022
by
lining
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 分页失效问题
parent
2e50ae02
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
ServiceOrderController.java
...vice/miniapp/controller/order/ServiceOrderController.java
+2
-2
ServiceOrderBizService.java
...service/miniapp/service/order/ServiceOrderBizService.java
+10
-4
No files found.
mini-app/src/main/java/com/onsiteservice/miniapp/controller/order/ServiceOrderController.java
View file @
f35564e4
...
...
@@ -63,14 +63,14 @@ public class ServiceOrderController {
@Dict
(
code
=
DictConstants
.
ORDER_STATUS
,
name
=
"orderStatus"
)
@ApiOperation
(
value
=
"工作台-分页查询订单"
)
@PostMapping
(
"page"
)
public
Result
<
PageInfoVO
<
ServiceOrderVO
>
>
getPage
(
@RequestBody
@NonNull
@Validated
PageServiceOrderDTO
dto
,
@CurrentUserId
Long
userId
)
{
public
Result
<
PageInfoVO
>
getPage
(
@RequestBody
@NonNull
@Validated
PageServiceOrderDTO
dto
,
@CurrentUserId
Long
userId
)
{
return
serviceOrderBizService
.
getPage
(
dto
,
userId
);
}
@Dict
(
code
=
DictConstants
.
ORDER_STATUS
,
name
=
"orderStatus"
)
@ApiOperation
(
value
=
"我的订单-分页查询订单"
)
@PostMapping
(
"mine-page"
)
public
Result
<
PageInfoVO
<
ServiceOrderVO
>
>
getMinePage
(
@RequestBody
@NonNull
@Validated
PageServiceOrderDTO
dto
,
@CurrentUserId
Long
userId
)
{
public
Result
<
PageInfoVO
>
getMinePage
(
@RequestBody
@NonNull
@Validated
PageServiceOrderDTO
dto
,
@CurrentUserId
Long
userId
)
{
return
serviceOrderBizService
.
getMinePage
(
dto
,
userId
);
}
...
...
mini-app/src/main/java/com/onsiteservice/miniapp/service/order/ServiceOrderBizService.java
View file @
f35564e4
...
...
@@ -133,7 +133,7 @@ public class ServiceOrderBizService extends AbstractMapper<ServiceOrder> {
}
public
Result
<
PageInfoVO
<
ServiceOrderVO
>
>
getPage
(
PageServiceOrderDTO
dto
,
Long
userId
)
{
public
Result
<
PageInfoVO
>
getPage
(
PageServiceOrderDTO
dto
,
Long
userId
)
{
log
.
info
(
"order getPage dto: {}, userId: {}"
,
dto
,
userId
);
User
user
=
userMapper
.
selectByPrimaryKey
(
userId
);
...
...
@@ -154,11 +154,14 @@ public class ServiceOrderBizService extends AbstractMapper<ServiceOrder> {
user
.
getRoleType
(),
userId
);
return
ResultGenerator
.
success
(
new
PageInfoVO
<>(
buildServiceOrderVO
(
serviceOrderList
)));
PageInfoVO
vo
=
new
PageInfoVO
(
serviceOrderList
);
vo
.
setList
(
buildServiceOrderVO
(
serviceOrderList
));
return
ResultGenerator
.
success
(
vo
);
}
public
Result
<
PageInfoVO
<
ServiceOrderVO
>
>
getMinePage
(
PageServiceOrderDTO
dto
,
Long
userId
)
{
public
Result
<
PageInfoVO
>
getMinePage
(
PageServiceOrderDTO
dto
,
Long
userId
)
{
log
.
info
(
"order getMinePage dto: {}, userId: {}"
,
dto
,
userId
);
if
(!
BizConstants
.
OrderConstants
.
FRONT_BACK_ORDER_STATUS_MAP
.
containsKey
(
dto
.
getOrderStatus
()))
{
...
...
@@ -172,7 +175,10 @@ public class ServiceOrderBizService extends AbstractMapper<ServiceOrder> {
dto
.
getKeyWord
(),
userId
);
return
ResultGenerator
.
success
(
new
PageInfoVO
<>(
buildServiceOrderVO
(
serviceOrderList
)));
PageInfoVO
vo
=
new
PageInfoVO
(
serviceOrderList
);
vo
.
setList
(
buildServiceOrderVO
(
serviceOrderList
));
return
ResultGenerator
.
success
(
vo
);
}
...
...
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