34b58f8d1d7f104a33b3bb777d9bfa48fe50bab4.svn-base 1.78 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.SRegBaseZdbhqk;
import com.thinkgem.jeesite.modules.sumdata.dao.datatable.SRegBaseZdbhqkDao;

/**
 * s_reg_base_zdbhqkService
 * @author xuyg
 * @version 2017-03-07
 */
@Service
@Transactional(readOnly = true)
public class SRegBaseZdbhqkService extends CrudService<SRegBaseZdbhqkDao, SRegBaseZdbhqk> {

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