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
9129ee8f
Commit
9129ee8f
authored
Dec 09, 2025
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:(监管):去掉重复代码,修改车用气瓶单位变更bug
parent
3a18ed3f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
67 deletions
+9
-67
CommonMapper.xml
...-module-jg-api/src/main/resources/mapper/CommonMapper.xml
+0
-59
JgChangeVehicleRegistrationUnitServiceImpl.java
...vice/impl/JgChangeVehicleRegistrationUnitServiceImpl.java
+9
-8
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/CommonMapper.xml
View file @
9129ee8f
...
...
@@ -22,65 +22,6 @@
</if>
</select>
<select
id=
"countEquipInUseTimesWithOutZFBatch"
resultType=
"com.yeejoin.amos.boot.biz.common.dto.CountDto"
>
select
sum(inUseNumber) longValue,
record as keyStr
from (
select
count(1) as inUseNumber,
b.equ_id AS record
from
tzs_jg_use_registration a,
tzs_jg_use_registration_eq b
where
a.sequence_nbr = b.equip_transfer_id
and b.equ_id = ANY(ARRAY[
<foreach
collection=
"records"
item=
"record"
separator=
","
>
#{record}
</foreach>
])
and a.is_delete = 0
and ( a.status
<![CDATA[ <> ]]>
'已作废')
GROUP BY b.equ_id
UNION ALL
select
count(1) as inUseNumber,
b.equ_id AS record
from
tzs_jg_installation_notice a,
tzs_jg_installation_notice_eq b
where
a.sequence_nbr = b.equip_transfer_id
and b.equ_id = ANY(ARRAY[
<foreach
collection=
"records"
item=
"record"
separator=
","
>
#{record}
</foreach>
])
and a.is_delete = 0
and (a.notice_status
<![CDATA[ <> ]]>
'6617')
GROUP BY b.equ_id
UNION ALL
select
count(1) as inUseNumber,
b.equ_id AS record
from
tzs_jg_vehicle_information a,
tzs_jg_vehicle_information_eq b
where
a.sequence_nbr = b.vehicle_id
and b.equ_id = ANY(ARRAY[
<foreach
collection=
"records"
item=
"record"
separator=
","
>
#{record}
</foreach>
])
and a.is_delete = 0
and (a.status
<![CDATA[ <> ]]>
'已作废')
GROUP BY b.equ_id
)
GROUP BY record
</select>
<select
id=
"getUnitInfoListByType"
resultType=
"java.util.Map"
>
SELECT sequence_nbr AS useCode,
CASE
...
...
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 @
9129ee8f
...
...
@@ -874,16 +874,17 @@ public class JgChangeVehicleRegistrationUnitServiceImpl extends BaseService<JgCh
})
public
Map
<
String
,
Object
>
getEquList
(
String
useRegistrationCode
)
{
HashMap
<
String
,
Object
>
map
=
new
HashMap
<>();
// 组件回显
map
.
put
(
"useRegistrationCode"
,
useRegistrationCode
);
JgUseRegistrationManage
registrationManage
=
jgUseRegistrationManageService
.
lambdaQuery
()
.
eq
(
JgUseRegistrationManage:
:
getUseRegistrationCode
,
useRegistrationCode
)
.
eq
(
JgUseRegistrationManage:
:
getCertificateStatus
,
CertificateStatusEnum
.
YIDENGJI
.
getName
())
.
eq
(
JgUseRegistrationManage:
:
getIsDelete
,
0
)
.
one
();
List
<
JSONObject
>
jsonObjects
=
jgUseRegistrationManageService
.
queryEquByCertificateSeq
(
registrationManage
.
getSequenceNbr
());
JgUseRegistrationManage
registrationManage
=
jgUseRegistrationManageService
.
lambdaQuery
()
.
eq
(
JgUseRegistrationManage:
:
getUseRegistrationCode
,
useRegistrationCode
)
.
eq
(
JgUseRegistrationManage:
:
getIsDelete
,
0
)
.
last
(
"LIMIT 1"
)
.
one
();
List
<
JSONObject
>
jsonObjects
=
registrationManage
==
null
?
Collections
.
emptyList
():
Optional
.
ofNullable
(
jgUseRegistrationManageService
.
queryEquByCertificateSeq
(
registrationManage
.
getSequenceNbr
())
).
orElse
(
Collections
.
emptyList
());
if
(!
ObjectUtils
.
isEmpty
(
jsonObjects
))
{
// JgVehicleInformation information = jgVehicleInformationService.lambdaQuery().eq(JgVehicleInformation::getUseRegistrationCode, useRegistrationCode).one();
List
<
String
>
records
=
jsonObjects
.
stream
().
map
(
a
->
String
.
valueOf
(
a
.
get
(
"SEQUENCE_NBR"
))).
collect
(
Collectors
.
toList
());
List
<
Map
<
String
,
Object
>>
equList
=
this
.
getBaseMapper
().
getEquList
(
records
);
equList
.
forEach
(
a
->
{
...
...
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