From 5da53ab90d6152de28b8475cd9ccaa00abba45e8 Mon Sep 17 00:00:00 2001 From: zepengdev <lzpsmith@outlook.com> Date: Thu, 26 Jun 2025 22:45:18 +0800 Subject: [PATCH] fix: 优化店铺添加,预检查店铺名称,返回添加的店铺信息 --- oying-system/src/main/java/com/oying/modules/pc/store/service/StoreService.java | 37 +++++++++++++++++++++---------------- 1 files changed, 21 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..f1c3e56 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,10 +2,9 @@ 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; @@ -26,31 +25,37 @@ Store getMerchantStore(Long merchantId); - boolean create(Store store); + List<Store> queryUserStores(Long userId); - boolean updateLogo(Long storeId, String logo); + Store create(StoreCreateRequest request); - boolean updateName(Long storeId, String storeName); + boolean update(StoreUpdateRequest request); - boolean updateDescription(Long storeId, String description); + boolean updateLogo(Long storeId, String logo, Long version); - boolean updateContactPhone(Long storeId, String contactPhone); + boolean updateName(Long storeId, String storeName, Long version); - boolean updateAddress(Long storeId, String address); + boolean updateDescription(Long storeId, String description, Long version); - boolean updateLocation(Long storeId, Double longitude, Double latitude); + boolean updateContactPhone(Long storeId, String contactPhone, Long version); - boolean updateRadius(Long storeId, Integer radius); + boolean updateAddress(Long storeId, String address, Long version); - boolean updatePlatformCategory(Long storeId, Long platformCategory); + boolean updateLocation(Long storeId, Double longitude, Double latitude, Long version); - boolean updateBusinessHours(Long storeId, LocalTime openTime, LocalTime endTime); + boolean updateRadius(Long storeId, Integer radius, Long version); - boolean updateDeliveryMinimum(Long storeId, BigDecimal deliveryMinimum); + boolean updatePlatformCategory(Long storeId, Long platformCategory, Long version); - boolean updateDeliveryFee(Long storeId, BigDecimal deliveryFee); + boolean updateBusinessHours(Long storeId, LocalTime openTime, LocalTime endTime, Long version); - boolean updateStatus(Long storeId, Integer status); + 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); } -- Gitblit v1.9.3