AppuserService.java
2.89 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
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
package com.fh.service.system.appuser.impl;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.fh.dao.DaoSupport;
import com.fh.entity.Page;
import com.fh.service.system.appuser.AppuserManager;
import com.fh.util.PageData;
@Service("appuserService")
public class AppuserService implements AppuserManager{
@Resource(name = "daoSupport")
private DaoSupport dao;
/**列出某角色下的所有会员
* @param pd
* @return
* @throws Exception
*/
@SuppressWarnings("unchecked")
public List<PageData> listAllAppuserByRorlid(PageData pd) throws Exception {
return (List<PageData>) dao.findForList("AppuserMapper.listAllAppuserByRorlid", pd);
}
/**会员列表
* @param page
* @return
* @throws Exception
*/
@SuppressWarnings("unchecked")
public List<PageData> listPdPageUser(Page page)throws Exception{
return (List<PageData>) dao.findForList("AppuserMapper.userlistPage", page);
}
/**通过用户名获取数据
* @param pd
* @return
* @throws Exception
*/
public PageData findByUsername(PageData pd)throws Exception{
return (PageData)dao.findForObject("AppuserMapper.findByUsername", pd);
}
/**通过邮箱获取数据
* @param pd
* @return
* @throws Exception
*/
public PageData findByEmail(PageData pd)throws Exception{
return (PageData)dao.findForObject("AppuserMapper.findByEmail", pd);
}
/**通过编号获取数据
* @param pd
* @return
* @throws Exception
*/
public PageData findByNumber(PageData pd)throws Exception{
return (PageData)dao.findForObject("AppuserMapper.findByNumber", pd);
}
/**保存用户
* @param pd
* @throws Exception
*/
public void saveU(PageData pd)throws Exception{
dao.save("AppuserMapper.saveU", pd);
}
/**删除用户
* @param pd
* @throws Exception
*/
public void deleteU(PageData pd)throws Exception{
dao.delete("AppuserMapper.deleteU", pd);
}
/**修改用户
* @param pd
* @throws Exception
*/
public void editU(PageData pd)throws Exception{
dao.update("AppuserMapper.editU", pd);
}
/**通过id获取数据
* @param pd
* @return
* @throws Exception
*/
public PageData findByUiId(PageData pd)throws Exception{
return (PageData)dao.findForObject("AppuserMapper.findByUiId", pd);
}
/**全部会员
* @param pd
* @return
* @throws Exception
*/
@SuppressWarnings("unchecked")
public List<PageData> listAllUser(PageData pd)throws Exception{
return (List<PageData>) dao.findForList("AppuserMapper.listAllUser", pd);
}
/**批量删除用户
* @param USER_IDS
* @throws Exception
*/
public void deleteAllU(String[] USER_IDS)throws Exception{
dao.delete("AppuserMapper.deleteAllU", USER_IDS);
}
/**获取总数
* @param pd
* @throws Exception
*/
public PageData getAppUserCount(String value)throws Exception{
return (PageData)dao.findForObject("AppuserMapper.getAppUserCount", value);
}
}