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
15d4fb3f
Commit
15d4fb3f
authored
Jul 12, 2024
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(jg):使用登记证管理表添加车牌号
parent
50d161f6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
25 deletions
+12
-25
JgUseRegistrationManageDto.java
...os/boot/module/jg/api/dto/JgUseRegistrationManageDto.java
+1
-1
JgUseRegistrationManage.java
...os/boot/module/jg/api/entity/JgUseRegistrationManage.java
+7
-0
JgUseRegistrationManageMapper.xml
...c/main/resources/mapper/JgUseRegistrationManageMapper.xml
+2
-1
JgUseRegistrationManageServiceImpl.java
.../biz/service/impl/JgUseRegistrationManageServiceImpl.java
+2
-23
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 @
15d4fb3f
...
...
@@ -82,7 +82,7 @@ public class JgUseRegistrationManageDto extends BaseDto {
@ApiModelProperty
(
value
=
"数据类型:监管/行政审批局,企业"
)
private
String
dataType
;
@ApiModelProperty
(
value
=
"车牌号"
)
@ApiModelProperty
(
value
=
"车牌号
-车用气瓶登记
"
)
private
String
carNumber
;
@ApiModelProperty
(
value
=
"设备使用地址"
)
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/entity/JgUseRegistrationManage.java
View file @
15d4fb3f
...
...
@@ -162,4 +162,11 @@ public class JgUseRegistrationManage extends BaseEntity {
@TableField
(
"manage_type"
)
private
String
manageType
;
/**
* 车牌号-车用气瓶登记
*/
@TableField
(
"car_number"
)
private
String
carNumber
;
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgUseRegistrationManageMapper.xml
View file @
15d4fb3f
...
...
@@ -30,7 +30,8 @@
tjurm.equ_category_code AS equCategoryCode,
tjurm.equ_use_address AS equUseAddress,
tjurm.use_unit_address AS useUnitAddress,
tjurm.manage_type AS manageType
tjurm.manage_type AS manageType,
tjurm.car_number AS carNumber
</sql>
...
...
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 @
15d4fb3f
...
...
@@ -183,6 +183,7 @@ public class JgUseRegistrationManageServiceImpl extends BaseService<JgUseRegistr
jgUseRegistrationManage
.
setCreateDate
(
vehicleInformation
.
getRecDate
());
jgUseRegistrationManage
.
setEquUseAddress
(
""
);
jgUseRegistrationManage
.
setManageType
(
"unit"
);
jgUseRegistrationManage
.
setCarNumber
(
vehicleInformation
.
getCarNumber
());
jgUseRegistrationManage
.
setUseUnitAddress
(!
ValidationUtil
.
isEmpty
(
enterpriseInfo
)
?
(
String
)
enterpriseInfo
.
get
(
"address"
)
:
""
);
jgUseRegistrationManage
.
setUseRegistrationCode
(
vehicleInformation
.
getUseRegistrationCode
());
jgUseRegistrationManage
.
setUseUnitCreditCode
(
vehicleInformation
.
getUseUnitCreditCode
());
...
...
@@ -201,29 +202,7 @@ public class JgUseRegistrationManageServiceImpl extends BaseService<JgUseRegistr
JgUseRegistrationManageDto
dto
,
String
sort
)
{
SortVo
sortMap
=
commonServiceImpl
.
sortFieldConversion
(
sort
);
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
;
return
jgUseRegistrationManageMapper
.
queryForPage
(
page
,
dto
,
sortMap
);
}
...
...
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