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
05340925
Commit
05340925
authored
Aug 03, 2024
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):车用气瓶单位变更
parent
703cae2b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
JgChangeVehicleRegistrationUnitServiceImpl.java
...vice/impl/JgChangeVehicleRegistrationUnitServiceImpl.java
+12
-4
JgVehicleInformationServiceImpl.java
.../jg/biz/service/impl/JgVehicleInformationServiceImpl.java
+0
-1
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/service/impl/JgChangeVehicleRegistrationUnitServiceImpl.java
View file @
05340925
...
@@ -115,9 +115,13 @@ public class JgChangeVehicleRegistrationUnitServiceImpl extends BaseService<JgCh
...
@@ -115,9 +115,13 @@ public class JgChangeVehicleRegistrationUnitServiceImpl extends BaseService<JgCh
}
}
if
(!
ObjectUtils
.
isEmpty
(
dto
.
getNewUseUnitCreditCode
()))
{
if
(!
ObjectUtils
.
isEmpty
(
dto
.
getNewUseUnitCreditCode
()))
{
// 新使用单位
// 新使用单位
//String[] splitMaintenanceUnitCode = dto.getNewUseUnitCreditCode().split("_");
if
(
"个人主体"
.
equals
(
company
.
getCompanyType
()))
{
dto
.
setNewUseUnitCreditCode
(
company
.
getCompanyCode
().
split
(
"_"
)[
1
]);
dto
.
setNewUseUnitCreditCode
(
company
.
getCompanyCode
().
split
(
"_"
)[
1
]);
dto
.
setNewUseUnitName
(
company
.
getCompanyName
().
split
(
"_"
)[
1
]);
dto
.
setNewUseUnitName
(
company
.
getCompanyName
().
split
(
"_"
)[
1
]);
}
else
{
dto
.
setNewUseUnitName
(
company
.
getCompanyName
());
dto
.
setNewUseUnitCreditCode
(
company
.
getCompanyCode
());
}
}
}
if
(!
ObjectUtils
.
isEmpty
(
dto
.
getOrgBranchCode
()))
{
if
(!
ObjectUtils
.
isEmpty
(
dto
.
getOrgBranchCode
()))
{
// 属地监管部门
// 属地监管部门
...
@@ -441,6 +445,11 @@ public class JgChangeVehicleRegistrationUnitServiceImpl extends BaseService<JgCh
...
@@ -441,6 +445,11 @@ public class JgChangeVehicleRegistrationUnitServiceImpl extends BaseService<JgCh
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
jgRegistrationHistory
.
getChangeData
());
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
jgRegistrationHistory
.
getChangeData
());
JSONArray
dataList
=
JSONObject
.
parseArray
(
jsonObject
.
get
(
"dataList"
).
toString
());
JSONArray
dataList
=
JSONObject
.
parseArray
(
jsonObject
.
get
(
"dataList"
).
toString
());
ArrayList
<
JgCertificateChangeRecordEq
>
jgCertificateChangeRecordEqs
=
new
ArrayList
<>();
ArrayList
<
JgCertificateChangeRecordEq
>
jgCertificateChangeRecordEqs
=
new
ArrayList
<>();
//List<String> collect = jgCertificateChangeRecordEqs.stream().map(JgCertificateChangeRecordEq::getEquId).collect(Collectors.toList());
List
<
String
>
collect
=
dataList
.
stream
()
.
map
(
obj
->
((
JSONObject
)
obj
).
getString
(
"record"
))
.
collect
(
Collectors
.
toList
());
JgCertificateChangeRecord
jgCertificateChangeRecord
=
new
JgCertificateChangeRecord
();
JgCertificateChangeRecord
jgCertificateChangeRecord
=
new
JgCertificateChangeRecord
();
jgCertificateChangeRecord
.
setApplyNo
(
jgChangeVehicleRegistrationUnit
.
getApplyNo
());
jgCertificateChangeRecord
.
setApplyNo
(
jgChangeVehicleRegistrationUnit
.
getApplyNo
());
jgCertificateChangeRecord
.
setReceiveOrgName
(
jgChangeVehicleRegistrationUnit
.
getReceiveOrgName
());
jgCertificateChangeRecord
.
setReceiveOrgName
(
jgChangeVehicleRegistrationUnit
.
getReceiveOrgName
());
...
@@ -459,7 +468,6 @@ public class JgChangeVehicleRegistrationUnitServiceImpl extends BaseService<JgCh
...
@@ -459,7 +468,6 @@ public class JgChangeVehicleRegistrationUnitServiceImpl extends BaseService<JgCh
jgCertificateChangeRecord
.
setEquCategory
(
manage
.
getEquCategory
());
jgCertificateChangeRecord
.
setEquCategory
(
manage
.
getEquCategory
());
jgCertificateChangeRecord
.
setReceiveCompanyCode
(
jgChangeVehicleRegistrationUnit
.
getReceiveCompanyCode
());
jgCertificateChangeRecord
.
setReceiveCompanyCode
(
jgChangeVehicleRegistrationUnit
.
getReceiveCompanyCode
());
jgCertificateChangeRecord
.
setRoutePath
(
taskV2Model
.
getRoutePath
());
jgCertificateChangeRecord
.
setRoutePath
(
taskV2Model
.
getRoutePath
());
List
<
String
>
collect
=
jgCertificateChangeRecordEqs
.
stream
().
map
(
JgCertificateChangeRecordEq:
:
getEquId
).
collect
(
Collectors
.
toList
());
if
(
"0"
.
equals
(
jgChangeVehicleRegistrationUnit
.
getChangeType
())
&&
!
ObjectUtils
.
isEmpty
(
collect
))
{
if
(
"0"
.
equals
(
jgChangeVehicleRegistrationUnit
.
getChangeType
())
&&
!
ObjectUtils
.
isEmpty
(
collect
))
{
// 区外变更
// 区外变更
// 生成使用登记证编号
// 生成使用登记证编号
...
...
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/JgVehicleInformationServiceImpl.java
View file @
05340925
...
@@ -253,7 +253,6 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform
...
@@ -253,7 +253,6 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform
vehicleInfoDto
.
setUseUnitCreditCode
(
company
.
getCompanyCode
());
vehicleInfoDto
.
setUseUnitCreditCode
(
company
.
getCompanyCode
());
}
}
// 接收单位信息
// 接收单位信息
if
(!
StringUtils
.
isEmpty
(
vehicleInfoDto
.
getReceiveOrgCode
()))
{
if
(!
StringUtils
.
isEmpty
(
vehicleInfoDto
.
getReceiveOrgCode
()))
{
String
[]
splitReceiveOrgCode
=
vehicleInfoDto
.
getReceiveOrgCode
().
split
(
"_"
);
String
[]
splitReceiveOrgCode
=
vehicleInfoDto
.
getReceiveOrgCode
().
split
(
"_"
);
...
...
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