1b4823b9df4d11850f10cde37212e8252b988bfb.svn-base 1.75 KB
/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.sumdata.service.datatable;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBaseC;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBaseHbhqk;
import com.thinkgem.jeesite.modules.sumdata.dao.datatable.SRegBaseHbhqkDao;

/**
 * s_reg_base_hbhqkService
 * @author xuyg
 * @version 2017-03-07
 */
@Service
@Transactional(readOnly = true)
public class SRegBaseHbhqkService extends CrudService<SRegBaseHbhqkDao, SRegBaseHbhqk> {

	public SRegBaseHbhqk get(String id) {
		return super.get(id);
	}
	
	public SRegBaseHbhqk getqxid(String id) {
		return dao.getqxid(id);
	}
	
	public List<SRegBaseHbhqk> findList(SRegBaseHbhqk sRegBaseHbhqk) {
		return super.findList(sRegBaseHbhqk);
	}
	
	public Page<SRegBaseHbhqk> findPage(Page<SRegBaseHbhqk> page, SRegBaseHbhqk sRegBaseHbhqk) {
		return super.findPage(page, sRegBaseHbhqk);
	}
	
	@Transactional(readOnly = false)
	public void save(SRegBaseHbhqk sRegBaseHbhqk) {
		super.save(sRegBaseHbhqk);
	}
	
	@Transactional(readOnly = false)
	public void delete(SRegBaseHbhqk sRegBaseHbhqk) {
		super.delete(sRegBaseHbhqk);
	}
	
	@Transactional(readOnly = false)
	public void insert(SRegBaseHbhqk sRegBaseHbhqk) {
		sRegBaseHbhqk.preInsert();
		dao.insert(sRegBaseHbhqk);
	}
	
	@Transactional(readOnly = false)
	public void update(SRegBaseHbhqk sRegBaseHbhqk) {
		sRegBaseHbhqk.preUpdate();
		dao.update(sRegBaseHbhqk);
	}
}