多店铺需求

This commit is contained in:
Tankaikai
2025-04-09 15:05:08 +08:00
parent 26e87dc7bb
commit 3a5f65e8ec

View File

@@ -113,6 +113,9 @@ public class ShopInfoServiceImpl extends ServiceImpl<ShopInfoMapper, ShopInfo> i
if (status != null) {
queryWrapper.eq(ShopInfo::getStatus, status);
}
if (isHeadShop != null) {
queryWrapper.eq(ShopInfo::getIsHeadShop, isHeadShop);
}
List<ShopInfo> shopAllList = getMapper().selectListByQuery(query().select(ShopInfo::getId, ShopInfo::getShopName));
Map<Long, String> shopKv = shopAllList.stream().collect(Collectors.toMap(ShopInfo::getId, ShopInfo::getShopName));
queryWrapper.orderBy(ShopInfo::getCreateTime, false);