a6531862809dfc26a4062d53c5f6228d6f4b479b.svn-base
3.41 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
/**
* Copyright © 2015-2018 ODM All rights reserved.
*/
package com.thinkgem.jeesite.modules.reg.service.bus;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
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.common.utils.StringUtils;
import com.thinkgem.jeesite.modules.reg.entity.base.RegBasePerson;
import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusBdcqzsdjxx;
import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusDyaq;
import com.thinkgem.jeesite.modules.reg.service.base.RegBasePersonService;
import com.thinkgem.jeesite.modules.reg.dao.bus.RegBusDyaqDao;
/**
* 抵押权信息维护Service
* @author xuyg
* @version 2015-10-15
*/
@Service
@Transactional(readOnly = true)
public class RegBusDyaqService extends CrudService<RegBusDyaqDao, RegBusDyaq> {
@Autowired
private RegBasePersonService regBasePersonService;
public RegBusDyaq get(String id) {
return super.get(id);
}
public RegBusDyaq getByZxywh(String zxdyywh) {
return dao.getByZxywh(zxdyywh);
}
public List<RegBusDyaq> finddyxxs(RegBusDyaq regBusDyaq) {
if("oracle".equals(Global.getDbName())){
return dao.OracleFinddyxxs(regBusDyaq);
}else {
return dao.finddyxxs(regBusDyaq);
}
}
@Transactional(readOnly = false)
public void insert(RegBusDyaq regBusDyaq) {
regBusDyaq.preInsert();
dao.insert(regBusDyaq);
}
@Transactional(readOnly = false)
public void update(RegBusDyaq regBusDyaq) {
regBusDyaq.preUpdate();
dao.update(regBusDyaq);
}
@Transactional(readOnly = false)
public void updatedbze(Map<String, String> map) {
if("oracle".equals(Global.getDbName())){
dao.OracleUpdatedbze(map);
}else {
dao.updatedbze(map);
}
}
@Transactional(readOnly = false)
public void updatezwr(Map<String, String> map) {
dao.updatezwr(map);
}
public List<RegBusDyaq> findFdsjList(RegBusDyaq regBusDyaq) {
return dao.findFdsjList(regBusDyaq);
}
public List<RegBusDyaq> findList(RegBusDyaq regBusDyaq) {
return super.findList(regBusDyaq);
}
public List<RegBusDyaq> findListxf(RegBusDyaq regBusDyaq) {
return super.findListxf(regBusDyaq);
}
public Page<RegBusDyaq> findPage(Page<RegBusDyaq> page, RegBusDyaq regBusDyaq) {
return super.findPage(page, regBusDyaq);
}
@Transactional(readOnly = false)
public void save(RegBusDyaq regBusDyaq) {
//修改人员信息的状态为已引用
if(StringUtils.isNotBlank(regBusDyaq.getZwr())){
RegBasePerson regBasePerson = new RegBasePerson();
regBasePerson.setZjh(regBusDyaq.getZwrzjh());
regBasePerson.setZjzl(regBusDyaq.getZwrzjzl());
List<RegBasePerson> findList = regBasePersonService.findList(regBasePerson);
if(findList.size() > 0){
regBasePerson = findList.get(0);
regBasePerson.setIsaudit("2");
regBasePersonService.save(regBasePerson);
}
}
super.save(regBusDyaq);
}
@Transactional(readOnly = false)
public void delete(RegBusDyaq regBusDyaq) {
super.delete(regBusDyaq);
}
@Transactional(readOnly = false)
public void deletexfdy(RegBusDyaq regBusDyaq) {
super.deletexfdy(regBusDyaq);
}
public RegBusDyaq getQlxxByDyzmh(String string) {
// TODO Auto-generated method stub
return dao.getQlxxByDyzmh(string);
}
}