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
fc4f91de
Commit
fc4f91de
authored
Jun 21, 2025
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):车用气瓶暂存功能
parent
430d40d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
36 deletions
+35
-36
IdxBizJgRegisterInfoServiceImpl.java
.../jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
+35
-36
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/IdxBizJgRegisterInfoServiceImpl.java
View file @
fc4f91de
...
@@ -951,43 +951,42 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
...
@@ -951,43 +951,42 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
if
(
dataSource
.
contains
(
"his"
))
{
if
(
dataSource
.
contains
(
"his"
))
{
String
VIN
=
(
String
)
equipmentInfoForm
.
get
(
"identificationCode"
);
String
VIN
=
(
String
)
equipmentInfoForm
.
get
(
"identificationCode"
);
String
useRegistrationCode
=
(
String
)
equipmentInfoForm
.
get
(
"useRegistrationCode"
);
String
useRegistrationCode
=
(
String
)
equipmentInfoForm
.
get
(
"useRegistrationCode"
);
if
(
ValidationUtil
.
isEmpty
(
VIN
)
||
ValidationUtil
.
isEmpty
(
useRegistrationCode
))
{
if
(!
ValidationUtil
.
isEmpty
(
VIN
)
||
!
ValidationUtil
.
isEmpty
(
useRegistrationCode
))
{
throw
new
BadRequest
(
"参数异常!"
);
ReginParams
reginParams
=
JSON
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
}
String
companyType
=
reginParams
.
getCompany
().
getCompanyType
();
ReginParams
reginParams
=
JSON
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
String
companyCode
=
"个人主体"
.
equals
(
companyType
)
?
reginParams
.
getCompany
().
getCompanyCode
().
split
(
"_"
)[
1
]
:
reginParams
.
getCompany
().
getCompanyCode
();
String
companyType
=
reginParams
.
getCompany
().
getCompanyType
();
// 匹配使用登记证编号
String
companyCode
=
"个人主体"
.
equals
(
companyType
)
?
reginParams
.
getCompany
().
getCompanyCode
().
split
(
"_"
)[
1
]
:
reginParams
.
getCompany
().
getCompanyCode
();
List
<
Map
<
String
,
String
>>
useRegMapList
=
commonMapper
.
useRegCertAccountUniqueWithVehGasCyl
(
useRegistrationCode
,
record
);
// 匹配使用登记证编号
boolean
hasUseReg
=
!
useRegMapList
.
isEmpty
();
List
<
Map
<
String
,
String
>>
useRegMapList
=
commonMapper
.
useRegCertAccountUniqueWithVehGasCyl
(
useRegistrationCode
,
record
);
boolean
certificateOfTheEnterprise
=
hasUseReg
?
JSON
.
toJSONString
(
useRegMapList
).
contains
(
companyCode
)
:
Boolean
.
FALSE
;
boolean
hasUseReg
=
!
useRegMapList
.
isEmpty
();
// 匹配车辆VIN码
boolean
certificateOfTheEnterprise
=
hasUseReg
?
JSON
.
toJSONString
(
useRegMapList
).
contains
(
companyCode
)
:
Boolean
.
FALSE
;
List
<
Map
<
String
,
String
>>
VINMapList
=
commonMapper
.
VINAccountUniqueWithVehGasCyl
(
VIN
,
record
);
// 匹配车辆VIN码
boolean
hasVIN
=
!
VINMapList
.
isEmpty
();
List
<
Map
<
String
,
String
>>
VINMapList
=
commonMapper
.
VINAccountUniqueWithVehGasCyl
(
VIN
,
record
);
boolean
VINOfTheEnterprise
=
hasVIN
?
JSON
.
toJSONString
(
VINMapList
).
contains
(
companyCode
)
:
Boolean
.
FALSE
;
boolean
hasVIN
=
!
VINMapList
.
isEmpty
();
// 无证无VIN 和 本企业的证本企业的VIN 两种情况可以放行
boolean
VINOfTheEnterprise
=
hasVIN
?
JSON
.
toJSONString
(
VINMapList
).
contains
(
companyCode
)
:
Boolean
.
FALSE
;
if
((!
hasUseReg
&&
!
hasVIN
)
||
(
certificateOfTheEnterprise
&&
VINOfTheEnterprise
))
{
// 无证无VIN 和 本企业的证本企业的VIN 两种情况可以放行
return
;
if
((!
hasUseReg
&&
!
hasVIN
)
||
(
certificateOfTheEnterprise
&&
VINOfTheEnterprise
))
{
}
return
;
if
(
log
.
isDebugEnabled
())
{
}
log
.
info
(
"历史车用气瓶==输入的==>使用登记证编号:{},车辆VIN码:{}"
,
useRegistrationCode
,
VIN
);
if
(
log
.
isDebugEnabled
())
{
log
.
info
(
"历史车用气瓶==匹配到的==>使用登记证编号:{},车辆VIN码:{}"
,
JSON
.
toJSONString
(
useRegMapList
),
JSON
.
toJSONString
(
VINMapList
));
log
.
info
(
"历史车用气瓶==输入的==>使用登记证编号:{},车辆VIN码:{}"
,
useRegistrationCode
,
VIN
);
log
.
info
(
"历史车用气瓶====>是否本企业使用登记证编号:{},是否本企业车辆VIN码:{}"
,
certificateOfTheEnterprise
,
VINOfTheEnterprise
);
log
.
info
(
"历史车用气瓶==匹配到的==>使用登记证编号:{},车辆VIN码:{}"
,
JSON
.
toJSONString
(
useRegMapList
),
JSON
.
toJSONString
(
VINMapList
));
}
log
.
info
(
"历史车用气瓶====>是否本企业使用登记证编号:{},是否本企业车辆VIN码:{}"
,
certificateOfTheEnterprise
,
VINOfTheEnterprise
);
// 本企业存在证 + 无VIN 无证 + 本企业存在VIN
}
if
((
certificateOfTheEnterprise
&&
!
hasVIN
)
||
(!
hasUseReg
&&
VINOfTheEnterprise
))
{
// 本企业存在证 + 无VIN 无证 + 本企业存在VIN
throw
new
BadRequest
(
"使用的登记证号,车辆VIN码与本企业原先录入的数据不一致!"
);
if
((
certificateOfTheEnterprise
&&
!
hasVIN
)
||
(!
hasUseReg
&&
VINOfTheEnterprise
))
{
}
throw
new
BadRequest
(
"使用的登记证号,车辆VIN码与本企业原先录入的数据不一致!"
);
// 本企业存在证 + VIN属于其他企业 无证 + VIN属于其他企业
}
if
((
certificateOfTheEnterprise
&&
hasVIN
&&
!
VINOfTheEnterprise
)
||
(!
hasUseReg
&&
hasVIN
&&
!
VINOfTheEnterprise
))
{
// 本企业存在证 + VIN属于其他企业 无证 + VIN属于其他企业
throw
new
BadRequest
(
"车辆VIN码已被其他企业使用!"
);
if
((
certificateOfTheEnterprise
&&
hasVIN
&&
!
VINOfTheEnterprise
)
||
(!
hasUseReg
&&
hasVIN
&&
!
VINOfTheEnterprise
))
{
}
throw
new
BadRequest
(
"车辆VIN码已被其他企业使用!"
);
// 其他企业存在证 + 本企业存在VIN 其他企业存在证 + 无VIN
}
if
((
hasUseReg
&&
!
certificateOfTheEnterprise
&&
VINOfTheEnterprise
)
||
(
hasUseReg
&&
!
certificateOfTheEnterprise
&&
!
hasVIN
))
{
// 其他企业存在证 + 本企业存在VIN 其他企业存在证 + 无VIN
throw
new
BadRequest
(
"使用的登记证号已被其他企业使用!"
);
if
((
hasUseReg
&&
!
certificateOfTheEnterprise
&&
VINOfTheEnterprise
)
||
(
hasUseReg
&&
!
certificateOfTheEnterprise
&&
!
hasVIN
))
{
}
throw
new
BadRequest
(
"使用的登记证号已被其他企业使用!"
);
// 其他企业存在证 + 其他企业存在VIN
throw
new
BadRequest
(
"使用的登记证号,车辆VIN码已被其他企业使用!"
);
}
}
// 其他企业存在证 + 其他企业存在VIN
throw
new
BadRequest
(
"使用的登记证号,车辆VIN码已被其他企业使用!"
);
}
}
}
}
}
}
...
...
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