361fc068435778caf386859a30aa48c148d1b45f.svn-base 1.47 KB
/**
 * Copyright © 2015-2018 ODM All rights reserved.
 */
package com.thinkgem.jeesite.modules.reg.service.bus;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.config.Global;
import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusGd;
import com.thinkgem.jeesite.modules.reg.dao.bus.RegBusGdDao;

/**
 * 归档信息维护Service
 * @author xuyg
 * @version 2015-10-09
 */
@Service
@Transactional(readOnly = true)
public class RegBusGdService extends CrudService<RegBusGdDao, RegBusGd> {

	public RegBusGd get(String id) {
		return super.get(id);
	}
	
	public List<RegBusGd> findList(RegBusGd regBusGd) {
		return super.findList(regBusGd);
	}
	
	public List<RegBusGd> findListgdwz(RegBusGd regBusGd) {
		return dao.findListgdwz(regBusGd);
	}
	public List<RegBusGd> findMaxjzh(RegBusGd regBusGd) {
		if("oracle".equals(Global.getDbName())){
			return dao.OraclefindMaxjzh(regBusGd);
		}else{
			return dao.findMaxjzh(regBusGd);
		}
	}
	public Page<RegBusGd> findPage(Page<RegBusGd> page, RegBusGd regBusGd) {
		return super.findPage(page, regBusGd);
	}
	
	@Transactional(readOnly = false)
	public void save(RegBusGd regBusGd) {
		super.save(regBusGd);
	}
	
	@Transactional(readOnly = false)
	public void delete(RegBusGd regBusGd) {
		super.delete(regBusGd);
	}
	
}