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
984e359d
Commit
984e359d
authored
Jul 10, 2024
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):登记证查询添加车牌号字段
parent
85d9321d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
1 deletion
+28
-1
JgUseRegistrationManageDto.java
...os/boot/module/jg/api/dto/JgUseRegistrationManageDto.java
+3
-0
JgUseRegistrationManageServiceImpl.java
.../biz/service/impl/JgUseRegistrationManageServiceImpl.java
+25
-1
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/dto/JgUseRegistrationManageDto.java
View file @
984e359d
...
@@ -82,6 +82,9 @@ public class JgUseRegistrationManageDto extends BaseDto {
...
@@ -82,6 +82,9 @@ public class JgUseRegistrationManageDto extends BaseDto {
@ApiModelProperty
(
value
=
"数据类型:监管/行政审批局,企业"
)
@ApiModelProperty
(
value
=
"数据类型:监管/行政审批局,企业"
)
private
String
dataType
;
private
String
dataType
;
@ApiModelProperty
(
value
=
"车牌号"
)
private
String
carNumber
;
@ApiModelProperty
(
value
=
"设备使用地址"
)
@ApiModelProperty
(
value
=
"设备使用地址"
)
private
String
equUseAddress
;
private
String
equUseAddress
;
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/JgUseRegistrationManageServiceImpl.java
View file @
984e359d
...
@@ -34,6 +34,7 @@ import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
...
@@ -34,6 +34,7 @@ import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
import
java.util.*
;
import
java.util.function.Function
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
/**
/**
...
@@ -200,7 +201,30 @@ public class JgUseRegistrationManageServiceImpl extends BaseService<JgUseRegistr
...
@@ -200,7 +201,30 @@ public class JgUseRegistrationManageServiceImpl extends BaseService<JgUseRegistr
JgUseRegistrationManageDto
dto
,
JgUseRegistrationManageDto
dto
,
String
sort
)
{
String
sort
)
{
SortVo
sortMap
=
commonServiceImpl
.
sortFieldConversion
(
sort
);
SortVo
sortMap
=
commonServiceImpl
.
sortFieldConversion
(
sort
);
return
jgUseRegistrationManageMapper
.
queryForPage
(
page
,
dto
,
sortMap
);
Page
<
JgUseRegistrationManageDto
>
manageDtoPage
=
jgUseRegistrationManageMapper
.
queryForPage
(
page
,
dto
,
sortMap
);
// 为车用气瓶登记添加车牌号
List
<
String
>
useRegistrationCodes
=
manageDtoPage
.
getRecords
().
stream
()
.
filter
(
x
->
BusinessTypeEnum
.
JG_VEHICLE_GAS_APPLICATION
.
getName
().
equals
(
x
.
getRegType
()))
.
map
(
JgUseRegistrationManageDto:
:
getUseRegistrationCode
)
.
collect
(
Collectors
.
toList
());
if
(!
useRegistrationCodes
.
isEmpty
())
{
Map
<
String
,
JgVehicleInformation
>
vehicleInfoMap
=
jgVehicleInformationMapper
.
selectList
(
new
LambdaQueryWrapper
<
JgVehicleInformation
>().
in
(
JgVehicleInformation:
:
getUseRegistrationCode
,
useRegistrationCodes
)
).
stream
().
collect
(
Collectors
.
toMap
(
JgVehicleInformation:
:
getUseRegistrationCode
,
Function
.
identity
()));
manageDtoPage
.
getRecords
().
forEach
(
x
->
{
if
(
BusinessTypeEnum
.
JG_VEHICLE_GAS_APPLICATION
.
getName
().
equals
(
x
.
getRegType
()))
{
JgVehicleInformation
vehicleInformation
=
vehicleInfoMap
.
get
(
x
.
getUseRegistrationCode
());
if
(
vehicleInformation
!=
null
)
{
x
.
setCarNumber
(
vehicleInformation
.
getCarNumber
());
}
}
});
}
return
manageDtoPage
;
}
}
/**
/**
...
...
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