xiangpei
7 天以前 288ce585418550bbf2fd898fc01bc2ff9245f960
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
package cn.lili.modules.store.service;
 
import cn.lili.common.vo.PageVO;
import cn.lili.modules.goods.entity.dos.GoodsSku;
import cn.lili.modules.member.entity.dto.CollectionDTO;
import cn.lili.modules.store.entity.dos.Store;
import cn.lili.modules.store.entity.dto.*;
import cn.lili.modules.store.entity.vos.StoreSearchParams;
import cn.lili.modules.store.entity.vos.StoreVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
 
import java.util.List;
 
/**
 * 店铺业务层
 *
 * @author pikachu
 * @since 2020/11/18 11:45 上午
 */
public interface StoreService extends IService<Store> {
 
    /**
     * 分页条件查询
     * 用于展示店铺列表
     *
     * @param entity
     * @return
     */
    IPage<StoreVO> findByConditionPage(StoreSearchParams entity, PageVO page);
 
    /**
     * 获取当前登录店铺信息
     *
     * @return 店铺信息DO
     */
    StoreVO getStoreDetail();
 
    /**
     * 增加店铺
     * 用于后台添加店铺
     *
     * @param adminStoreApplyDTO 后台添加店铺信息
     * @return 店铺
     */
    Store add(AdminStoreApplyDTO adminStoreApplyDTO);
 
    /**
     * 编辑店铺
     *
     * @param storeEditDTO 店铺修改信息
     * @return 店铺
     */
    Store edit(StoreEditDTO storeEditDTO);
 
    /**
     * 审核店铺
     *
     * @param id     店铺ID
     * @param passed 审核结果
     * @return 操作结果
     */
    boolean audit(String id, Integer passed);
 
    /**
     * 关闭店铺
     *
     * @param id 店铺ID
     * @return 店铺
     */
    boolean disable(String id);
 
    /**
     * 开启店铺
     *
     * @param id 店铺ID
     * @return 操作状态
     */
    boolean enable(String id);
 
    /**
     * 申请店铺第一步
     * 设置店铺公司信息,如果没有店铺新建店铺
     *
     * @param storeCompanyDTO 店铺公司信息
     * @return 店铺
     */
    boolean applyFirstStep(StoreCompanyDTO storeCompanyDTO);
 
    /**
     * 申请店铺第二步
     *
     * @param storeBankDTO 店铺银行信息
     * @return 店铺
     */
    boolean applySecondStep(StoreBankDTO storeBankDTO);
 
    /**
     * 申请店铺第三步
     * 设置店铺信息,经营范围
     *
     * @param storeOtherInfoDTO 店铺其他信息
     * @return 店铺
     */
    boolean applyThirdStep(StoreOtherInfoDTO storeOtherInfoDTO);
 
 
    /**
     * 更新店铺商品数量
     *
     * @param storeId 店铺ID
     * @param num     商品数量
     */
    void updateStoreGoodsNum(String storeId, Long num);
 
    /**
     * 更新店铺收藏数量
     *
     * @param collectionDTO 收藏信息
     */
    void updateStoreCollectionNum(CollectionDTO collectionDTO);
 
    /**
     * 重新生成所有店铺
     */
    void storeToClerk();
 
    /**
     * 店铺获取该会员的访问记录
     * @param memberId 会员Id
     * @return
     */
    List<GoodsSku> getToMemberHistory(String memberId);
}