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
e56b2795
Commit
e56b2795
authored
Jan 20, 2025
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):BUG 26782
parent
1d144cda
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
12 deletions
+18
-12
IdxBizJgRegisterInfoServiceImpl.java
.../jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
+9
-6
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+9
-6
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 @
e56b2795
...
...
@@ -850,12 +850,15 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
*/
private
void
checkCarNumberUniquenessWithHisCC
(
LinkedHashMap
<?,
?>
equipmentInfoForm
,
String
record
,
String
dataSource
)
{
if
(
dataSource
.
contains
(
"his"
)
&&
EquipmentClassifityEnum
.
CC
.
getCode
().
equals
(
equipmentInfoForm
.
get
(
EQU_LIST
))
&&
!
ValidationUtil
.
isEmpty
(
equipmentInfoForm
.
get
(
CAR_NUMBER
)))
{
Integer
count
=
idxBizJgRegisterInfoService
.
lambdaQuery
()
.
eq
(
IdxBizJgRegisterInfo:
:
getCarNumber
,
equipmentInfoForm
.
get
(
CAR_NUMBER
))
.
ne
(!
StringUtils
.
isEmpty
(
record
),
IdxBizJgRegisterInfo:
:
getRecord
,
record
)
.
count
();
if
(
count
>
0
)
{
throw
new
BadRequest
(
"车牌号已存在,请重新输入!"
);
String
carNumber
=
String
.
valueOf
(
equipmentInfoForm
.
get
(
CAR_NUMBER
));
if
(!
"无"
.
equals
(
carNumber
))
{
Integer
count
=
idxBizJgRegisterInfoService
.
lambdaQuery
()
.
eq
(
IdxBizJgRegisterInfo:
:
getCarNumber
,
carNumber
)
.
ne
(!
StringUtils
.
isEmpty
(
record
),
IdxBizJgRegisterInfo:
:
getRecord
,
record
)
.
count
();
if
(
count
>
0
)
{
throw
new
BadRequest
(
"车牌号已存在,请重新输入!"
);
}
}
}
}
...
...
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/JgUseRegistrationServiceImpl.java
View file @
e56b2795
...
...
@@ -3337,12 +3337,15 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
// 场车设备校验车牌号的唯一性
if
(
EquipmentClassifityEnum
.
CC
.
getCode
().
equals
(
map
.
get
(
"EQU_LIST_CODE"
)))
{
Integer
count
=
idxBizJgRegisterInfoService
.
lambdaQuery
()
.
eq
(
IdxBizJgRegisterInfo:
:
getCarNumber
,
map
.
get
(
carNumber
))
.
ne
(!
com
.
baomidou
.
mybatisplus
.
core
.
toolkit
.
StringUtils
.
isEmpty
(
equipId
),
IdxBizJgRegisterInfo:
:
getRecord
,
equipId
)
.
count
();
if
(
count
>
0
)
{
throw
new
BadRequest
(
"车牌号已存在,请重新输入!"
);
String
carNum
=
String
.
valueOf
(
map
.
get
(
carNumber
));
if
(!
"无"
.
equals
(
carNum
))
{
Integer
count
=
idxBizJgRegisterInfoService
.
lambdaQuery
()
.
eq
(
IdxBizJgRegisterInfo:
:
getCarNumber
,
carNum
)
.
ne
(!
StringUtils
.
isEmpty
(
equipId
),
IdxBizJgRegisterInfo:
:
getRecord
,
equipId
)
.
count
();
if
(
count
>
0
)
{
throw
new
BadRequest
(
"车牌号已存在,请重新输入!"
);
}
}
}
...
...
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