活动 传参 shopId

This commit is contained in:
2025-02-28 16:42:56 +08:00
parent 7aa726d0a0
commit 0c8a998006
4 changed files with 9 additions and 7 deletions

View File

@@ -49,9 +49,9 @@ public class ShopActivateServiceImpl extends ServiceImpl<ShopActivateMapper, Sho
private ShopUserService shopUserService;
@Override
public List<ShopActivateDTO> getList() {
public List<ShopActivateDTO> getList(Long shopId) {
List<ShopActivateDTO> activateDtoS = queryChain().select()
.eq(ShopActivate::getShopId, StpKit.USER.getShopId())
.eq(ShopActivate::getShopId, shopId == null ? StpKit.USER.getShopId() : shopId)
.orderBy(ShopActivate::getAmount, true)
.listAs(ShopActivateDTO.class);
for (ShopActivateDTO activateDTO : activateDtoS) {