CmBindService.java 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. package com.caimei.modules.user.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.user.entity.CmBind;
  9. import com.caimei.modules.user.dao.CmBindDao;
  10. /**
  11. * 微信绑定用户Service
  12. * @author ZCP
  13. * @version 2017-10-19
  14. */
  15. @Service
  16. @Transactional(readOnly = true)
  17. public class CmBindService extends CrudService<CmBindDao, CmBind> {
  18. @Autowired
  19. private CmBindDao cmBindDao;
  20. public CmBind get(String id) {
  21. return super.get(id);
  22. }
  23. public List<CmBind> findList(CmBind cmBind) {
  24. return super.findList(cmBind);
  25. }
  26. public List<CmBind> findCmbindByUserId(Integer userId) {
  27. return cmBindDao.findCmbindByUserId(userId);
  28. }
  29. public Page<CmBind> findPage(Page<CmBind> page, CmBind cmBind) {
  30. return super.findPage(page, cmBind);
  31. }
  32. @Transactional(readOnly = false)
  33. public void save(CmBind cmBind) {
  34. super.save(cmBind);
  35. }
  36. @Transactional(readOnly = false)
  37. public void delete(CmBind cmBind) {
  38. super.delete(cmBind);
  39. }
  40. @Transactional(readOnly = false)
  41. public void update(CmBind cmBind) {
  42. cmBindDao.update(cmBind);
  43. }
  44. }