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
e7ff021e
Commit
e7ff021e
authored
May 27, 2025
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(module-jg): 优化设备信息表单提交校验逻辑- 修改 OtherInfoMapper 类型为 IdxBizJgOtherInfoMapper
- 在检查 96333 码唯一性时,排除待认领、已拒领和草稿状态的记录
parent
e19ac257
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
IdxBizJgRegisterInfoServiceImpl.java
.../jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
+5
-4
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 @
e7ff021e
...
...
@@ -196,7 +196,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
@Autowired
IdxBizJgRegisterInfoMapper
idxBizJgRegisterInfoMapper
;
@Autowired
OtherInfoMapper
otherInfoMapper
;
IdxBizJg
OtherInfoMapper
otherInfoMapper
;
@Autowired
IIdxBizJgUseInfoService
idxBizJgUseInfoService
;
@Autowired
...
...
@@ -888,9 +888,10 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
private
void
check96333Code
(
LinkedHashMap
equipmentInfoForm
)
{
if
(!
ObjectUtils
.
isEmpty
(
equipmentInfoForm
.
get
(
CODE96333
)))
{
// 根据96333码检查唯一性
LambdaQueryWrapper
<
OtherInfo
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
eq
(
OtherInfo:
:
getCode96333
,
equipmentInfoForm
.
get
(
CODE96333
));
wrapper
.
ne
(!
ObjectUtils
.
isEmpty
(
equipmentInfoForm
.
get
(
OTHERINFO_SEQ
)),
OtherInfo:
:
getSequenceNbr
,
equipmentInfoForm
.
get
(
OTHERINFO_SEQ
));
LambdaQueryWrapper
<
IdxBizJgOtherInfo
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
eq
(
IdxBizJgOtherInfo:
:
getCode96333
,
equipmentInfoForm
.
get
(
CODE96333
));
wrapper
.
notIn
(
IdxBizJgOtherInfo:
:
getClaimStatus
,
"待认领,已拒领,草稿"
);
wrapper
.
ne
(!
ObjectUtils
.
isEmpty
(
equipmentInfoForm
.
get
(
OTHERINFO_SEQ
)),
IdxBizJgOtherInfo:
:
getSequenceNbr
,
equipmentInfoForm
.
get
(
OTHERINFO_SEQ
));
Integer
count
=
otherInfoMapper
.
selectCount
(
wrapper
);
if
(
count
>
0
)
{
throw
new
BadRequest
(
"96333码已存在,请确认后重新输入!"
);
...
...
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