ChannelMapper.java
2.38 KB
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
package com.sincere.wechatbusiness.mapper;
import com.sincere.wechatbusiness.model.*;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.List;
public interface ChannelMapper {
List<Channel> getListByTemplate(int templateId);
List<Channel> getList(Channel channel);
int getListCount(Channel channel);
Channel getDetail(int id);
int insert(Channel channel);
int update(Channel channel);
int deleteChannel(int id);
List<Area> getProvince();
List<Area> getCity(String areaCode);
List<Area> getArea(String areaCode);
List<Template> getTemplateList();
Manager getManagerDetail(String mobile);
int insertLog(Log log);
int getRegisterCount(@Param("channelId") int channelId, @Param("agentId") int agentId, @Param("type") int type);
int getOrderCount(@Param("channelId") int channelId, @Param("agentId") int agentId, @Param("type") int type,@Param("state") int state);
int getPageViewCount(@Param("channelId") int channelId, @Param("agentId") int agentId, @Param("type") int type);
List<Users> getAgentRegisterList(@Param("channelId") int channelId,@Param("type") int type,@Param("state") int state);
List<Users> getAgentPageViewList(@Param("channelId") int channelId,@Param("agentId") int agentId,@Param("type") int type,@Param("state") int state);
List<Users> getAgentOrderList(@Param("channelId") int channelId,@Param("type") int type,@Param("state") int state);
Users getChannelRegister(@Param("channelId") int channelId,@Param("type") int type,@Param("state") int state);
Users getChannelPageView(@Param("channelId") int channelId,@Param("type") int type,@Param("state") int state);
Users getChannelOrder(@Param("channelId") int channelId,@Param("type") int type,@Param("state") int state);
List<DiscountPackage> getOrderList(@Param("channelId") int channelId,@Param("agentId") int agentId,@Param("type") int type,@Param("state") int state);
List<Users> getRegisterDetailList(@Param("channelId") int channelId,@Param("agentId") int agentId,@Param("type") int type);
List<DiscountPackage> getOrderDetailList(@Param("channelId") int channelId,@Param("agentId") int agentId,@Param("type") int type,@Param("productId") int productId,@Param("state") int state);
int insertAccessToken(AccessToken accessToken);
AccessToken getAccessToken();
}