1d0abc432603b9e5dbd03ae2fba3e5c162e55d50.svn-base 1.56 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.dao.datatable.SRegBaseCDao;

/**
 * s_reg_base_cService
 * @author xuyg
 * @version 2017-03-07
 */
@Service
@Transactional(readOnly = true)
public class SRegBaseCService extends CrudService<SRegBaseCDao, SRegBaseC> {

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