0847dac8c0cd4e69c75fc51da6be30e5aa381382.svn-base 1.7 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.SRegBaseZrz;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBusBdcqzsdjxx;
import com.thinkgem.jeesite.modules.sumdata.dao.datatable.SRegBaseZrzDao;

/**
 * s_reg_base_zrzService
 * @author xuyg
 * @version 2017-03-07
 */
@Service
@Transactional(readOnly = true)
public class SRegBaseZrzService extends CrudService<SRegBaseZrzDao, SRegBaseZrz> {

	public SRegBaseZrz get(String id) {
		return super.get(id);
	}
	
	public SRegBaseZrz getqxid(String id) {
		return dao.getqxid(id);
	}
	
	public List<SRegBaseZrz> findList(SRegBaseZrz sRegBaseZrz) {
		return super.findList(sRegBaseZrz);
	}
	
	public Page<SRegBaseZrz> findPage(Page<SRegBaseZrz> page, SRegBaseZrz sRegBaseZrz) {
		return super.findPage(page, sRegBaseZrz);
	}
	
	@Transactional(readOnly = false)
	public void save(SRegBaseZrz sRegBaseZrz) {
		super.save(sRegBaseZrz);
	}
	
	@Transactional(readOnly = false)
	public void delete(SRegBaseZrz sRegBaseZrz) {
		super.delete(sRegBaseZrz);
	}

	@Transactional(readOnly = false)
	public void insert(SRegBaseZrz sRegBaseZrz) {
		sRegBaseZrz.preInsert();
		dao.insert(sRegBaseZrz);
	}
	
	@Transactional(readOnly = false)
	public void update(SRegBaseZrz sRegBaseZrz) {
		sRegBaseZrz.preUpdate();
		dao.update(sRegBaseZrz);
	}
}