From 1855d254ec5b871eb1098f16f734d0d58a003810 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=9A=93=E9=9B=AF?= <18868469283@qq.com> Date: Sun, 13 Jan 2019 15:37:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mall/service/SmsCoupnHistoryService.java | 18 +++++++ .../sock/mall/service/SmsCouponService.java | 41 ++++++++++++++++ ...sFlashPromotionProductRelationService.java | 49 +++++++++++++++++++ .../service/SmsFlashPromotionService.java | 40 +++++++++++++++ .../SmsFlashPromotionSessionService.java | 46 +++++++++++++++++ .../mall/service/SmsHomeAdvertiseService.java | 40 +++++++++++++++ .../mall/service/SmsHomeBrandService.java | 37 ++++++++++++++ .../service/SmsHomeNewProductService.java | 37 ++++++++++++++ .../SmsHomeRecommendProductService.java | 37 ++++++++++++++ .../SmsHomeRecommendSubjectService.java | 37 ++++++++++++++ 10 files changed, 382 insertions(+) create mode 100644 代码库/mall-admin/src/main/java/com/sock/mall/service/SmsCoupnHistoryService.java create mode 100644 代码库/mall-admin/src/main/java/com/sock/mall/service/SmsCouponService.java create mode 100644 代码库/mall-admin/src/main/java/com/sock/mall/service/SmsFlashPromotionProductRelationService.java create mode 100644 代码库/mall-admin/src/main/java/com/sock/mall/service/SmsFlashPromotionService.java create mode 100644 代码库/mall-admin/src/main/java/com/sock/mall/service/SmsFlashPromotionSessionService.java create mode 100644 代码库/mall-admin/src/main/java/com/sock/mall/service/SmsHomeAdvertiseService.java create mode 100644 代码库/mall-admin/src/main/java/com/sock/mall/service/SmsHomeBrandService.java create mode 100644 代码库/mall-admin/src/main/java/com/sock/mall/service/SmsHomeNewProductService.java create mode 100644 代码库/mall-admin/src/main/java/com/sock/mall/service/SmsHomeRecommendProductService.java create mode 100644 代码库/mall-admin/src/main/java/com/sock/mall/service/SmsHomeRecommendSubjectService.java diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsCoupnHistoryService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsCoupnHistoryService.java new file mode 100644 index 0000000..5304a7c --- /dev/null +++ b/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsCoupnHistoryService.java @@ -0,0 +1,18 @@ +package com.macro.mall.service; + +import com.macro.mall.model.SmsCouponHistory; + +import java.util.List; + +/** + * Żȯȡ¼Service + */ +public interface SmsCouponHistoryService { + /** + * ҳѯŻȯȡ¼ + * @param couponId Żȯid + * @param useStatus ʹ״̬ + * @param orderSn ʹö + */ + List list(Long couponId, Integer useStatus, String orderSn, Integer pageSize, Integer pageNum); +} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsCouponService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsCouponService.java new file mode 100644 index 0000000..fbac6a7 --- /dev/null +++ b/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsCouponService.java @@ -0,0 +1,41 @@ +package com.macro.mall.service; + +import com.macro.mall.dto.SmsCouponParam; +import com.macro.mall.model.SmsCoupon; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; + +/** + * ŻȯService + */ +public interface SmsCouponService { + /** + * Żȯ + */ + @Transactional + int create(SmsCouponParam couponParam); + + /** + * ŻȯidɾŻȯ + */ + @Transactional + int delete(Long id); + + /** + * ŻȯidŻȯϢ + */ + @Transactional + int update(Long id, SmsCouponParam couponParam); + + /** + * ҳȡŻȯб + */ + List list(String name, Integer type, Integer pageSize, Integer pageNum); + + /** + * ȡŻȯ + * @param id Żȯid + */ + SmsCouponParam getItem(Long id); +} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsFlashPromotionProductRelationService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsFlashPromotionProductRelationService.java new file mode 100644 index 0000000..67928bd --- /dev/null +++ b/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsFlashPromotionProductRelationService.java @@ -0,0 +1,49 @@ +package com.macro.mall.service; + +import com.macro.mall.dto.SmsFlashPromotionProduct; +import com.macro.mall.model.SmsFlashPromotionProductRelation; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; + +/** + * ʱƷService + */ +public interface SmsFlashPromotionProductRelationService { + /** + * ӹ + */ + @Transactional + int create(List relationList); + + /** + * ޸ĹϢ + */ + int update(Long id, SmsFlashPromotionProductRelation relation); + + /** + * ɾ + */ + int delete(Long id); + + /** + * ȡ + */ + SmsFlashPromotionProductRelation getItem(Long id); + + /** + * ҳѯƷϢ + * + * @param flashPromotionId ʱid + * @param flashPromotionSessionId ʱid + */ + List list(Long flashPromotionId, Long flashPromotionSessionId, Integer pageSize, Integer pageNum); + + /** + * ݻͳidȡƷϵ + * @param flashPromotionId + * @param flashPromotionSessionId + * @return + */ + int getCount(Long flashPromotionId,Long flashPromotionSessionId); +} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsFlashPromotionService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsFlashPromotionService.java new file mode 100644 index 0000000..8ba8558 --- /dev/null +++ b/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsFlashPromotionService.java @@ -0,0 +1,40 @@ +package com.macro.mall.service; + +import com.macro.mall.model.SmsFlashPromotion; + +import java.util.List; + +/** + * ʱService + */ +public interface SmsFlashPromotionService { + /** + * ӻ + */ + int create(SmsFlashPromotion flashPromotion); + + /** + * ޸ָ + */ + int update(Long id, SmsFlashPromotion flashPromotion); + + /** + * ɾ + */ + int delete(Long id); + + /** + * ޸״̬ + */ + int updateStatus(Long id, Integer status); + + /** + * ȡϸϢ + */ + SmsFlashPromotion getItem(Long id); + + /** + * ҳѯ + */ + List list(String keyword, Integer pageSize, Integer pageNum); +} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsFlashPromotionSessionService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsFlashPromotionSessionService.java new file mode 100644 index 0000000..72e963f --- /dev/null +++ b/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsFlashPromotionSessionService.java @@ -0,0 +1,46 @@ +package com.macro.mall.service; + +import com.macro.mall.dto.SmsFlashPromotionSessionDetail; +import com.macro.mall.model.SmsFlashPromotionSession; + +import java.util.List; + +/** + * ʱιService + */ +public interface SmsFlashPromotionSessionService { + /** + * ӳ + */ + int create(SmsFlashPromotionSession promotionSession); + + /** + * ޸ij + */ + int update(Long id, SmsFlashPromotionSession promotionSession); + + /** + * ޸ij״̬ + */ + int updateStatus(Long id, Integer status); + + /** + * ɾ + */ + int delete(Long id); + + /** + * ȡ + */ + SmsFlashPromotionSession getItem(Long id); + + /** + * ״̬ȡб + */ + List list(); + + /** + * ȡȫѡμ + */ + List selectList(Long flashPromotionId); +} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsHomeAdvertiseService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsHomeAdvertiseService.java new file mode 100644 index 0000000..75651c7 --- /dev/null +++ b/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsHomeAdvertiseService.java @@ -0,0 +1,40 @@ +package com.macro.mall.service; + +import com.macro.mall.model.SmsHomeAdvertise; + +import java.util.List; + +/** + * ҳService + */ +public interface SmsHomeAdvertiseService { + /** + * ӹ + */ + int create(SmsHomeAdvertise advertise); + + /** + * ɾ + */ + int delete(List ids); + + /** + * ޸ϡ״̬ + */ + int updateStatus(Long id, Integer status); + + /** + * ȡ + */ + SmsHomeAdvertise getItem(Long id); + + /** + * ¹ + */ + int update(Long id, SmsHomeAdvertise advertise); + + /** + * ҳѯ + */ + List list(String name, Integer type, String endTime, Integer pageSize, Integer pageNum); +} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsHomeBrandService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsHomeBrandService.java new file mode 100644 index 0000000..86d6abd --- /dev/null +++ b/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsHomeBrandService.java @@ -0,0 +1,37 @@ +package com.macro.mall.service; + +import com.macro.mall.model.SmsHomeBrand; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; + +/** + * ҳƷƹService + */ +public interface SmsHomeBrandService { + /** + * ҳƷƼ + */ + @Transactional + int create(List homeBrandList); + + /** + * ޸ƷƼ + */ + int updateSort(Long id, Integer sort); + + /** + * ɾƷƼ + */ + int delete(List ids); + + /** + * Ƽ״̬ + */ + int updateRecommendStatus(List ids, Integer recommendStatus); + + /** + * ҳѯƷƼ + */ + List list(String brandName, Integer recommendStatus, Integer pageSize, Integer pageNum); +} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsHomeNewProductService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsHomeNewProductService.java new file mode 100644 index 0000000..cc1c4b5 --- /dev/null +++ b/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsHomeNewProductService.java @@ -0,0 +1,37 @@ +package com.macro.mall.service; + +import com.macro.mall.model.SmsHomeNewProduct; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; + +/** + * ҳƷService + */ +public interface SmsHomeNewProductService { + /** + * ҳƼ + */ + @Transactional + int create(List homeNewProductList); + + /** + * ޸Ƽ + */ + int updateSort(Long id, Integer sort); + + /** + * ɾƼ + */ + int delete(List ids); + + /** + * Ƽ״̬ + */ + int updateRecommendStatus(List ids, Integer recommendStatus); + + /** + * ҳѯƼ + */ + List list(String productName, Integer recommendStatus, Integer pageSize, Integer pageNum); +} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsHomeRecommendProductService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsHomeRecommendProductService.java new file mode 100644 index 0000000..bf73497 --- /dev/null +++ b/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsHomeRecommendProductService.java @@ -0,0 +1,37 @@ +package com.macro.mall.service; + +import com.macro.mall.model.SmsHomeRecommendProduct; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; + +/** + * ҳƼService + */ +public interface SmsHomeRecommendProductService { + /** + * ҳƼ + */ + @Transactional + int create(List homeRecommendProductList); + + /** + * ޸Ƽ + */ + int updateSort(Long id, Integer sort); + + /** + * ɾƼ + */ + int delete(List ids); + + /** + * Ƽ״̬ + */ + int updateRecommendStatus(List ids, Integer recommendStatus); + + /** + * ҳѯƼ + */ + List list(String productName, Integer recommendStatus, Integer pageSize, Integer pageNum); +} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsHomeRecommendSubjectService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsHomeRecommendSubjectService.java new file mode 100644 index 0000000..87fd058 --- /dev/null +++ b/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsHomeRecommendSubjectService.java @@ -0,0 +1,37 @@ +package com.macro.mall.service; + +import com.macro.mall.model.SmsHomeRecommendSubject; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; + +/** + * ҳרƼService + */ +public interface SmsHomeRecommendSubjectService { + /** + * ҳƼ + */ + @Transactional + int create(List recommendSubjectList); + + /** + * ޸Ƽ + */ + int updateSort(Long id, Integer sort); + + /** + * ɾƼ + */ + int delete(List ids); + + /** + * Ƽ״̬ + */ + int updateRecommendStatus(List ids, Integer recommendStatus); + + /** + * ҳѯƼ + */ + List list(String subjectName, Integer recommendStatus, Integer pageSize, Integer pageNum); +}