a383eebd1e15b1295d05878ea59c7778889256a2.svn-base 1.71 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.SRegBaseH;
import com.thinkgem.jeesite.modules.sumdata.dao.datatable.SRegBaseHDao;

/**
 * s_reg_base_hService
 * @author xuyg
 * @version 2017-03-07
 */
@Service
@Transactional(readOnly = true)
public class SRegBaseHService extends CrudService<SRegBaseHDao, SRegBaseH> {

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