17eac9f197cd2791790eaaf6fac0242ef3401364.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.SRegBaseZdjbxx;
import com.thinkgem.jeesite.modules.sumdata.dao.datatable.SRegBaseZdjbxxDao;

/**
 * s_reg_base_zdjbxxService
 * @author xuyg
 * @version 2017-03-07
 */
@Service
@Transactional(readOnly = true)
public class SRegBaseZdjbxxService extends CrudService<SRegBaseZdjbxxDao, SRegBaseZdjbxx> {

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