PageNameContentService.java 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package com.caimei.modules.cmpage.service;
  2. import com.caimei.modules.bulkpurchase.entity.PurchaseProduct;
  3. import com.caimei.modules.cmpage.dao.CmPageNameContentDao;
  4. import com.caimei.modules.cmpage.entity.PageNameContent ;
  5. import com.thinkgem.jeesite.common.service.CrudService;
  6. import com.thinkgem.jeesite.common.utils.StringUtils;
  7. import org.springframework.beans.factory.annotation.Autowired;
  8. import org.springframework.stereotype.Service;
  9. import org.springframework.transaction.annotation.Transactional;
  10. import java.util.List;
  11. /**
  12. * 图片及链接管理Service
  13. * @author LiJun
  14. * @version 2017-05-03
  15. */
  16. @Service
  17. @Transactional(readOnly = true)
  18. public class PageNameContentService extends CrudService<CmPageNameContentDao, PageNameContent> {
  19. @Autowired
  20. private CmPageNameContentDao cmPageNameContentDao;
  21. public PageNameContent get(String id) {
  22. return super.get(id);
  23. }
  24. @Transactional(readOnly = false)
  25. public void save(PageNameContent pageNameContent) {
  26. super.save(pageNameContent);
  27. }
  28. @Transactional(readOnly = false)
  29. public List<PageNameContent> findPageNameContentByPageid(String id) {
  30. return cmPageNameContentDao.findPageNameContentByPageid(id);
  31. }
  32. }