377d033663c56bc8826f34e278db6488553a7d86.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.SRegBaseZbinfo;
import com.thinkgem.jeesite.modules.sumdata.dao.datatable.SRegBaseZbinfoDao;

/**
 * s_reg_base_zbinfoService
 * @author xuyg
 * @version 2017-03-07
 */
@Service
@Transactional(readOnly = true)
public class SRegBaseZbinfoService extends CrudService<SRegBaseZbinfoDao, SRegBaseZbinfo> {

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