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
05bafe29
Commit
05bafe29
authored
Apr 23, 2024
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):注释修改
parent
06e09d72
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
CommonMapper.java
.../yeejoin/amos/boot/module/jg/api/mapper/CommonMapper.java
+1
-1
JgVehicleInformationServiceImpl.java
.../jg/biz/service/impl/JgVehicleInformationServiceImpl.java
+2
-2
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/mapper/CommonMapper.java
View file @
05bafe29
...
...
@@ -98,7 +98,7 @@ public interface CommonMapper extends BaseMapper<EquipmentCategory> {
CompanyBo
queryCompanyInfoByCode
(
String
companyCode
);
/**
* 车用气瓶登记业务办理里面的
产品编号、识别代码等都
要校验唯一性(产品编号在车用气瓶范围内全局唯一)
* 车用气瓶登记业务办理里面的
出厂编号/产品编码
要校验唯一性(产品编号在车用气瓶范围内全局唯一)
* @param factoryNum
* @return
*/
...
...
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 @
05bafe29
...
...
@@ -165,14 +165,14 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform
throw
new
LocalBadRequest
(
"车牌号码已存在,请重新输入!"
);
}
// 【A109】 车用气瓶登记业务 车
架号
校验唯一性
// 【A109】 车用气瓶登记业务 车
辆VIN码
校验唯一性
LambdaQueryWrapper
<
JgVehicleInformation
>
informationLambdaQueryWrapper
=
new
LambdaQueryWrapper
<>();
informationLambdaQueryWrapper
.
eq
(
JgVehicleInformation:
:
getIdentificationCode
,
vehicleInfoDto
.
getIdentificationCode
());
informationLambdaQueryWrapper
.
eq
(
JgVehicleInformation:
:
getIsDelete
,
false
);
informationLambdaQueryWrapper
.
ne
(!
ValidationUtil
.
isEmpty
(
vehicleInfoDto
.
getSequenceNbr
()),
JgVehicleInformation:
:
getSequenceNbr
,
vehicleInfoDto
.
getSequenceNbr
());
Integer
identificationCodeCount
=
this
.
baseMapper
.
selectCount
(
informationLambdaQueryWrapper
);
if
(
identificationCodeCount
>
0
)
{
throw
new
BadRequest
(
"车
架号
已存在,请重新输入!"
);
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