160cf65b9ba9d964aa4c5e46e7bc8bc32f998e72.svn-base 1.66 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.SRegBaseXm;
import com.thinkgem.jeesite.modules.sumdata.dao.datatable.SRegBaseXmDao;

/**
 * s_reg_base_xmService
 * @author xuyg
 * @version 2017-03-07
 */
@Service
@Transactional(readOnly = true)
public class SRegBaseXmService extends CrudService<SRegBaseXmDao, SRegBaseXm> {

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