a0099bef31b53b0380aad346b2b90bdcdae5769a.svn-base 1.69 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.SRegBusYgdj;
import com.thinkgem.jeesite.modules.sumdata.dao.datatable.SRegBusYgdjDao;

/**
 * s_reg_bus_ygdjService
 * @author xuyg
 * @version 2017-03-08
 */
@Service
@Transactional(readOnly = true)
public class SRegBusYgdjService extends CrudService<SRegBusYgdjDao, SRegBusYgdj> {

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