FhbuttonService.java 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. package com.zhcs.dt.service.system.fhbutton.impl;
  2. import java.util.List;
  3. import javax.annotation.Resource;
  4. import org.springframework.stereotype.Service;
  5. import com.zhcs.dt.dao.DaoSupport;
  6. import com.zhcs.dt.entity.Page;
  7. import com.zhcs.dt.service.system.fhbutton.FhbuttonManager;
  8. import com.zhcs.dt.util.PageData;
  9. /**
  10. * 说明: 按钮管理
  11. * 创建人:FH Q313596790
  12. * 创建时间:2016-01-15
  13. * @version
  14. */
  15. @Service("fhbuttonService")
  16. public class FhbuttonService implements FhbuttonManager{
  17. @Resource(name = "daoSupport")
  18. private DaoSupport dao;
  19. /**新增
  20. * @param pd
  21. * @throws Exception
  22. */
  23. public void save(PageData pd)throws Exception{
  24. dao.save("FhbuttonMapper.save", pd);
  25. }
  26. /**删除
  27. * @param pd
  28. * @throws Exception
  29. */
  30. public void delete(PageData pd)throws Exception{
  31. dao.delete("FhbuttonMapper.delete", pd);
  32. }
  33. /**修改
  34. * @param pd
  35. * @throws Exception
  36. */
  37. public void edit(PageData pd)throws Exception{
  38. dao.update("FhbuttonMapper.edit", pd);
  39. }
  40. /**列表
  41. * @param page
  42. * @throws Exception
  43. */
  44. @SuppressWarnings("unchecked")
  45. public List<PageData> list(Page page)throws Exception{
  46. return (List<PageData>)dao.findForList("FhbuttonMapper.datalistPage", page);
  47. }
  48. /**列表(全部)
  49. * @param pd
  50. * @throws Exception
  51. */
  52. @SuppressWarnings("unchecked")
  53. public List<PageData> listAll(PageData pd)throws Exception{
  54. return (List<PageData>)dao.findForList("FhbuttonMapper.listAll", pd);
  55. }
  56. /**通过id获取数据
  57. * @param pd
  58. * @throws Exception
  59. */
  60. public PageData findById(PageData pd)throws Exception{
  61. return (PageData)dao.findForObject("FhbuttonMapper.findById", pd);
  62. }
  63. /**批量删除
  64. * @param ArrayDATA_IDS
  65. * @throws Exception
  66. */
  67. public void deleteAll(String[] ArrayDATA_IDS)throws Exception{
  68. dao.delete("FhbuttonMapper.deleteAll", ArrayDATA_IDS);
  69. }
  70. }