Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
1a071d68
Commit
1a071d68
authored
Nov 29, 2024
by
Lambertliu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):三环数据分页报错处理
parent
8853d307
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
ShCarController.java
...n/amos/boot/module/jg/biz/controller/ShCarController.java
+14
-14
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/ShCarController.java
View file @
1a071d68
...
...
@@ -121,21 +121,21 @@ public class ShCarController extends BaseController {
public
ResponseModel
<
Page
<
ShCarDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
,
ShCarDto
dto
)
{
Page
<
ShCarDto
>
page
=
new
Page
<>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
Page
<
ShCarDto
>
page
=
new
Page
<>(
current
,
size
);
Page
<
ShCarDto
>
shCarDtoPage
=
iShCarService
.
queryForShCarPage
(
page
,
dto
);
shCarDtoPage
.
getRecords
().
forEach
(
record
->
{
if
(
"1"
.
equals
(
record
.
getClaimedFlag
()))
{
record
.
setClaimedFlag
(
"是"
);
// 填充 证管理表的seq,用与认领后跳转证详情页
JgUseRegistrationManage
manage
=
jgUseRegistrationManageServiceImpl
.
getBaseMapper
().
selectOne
(
new
LambdaQueryWrapper
<
JgUseRegistrationManage
>()
.
eq
(
JgUseRegistrationManage:
:
getUseRegistrationCode
,
record
.
getUseRegistrationCode
()));
record
.
setCertificateSeq
(
String
.
valueOf
(
manage
.
getSequenceNbr
()));
}
else
if
(
"0"
.
equals
(
record
.
getClaimedFlag
()))
{
record
.
setClaimedFlag
(
"否"
);
}
});
Optional
.
ofNullable
(
shCarDtoPage
.
getRecords
()).
ifPresent
(
records
->
records
.
forEach
(
record
->
{
if
(
"1"
.
equals
(
record
.
getClaimedFlag
()))
{
record
.
setClaimedFlag
(
"是"
);
JgUseRegistrationManage
manage
=
jgUseRegistrationManageServiceImpl
.
getBaseMapper
()
.
selectOne
(
new
LambdaQueryWrapper
<
JgUseRegistrationManage
>()
.
eq
(
JgUseRegistrationManage:
:
getUseRegistrationCode
,
record
.
getUseRegistrationCode
()));
record
.
setCertificateSeq
(
manage
!=
null
?
String
.
valueOf
(
manage
.
getSequenceNbr
())
:
null
);
}
else
if
(
"0"
.
equals
(
record
.
getClaimedFlag
()))
{
record
.
setClaimedFlag
(
"否"
);
}
})
);
return
ResponseHelper
.
buildResponse
(
shCarDtoPage
);
}
...
...
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