3336d8eddcfd1794bb17ceaad84090164e3e14ab.svn-base 2.11 KB
/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.reg.service.base;

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.base.RegBaseZsglb;
import com.thinkgem.jeesite.modules.reg.dao.base.RegBaseZsglbDao;

/**
 * 证书信息维护Service
 * @author xuyg
 * @version 2015-11-17
 */
@Service
@Transactional(readOnly = true)
public class RegBaseZsglbService extends CrudService<RegBaseZsglbDao, RegBaseZsglb> {

	public RegBaseZsglb get(String id) {
		return super.get(id);
	}
	
	
	public List<String> oldZsbhs() {
		return dao.oldZsbhs();
	}
	
	public List<RegBaseZsglb> findList(RegBaseZsglb regBaseZsglb) {
		return super.findList(regBaseZsglb);
	}
	
	public Page<RegBaseZsglb> findAllPage(Page<RegBaseZsglb> page, RegBaseZsglb regBaseZsglb) {
		regBaseZsglb.setPage(page);
		return page.setList(dao.findAllList(regBaseZsglb));
	}
	
	public List<RegBaseZsglb> findListQc(RegBaseZsglb regBaseZsglb) {
		if("oracle".equals(Global.getDbName())){
			return dao.OraclefindListQc(regBaseZsglb);
		}else{
			return dao.findListQc(regBaseZsglb);
		}
	}
	public List<RegBaseZsglb> findListSave(RegBaseZsglb regBaseZsglb) {
		return dao.findListSave(regBaseZsglb);
	}
	public List<RegBaseZsglb> findListCount(RegBaseZsglb regBaseZsglb) {
		return dao.findListCount(regBaseZsglb);
	}
	
	public Page<RegBaseZsglb> findPage(Page<RegBaseZsglb> page, RegBaseZsglb regBaseZsglb) {
		return super.findPage(page, regBaseZsglb);
	}
	
	@Transactional(readOnly = false)
	public void save(RegBaseZsglb regBaseZsglb) {
		super.save(regBaseZsglb);
	}
	
	@Transactional(readOnly = false)
	public void delete(RegBaseZsglb regBaseZsglb) {
		super.delete(regBaseZsglb);
	}
	
	@Transactional(readOnly = false)
	public void batchDeletes(List<String> delList) {
		dao.batchDeletes(delList);
	}
	
}