3336d8eddcfd1794bb17ceaad84090164e3e14ab.svn-base
2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/**
* Copyright © 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);
}
}