| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- package com.zhcs.dt.service.system.appuser.impl;
- import java.util.List;
- import javax.annotation.Resource;
- import org.springframework.stereotype.Service;
- import com.zhcs.dt.dao.DaoSupport;
- import com.zhcs.dt.entity.Page;
- import com.zhcs.dt.service.system.appuser.AppuserManager;
- import com.zhcs.dt.util.PageData;
- /**类名称:AppuserService
- * @author FH Q313596790
- * 修改时间:2015年11月6日
- */
- @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);
- }
-
- }
|