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
eeca047d
Commit
eeca047d
authored
Oct 24, 2025
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reafact(jg): 业务作废
1.作废逻辑修正
parent
3903155b
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
20 deletions
+3
-20
JgUseRegistrationMapper.xml
...api/src/main/resources/mapper/JgUseRegistrationMapper.xml
+0
-15
JgVehicleInformationMapper.xml
.../src/main/resources/mapper/JgVehicleInformationMapper.xml
+0
-2
InstallNoticeDiscardOrderCheck.java
...discardOrder/strategy/InstallNoticeDiscardOrderCheck.java
+1
-1
UseRegisterDiscardOrderCheck.java
...z/discardOrder/strategy/UseRegisterDiscardOrderCheck.java
+1
-1
VehicleInformationDiscardOrderCheck.java
...rdOrder/strategy/VehicleInformationDiscardOrderCheck.java
+1
-1
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgUseRegistrationMapper.xml
View file @
eeca047d
...
...
@@ -2148,20 +2148,5 @@
</foreach>
])
and (a.notice_status
<![CDATA[ <> ]]>
'6617')
and a.is_delete = 0
union all
select
a.apply_no as recUserName,
b.equip_transfer_id as equId
from
tzs_jg_equip_transfer a,
tzs_jg_equip_transfer_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.apply_status
<![CDATA[ <> ]]>
'6617')
</select>
</mapper>
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgVehicleInformationMapper.xml
View file @
eeca047d
...
...
@@ -381,7 +381,6 @@
<foreach
collection=
"records"
item=
"record"
separator=
","
>
#{record}
</foreach>
])
and a.is_delete = 0
and (a.status
<![CDATA[ <> ]]>
'已作废')
</select>
</mapper>
\ No newline at end of file
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/discardOrder/strategy/InstallNoticeDiscardOrderCheck.java
View file @
eeca047d
...
...
@@ -26,7 +26,7 @@ public class InstallNoticeDiscardOrderCheck implements SupportableDiscardOrderCh
public
Boolean
check
(
List
<
String
>
records
)
{
List
<
JgUseRegistrationEq
>
useRegistrationEqs
=
useRegistrationMapper
.
selectListForInstallNoticeDiscard
(
records
);
if
(!
useRegistrationEqs
.
isEmpty
())
{
String
msg
=
String
.
format
(
"存在设备正在办理或已办理使用登记,登记单
编号
:%s,不能进行作废!"
,
String
.
join
(
","
,
useRegistrationEqs
.
stream
().
map
(
u
->
GenericDiscardOrderCheck
.
buildErrorMsg
(
u
.
getRecUserName
())).
collect
(
Collectors
.
toSet
())));
String
msg
=
String
.
format
(
"存在设备正在办理或已办理使用登记,登记单:%s,不能进行作废!"
,
String
.
join
(
","
,
useRegistrationEqs
.
stream
().
map
(
u
->
GenericDiscardOrderCheck
.
buildErrorMsg
(
u
.
getRecUserName
())).
collect
(
Collectors
.
toSet
())));
throw
new
RuntimeException
(
msg
);
}
return
true
;
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/discardOrder/strategy/UseRegisterDiscardOrderCheck.java
View file @
eeca047d
...
...
@@ -26,7 +26,7 @@ public class UseRegisterDiscardOrderCheck implements SupportableDiscardOrderChec
public
Boolean
check
(
List
<
String
>
records
)
{
List
<
JgUseRegistrationEq
>
useRegistrationEqs
=
useRegistrationMapper
.
selectListForSelfDiscard
(
records
);
if
(!
useRegistrationEqs
.
isEmpty
())
{
String
msg
=
String
.
format
(
"存在设备正在办理或已办理后续业务,单据
编号
:%s,不能进行作废!"
,
String
.
join
(
","
,
useRegistrationEqs
.
stream
().
map
(
u
->
GenericDiscardOrderCheck
.
buildErrorMsg
(
u
.
getRecUserName
())).
collect
(
Collectors
.
toSet
())));
String
msg
=
String
.
format
(
"存在设备正在办理或已办理后续业务,单据:%s,不能进行作废!"
,
String
.
join
(
","
,
useRegistrationEqs
.
stream
().
map
(
u
->
GenericDiscardOrderCheck
.
buildErrorMsg
(
u
.
getRecUserName
())).
collect
(
Collectors
.
toSet
())));
throw
new
RuntimeException
(
msg
);
}
return
true
;
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/discardOrder/strategy/VehicleInformationDiscardOrderCheck.java
View file @
eeca047d
...
...
@@ -26,7 +26,7 @@ public class VehicleInformationDiscardOrderCheck implements SupportableDiscardOr
public
Boolean
check
(
List
<
String
>
records
)
{
List
<
JgVehicleInformationEq
>
eqs
=
jgVehicleInformationMapper
.
selectListForSelfDiscard
(
records
);
if
(!
eqs
.
isEmpty
())
{
String
msg
=
String
.
format
(
"存在设备正在办理或已办理后续业务,单据
编号
:%s,不能进行作废!"
,
String
.
join
(
","
,
eqs
.
stream
().
map
(
u
->
GenericDiscardOrderCheck
.
buildErrorMsg
(
u
.
getRecUserName
())).
collect
(
Collectors
.
toSet
())));
String
msg
=
String
.
format
(
"存在设备正在办理或已办理后续业务,单据:%s,不能进行作废!"
,
String
.
join
(
","
,
eqs
.
stream
().
map
(
u
->
GenericDiscardOrderCheck
.
buildErrorMsg
(
u
.
getRecUserName
())).
collect
(
Collectors
.
toSet
())));
throw
new
RuntimeException
(
msg
);
}
return
true
;
...
...
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