From 982313135d1c239fe3b20e4c5664781f92d40aca Mon Sep 17 00:00:00 2001 From: xin <1099200748@qq.com> Date: Thu, 31 Jul 2025 17:17:39 +0800 Subject: [PATCH] Merge branch 'master' into xin --- oying-system/src/main/java/com/oying/modules/pc/store/service/StoreService.java | 50 ++++++++++++++++++++++++++++++++++---------------- 1 files changed, 34 insertions(+), 16 deletions(-) diff --git a/oying-system/src/main/java/com/oying/modules/pc/store/service/StoreService.java b/oying-system/src/main/java/com/oying/modules/pc/store/service/StoreService.java index 8bdcc52..f5443f1 100644 --- a/oying-system/src/main/java/com/oying/modules/pc/store/service/StoreService.java +++ b/oying-system/src/main/java/com/oying/modules/pc/store/service/StoreService.java @@ -2,15 +2,15 @@ import com.baomidou.mybatisplus.extension.service.IService; import com.oying.modules.pc.store.domain.Store; -import com.oying.modules.pc.store.domain.StoreCategory; -import com.oying.modules.pc.store.domain.dto.StoreBusinessHoursRequest; -import com.oying.modules.pc.store.domain.dto.StoreLocationUpdateRequest; +import com.oying.modules.pc.store.domain.dto.StoreCreateRequest; import com.oying.modules.pc.store.domain.dto.StoreQueryCriteria; +import com.oying.modules.pc.store.domain.dto.StoreUpdateRequest; import com.oying.utils.PageResult; import java.math.BigDecimal; import java.time.LocalTime; import java.util.List; +import java.util.Set; /** * 店铺基础信息Service接口 @@ -24,33 +24,51 @@ List<Store> queryAll(StoreQueryCriteria criteria); + List<Long> queryStoreIds(StoreQueryCriteria criteria); + Store getMerchantStore(Long merchantId); - boolean create(Store store); + List<Store> getStoresByIds(Set<Long> ids); - boolean updateLogo(Long storeId, String logo); + List<Store> getUserStores(Long userId); - boolean updateName(Long storeId, String storeName); + Store getOrThrow(Long storeId, Long version); - boolean updateDescription(Long storeId, String description); + void create(Store resources); - boolean updateContactPhone(Long storeId, String contactPhone); + Store create(StoreCreateRequest request); - boolean updateAddress(Long storeId, String address); + boolean update(Store resources, boolean isDirectUpdate); - boolean updateLocation(Long storeId, Double longitude, Double latitude); + boolean update(StoreUpdateRequest request); - boolean updateRadius(Long storeId, Integer radius); + boolean updateLogo(Long storeId, Long logoImageId, Long version); - boolean updatePlatformCategory(Long storeId, Long platformCategory); + boolean updateName(Long storeId, String storeName, Long version); - boolean updateBusinessHours(Long storeId, LocalTime openTime, LocalTime endTime); + boolean updateDescription(Long storeId, String description, Long version); - boolean updateDeliveryMinimum(Long storeId, BigDecimal deliveryMinimum); + boolean updateContactPhone(Long storeId, String contactPhone, Long version); - boolean updateDeliveryFee(Long storeId, BigDecimal deliveryFee); + boolean updateAddress(Long storeId, String address, Long version); - boolean updateStatus(Long storeId, Integer status); + boolean updateLocation(Long storeId, Double longitude, Double latitude, Long version); + + boolean updateRadius(Long storeId, Integer radius, Long version); + + boolean updatePlatformCategory(Long storeId, Long platformCategory, Long version); + + boolean updateBusinessHours(Long storeId, LocalTime openTime, LocalTime endTime, Long version); + + boolean updateDeliveryMinimum(Long storeId, BigDecimal deliveryMinimum, Long version); + + boolean updateDeliveryFee(Long storeId, BigDecimal deliveryFee, Long version); + + boolean updateStatus(Long storeId, Integer status, Long version); boolean existsByIdAndMerchantId(Long storeId, Long merchantId); + + boolean existsStoreName(String storeName); + + boolean bindUser(Long store); } -- Gitblit v1.9.3