0c658f6544b9ca648e68ed9d395110c9af8a01ea.svn-base 1.85 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.SRegBasePerson;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBusQlr;
import com.thinkgem.jeesite.modules.sumdata.dao.datatable.SRegBasePersonDao;

/**
 * s_reg_base_personService
 * @author xuyg
 * @version 2017-03-07
 */
@Service
@Transactional(readOnly = true)
public class SRegBasePersonService extends CrudService<SRegBasePersonDao, SRegBasePerson> {

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