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
0c81f933
Commit
0c81f933
authored
May 08, 2024
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(JG):车用气瓶监管业务系统,车用气瓶使用登记申请,暂存一个车用气瓶登记,再次编辑申请单据,提交使用登记申请时,提示车架号已存在
parent
a403910e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
JgVehicleInformationServiceImpl.java
.../jg/biz/service/impl/JgVehicleInformationServiceImpl.java
+12
-10
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/JgVehicleInformationServiceImpl.java
View file @
0c81f933
...
@@ -170,22 +170,24 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform
...
@@ -170,22 +170,24 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform
vehicleInfoDto
.
setPromoter
(
reginParams
.
getUserModel
().
getUserId
());
vehicleInfoDto
.
setPromoter
(
reginParams
.
getUserModel
().
getUserId
());
// 车牌号码 字段的唯一性校验
// 车牌号码 字段的唯一性校验
LambdaQueryWrapper
<
JgVehicleInformation
>
vehicleInfoWrapper
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
JgVehicleInformation
>
vehicleInfoWrapper
=
new
LambdaQueryWrapper
<
JgVehicleInformation
>()
vehicleInfoWrapper
.
eq
(
JgVehicleInformation:
:
getCarNumber
,
vehicleInfoDto
.
getCarNumber
());
.
eq
(
JgVehicleInformation:
:
getCarNumber
,
vehicleInfoDto
.
getCarNumber
())
vehicleInfoWrapper
.
eq
(
JgVehicleInformation:
:
getIsDelete
,
false
);
.
eq
(
JgVehicleInformation:
:
getIsDelete
,
false
)
vehicleInfoWrapper
.
ne
(
JgVehicleInformation:
:
getStatus
,
"已作废"
);
.
ne
(
JgVehicleInformation:
:
getStatus
,
"已作废"
)
vehicleInfoWrapper
.
ne
(!
ValidationUtil
.
isEmpty
(
vehicleInfoDto
.
getSequenceNbr
()),
JgVehicleInformation:
:
getSequenceNbr
,
vehicleInfoDto
.
getSequenceNbr
());
.
ne
(
JgVehicleInformation:
:
getStatus
,
"使用单位待提交"
)
.
ne
(!
ValidationUtil
.
isEmpty
(
vehicleInfoDto
.
getSequenceNbr
()),
JgVehicleInformation:
:
getSequenceNbr
,
vehicleInfoDto
.
getSequenceNbr
());
Integer
count
=
this
.
baseMapper
.
selectCount
(
vehicleInfoWrapper
);
Integer
count
=
this
.
baseMapper
.
selectCount
(
vehicleInfoWrapper
);
if
(
count
>
0
)
{
if
(
count
>
0
)
{
throw
new
LocalBadRequest
(
"车牌号码已存在,请重新输入!"
);
throw
new
LocalBadRequest
(
"车牌号码已存在,请重新输入!"
);
}
}
// 【A109】 车用气瓶登记业务 车辆VIN码 校验唯一性
// 【A109】 车用气瓶登记业务 车辆VIN码 校验唯一性
LambdaQueryWrapper
<
JgVehicleInformation
>
informationLambdaQueryWrapper
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
JgVehicleInformation
>
informationLambdaQueryWrapper
=
new
LambdaQueryWrapper
<
JgVehicleInformation
>()
informationLambdaQueryWrapper
.
eq
(
JgVehicleInformation:
:
getIdentificationCode
,
vehicleInfoDto
.
getIdentificationCode
());
.
eq
(
JgVehicleInformation:
:
getIdentificationCode
,
vehicleInfoDto
.
getIdentificationCode
())
informationLambdaQueryWrapper
.
eq
(
JgVehicleInformation:
:
getIsDelete
,
false
);
.
eq
(
JgVehicleInformation:
:
getIsDelete
,
false
)
informationLambdaQueryWrapper
.
ne
(
JgVehicleInformation:
:
getStatus
,
"已作废"
);
.
ne
(
JgVehicleInformation:
:
getStatus
,
"已作废"
)
informationLambdaQueryWrapper
.
ne
(!
ValidationUtil
.
isEmpty
(
vehicleInfoDto
.
getSequenceNbr
()),
JgVehicleInformation:
:
getSequenceNbr
,
vehicleInfoDto
.
getSequenceNbr
());
.
ne
(
JgVehicleInformation:
:
getStatus
,
"使用单位待提交"
)
.
ne
(!
ValidationUtil
.
isEmpty
(
vehicleInfoDto
.
getSequenceNbr
()),
JgVehicleInformation:
:
getSequenceNbr
,
vehicleInfoDto
.
getSequenceNbr
());
Integer
identificationCodeCount
=
this
.
baseMapper
.
selectCount
(
informationLambdaQueryWrapper
);
Integer
identificationCodeCount
=
this
.
baseMapper
.
selectCount
(
informationLambdaQueryWrapper
);
if
(
identificationCodeCount
>
0
)
{
if
(
identificationCodeCount
>
0
)
{
throw
new
BadRequest
(
"车辆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