Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
YouJia
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8b548f87
authored
Oct 10, 2026
by
章家宝
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixbug(store):门店变更次数
1 parent
c8722210
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
youjia-module-store/src/main/java/com/youjia/store/service/impl/StoreApprovalServiceImpl.java
youjia-module-store/src/main/java/com/youjia/store/service/impl/StoreApprovalServiceImpl.java
View file @
8b548f8
...
@@ -132,6 +132,12 @@ public class StoreApprovalServiceImpl implements StoreApprovalService {
...
@@ -132,6 +132,12 @@ public class StoreApprovalServiceImpl implements StoreApprovalService {
listing
.
getListingId
(),
currentLevel
,
nextLevel
);
listing
.
getListingId
(),
currentLevel
,
nextLevel
);
}
else
{
}
else
{
StoreListing
oldEffective
=
findEffective
(
listing
.
getMerchantNo
(),
listing
.
getBusinessScene
());
StoreListing
oldEffective
=
findEffective
(
listing
.
getMerchantNo
(),
listing
.
getBusinessScene
());
int
changeCount
=
storeListingMapper
.
selectCount
(
new
LambdaQueryWrapper
<
StoreListing
>()
.
eq
(
StoreListing:
:
getMerchantNo
,
listing
.
getMerchantNo
())
.
eq
(
StoreListing:
:
getBusinessScene
,
listing
.
getBusinessScene
())
.
eq
(
StoreListing:
:
getStatus
,
StoreStatusEnum
.
APPROVED
.
getCode
()))
.
intValue
()
+
1
;
StoreListing
update
=
new
StoreListing
();
StoreListing
update
=
new
StoreListing
();
update
.
setListingId
(
listing
.
getListingId
());
update
.
setListingId
(
listing
.
getListingId
());
update
.
setVersion
(
listing
.
getVersion
());
update
.
setVersion
(
listing
.
getVersion
());
...
@@ -141,7 +147,7 @@ public class StoreApprovalServiceImpl implements StoreApprovalService {
...
@@ -141,7 +147,7 @@ public class StoreApprovalServiceImpl implements StoreApprovalService {
update
.
setApproveTime
(
now
);
update
.
setApproveTime
(
now
);
update
.
setEffectiveTime
(
now
);
update
.
setEffectiveTime
(
now
);
update
.
setIsEffective
(
1
);
update
.
setIsEffective
(
1
);
update
.
setChangeCount
(
(
listing
.
getChangeCount
()
==
null
?
0
:
listing
.
getChangeCount
())
+
1
);
update
.
setChangeCount
(
changeCount
);
if
(
storeListingMapper
.
updateById
(
update
)
!=
1
)
{
if
(
storeListingMapper
.
updateById
(
update
)
!=
1
)
{
throw
new
BusinessException
(
ResultCode
.
OPERATION_NOT_ALLOWED
,
"记录已被他人处置,请刷新后重试"
);
throw
new
BusinessException
(
ResultCode
.
OPERATION_NOT_ALLOWED
,
"记录已被他人处置,请刷新后重试"
);
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment