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
91abf2dd
Commit
91abf2dd
authored
May 08, 2024
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):厂车车牌号,避免车牌号占用,无法提交成功
parent
844bcc24
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+14
-0
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/JgUseRegistrationServiceImpl.java
View file @
91abf2dd
...
@@ -1109,6 +1109,20 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -1109,6 +1109,20 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
if
(
"1"
.
equals
(
operate
)
&&
WorkFlowStatusEnum
.
USE_RECEIVE
.
getPass
().
equals
(
jgUseRegistration
.
getStatus
()))
{
if
(
"1"
.
equals
(
operate
)
&&
WorkFlowStatusEnum
.
USE_RECEIVE
.
getPass
().
equals
(
jgUseRegistration
.
getStatus
()))
{
// 驳回到使用单位
// 驳回到使用单位
dto
.
setNextExecuteUserCompanyCode
(
jgUseRegistration
.
getUseUnitCreditCode
());
dto
.
setNextExecuteUserCompanyCode
(
jgUseRegistration
.
getUseUnitCreditCode
());
// 如果厂车设备 有车牌号,清除车牌号
// 避免出现以下情况:
// 厂车使用登记 -》 使用单位提交 -》 一级填写了厂车车牌号,例如:场内陕AB1234,通过 -》 到二级或者三级,驳回到使用单位
// -》 使用单位重新编辑提交,并且换了另一个设备 —-》 一级审批继续使用车牌号:场内陕AB1234,会出现车牌号已存在
if
(!
ObjectUtils
.
isEmpty
(
carNumber
))
{
LambdaQueryWrapper
<
JgUseRegistrationEq
>
eq
=
new
QueryWrapper
<
JgUseRegistrationEq
>().
lambda
()
.
eq
(
JgUseRegistrationEq:
:
getEquipTransferId
,
jgUseRegistration
.
getSequenceNbr
());
JgUseRegistrationEq
jgUseRegistrationEq
=
jgRelationEquipMapper
.
selectOne
(
eq
);
LambdaUpdateWrapper
<
IdxBizJgRegisterInfo
>
updateWrapper
=
new
UpdateWrapper
<
IdxBizJgRegisterInfo
>().
lambda
()
.
eq
(
IdxBizJgRegisterInfo:
:
getRecord
,
jgUseRegistrationEq
.
getEquId
());
IdxBizJgRegisterInfo
idxBizJgRegisterInfo
=
new
IdxBizJgRegisterInfo
();
idxBizJgRegisterInfo
.
setCarNumber
(
null
);
idxBizJgRegisterInfoMapper
.
update
(
idxBizJgRegisterInfo
,
updateWrapper
);
}
}
else
{
}
else
{
dto
.
setNextExecuteUserCompanyCode
(
jgUseRegistration
.
getReceiveCompanyCode
());
dto
.
setNextExecuteUserCompanyCode
(
jgUseRegistration
.
getReceiveCompanyCode
());
}
}
...
...
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