799cb0a6d488c38ff6baa3316b406c4784276431.svn-base 1.72 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.SRegBaseChxx;
import com.thinkgem.jeesite.modules.sumdata.dao.datatable.SRegBaseChxxDao;

/**
 * s_reg_base_chxxService
 * @author xuyg
 * @version 2017-03-07
 */
@Service
@Transactional(readOnly = true)
public class SRegBaseChxxService extends CrudService<SRegBaseChxxDao, SRegBaseChxx> {

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