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 0ac90176
authored
Oct 10, 2026
by
章家宝
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat(changlog):门店变更日志逻辑修改
1 parent
50ff4801
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
7 deletions
youjia-module-store/src/main/java/com/youjia/store/service/impl/StoreListingServiceImpl.java
youjia-module-store/src/main/java/com/youjia/store/support/StoreListingAssembler.java
youjia-module-store/src/main/java/com/youjia/store/service/impl/StoreListingServiceImpl.java
View file @
0ac9017
...
...
@@ -73,10 +73,8 @@ public class StoreListingServiceImpl implements StoreListingService {
@Override
public
List
<
StoreChangeLog
>
changeHistory
(
Long
listingId
)
{
requireListing
(
listingId
);
return
storeChangeLogMapper
.
selectList
(
new
LambdaQueryWrapper
<
StoreChangeLog
>()
.
eq
(
StoreChangeLog:
:
getListingId
,
listingId
)
.
orderByDesc
(
StoreChangeLog:
:
getVersionNo
));
StoreListing
listing
=
requireListing
(
listingId
);
return
storeListingAssembler
.
listChangeHistory
(
listing
);
}
@Override
...
...
youjia-module-store/src/main/java/com/youjia/store/support/StoreListingAssembler.java
View file @
0ac9017
...
...
@@ -9,6 +9,7 @@ import com.youjia.store.entity.StoreListingItem;
import
com.youjia.store.mapper.StoreApprovalLogMapper
;
import
com.youjia.store.mapper.StoreChangeLogMapper
;
import
com.youjia.store.mapper.StoreListingItemMapper
;
import
com.youjia.store.mapper.StoreListingMapper
;
import
com.youjia.store.vo.StoreApprovalTaskVO
;
import
com.youjia.store.vo.StoreListingDetailVO
;
import
com.youjia.store.vo.StoreListingVO
;
...
...
@@ -33,6 +34,7 @@ public class StoreListingAssembler {
private
final
StoreListingItemMapper
storeListingItemMapper
;
private
final
StoreChangeLogMapper
storeChangeLogMapper
;
private
final
StoreApprovalLogMapper
storeApprovalLogMapper
;
private
final
StoreListingMapper
storeListingMapper
;
public
StoreListingVO
toListVO
(
StoreListing
listing
)
{
StoreListingVO
vo
=
new
StoreListingVO
();
...
...
@@ -118,9 +120,7 @@ public class StoreListingAssembler {
vo
.
setCostLabor
(
listing
.
getCostLabor
());
vo
.
setCostTotal
(
listing
.
getCostTotal
());
vo
.
setItems
(
listItems
(
listing
.
getListingId
()));
vo
.
setChangeHistory
(
storeChangeLogMapper
.
selectList
(
new
LambdaQueryWrapper
<
StoreChangeLog
>()
.
eq
(
StoreChangeLog:
:
getListingId
,
listing
.
getListingId
())
.
orderByDesc
(
StoreChangeLog:
:
getVersionNo
)));
vo
.
setChangeHistory
(
listChangeHistory
(
listing
));
vo
.
setApprovalLogs
(
storeApprovalLogMapper
.
selectList
(
new
LambdaQueryWrapper
<
StoreApprovalLog
>()
.
eq
(
StoreApprovalLog:
:
getListingId
,
listing
.
getListingId
())
.
orderByAsc
(
StoreApprovalLog:
:
getOperateTime
)));
...
...
@@ -132,4 +132,21 @@ public class StoreListingAssembler {
.
eq
(
StoreListingItem:
:
getListingId
,
listingId
)
.
orderByAsc
(
StoreListingItem:
:
getItemId
));
}
public
List
<
StoreChangeLog
>
listChangeHistory
(
StoreListing
listing
)
{
List
<
Long
>
listingIds
=
storeListingMapper
.
selectList
(
new
LambdaQueryWrapper
<
StoreListing
>()
.
eq
(
StoreListing:
:
getMerchantNo
,
listing
.
getMerchantNo
())
.
eq
(
StoreListing:
:
getBusinessScene
,
listing
.
getBusinessScene
())
.
select
(
StoreListing:
:
getListingId
))
.
stream
()
.
map
(
StoreListing:
:
getListingId
)
.
collect
(
Collectors
.
toList
());
if
(
listingIds
.
isEmpty
())
{
return
List
.
of
();
}
return
storeChangeLogMapper
.
selectList
(
new
LambdaQueryWrapper
<
StoreChangeLog
>()
.
in
(
StoreChangeLog:
:
getListingId
,
listingIds
)
.
orderByDesc
(
StoreChangeLog:
:
getEffectiveTime
));
}
}
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