CmPageDocSynService.java 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. package com.caimei.modules.cmpage.service;
  2. import java.util.List;
  3. import org.springframework.beans.factory.annotation.Autowired;
  4. import org.springframework.stereotype.Service;
  5. import org.springframework.transaction.annotation.Transactional;
  6. import com.thinkgem.jeesite.common.persistence.Page;
  7. import com.thinkgem.jeesite.common.service.CrudService;
  8. import com.caimei.modules.cmpage.entity.CmPageDocSyn;
  9. import com.caimei.modules.cmpage.dao.CmPageDocSynDao;
  10. /**
  11. * 项目信息搜索索引Service
  12. * @author zcp
  13. * @version 2017-11-24
  14. */
  15. @Service
  16. @Transactional(readOnly = true)
  17. public class CmPageDocSynService extends CrudService<CmPageDocSynDao, CmPageDocSyn> {
  18. @Autowired
  19. CmPageDocSynDao cmPageDocSynDao;
  20. public CmPageDocSyn get(String id) {
  21. return super.get(id);
  22. }
  23. public List<CmPageDocSyn> findList(CmPageDocSyn cmPageDocSyn) {
  24. return super.findList(cmPageDocSyn);
  25. }
  26. public Page<CmPageDocSyn> findPage(Page<CmPageDocSyn> page, CmPageDocSyn cmPageDocSyn) {
  27. return super.findPage(page, cmPageDocSyn);
  28. }
  29. @Transactional(readOnly = false)
  30. public void save(CmPageDocSyn cmPageDocSyn) {
  31. super.save(cmPageDocSyn);
  32. }
  33. @Transactional(readOnly = false)
  34. public void update(CmPageDocSyn cmPageDocSyn) {
  35. cmPageDocSynDao.update(cmPageDocSyn);
  36. }
  37. @Transactional(readOnly = false)
  38. public void delete(CmPageDocSyn cmPageDocSyn) {
  39. super.delete(cmPageDocSyn);
  40. }
  41. @Transactional(readOnly = false)
  42. public void updateAllIndex() {
  43. cmPageDocSynDao.updateAll();
  44. }
  45. }