SifadictServiceImpl.java
3 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
package com.lhcredit.project.business.sifadict.service;
import java.util.List;
import java.util.ArrayList;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lhcredit.project.business.sifadict.mapper.SifadictMapper;
import com.lhcredit.project.business.sifadict.domain.Sifadict;
import com.lhcredit.project.business.sifadict.service.ISifadictService;
import com.lhcredit.common.utils.text.Convert;
/**
* 司法金额字典 服务层实现
*
* @author lhcredit
* @date 2024-05-14
*/
@Service
public class SifadictServiceImpl implements ISifadictService {
@Autowired
private SifadictMapper sifadictMapper;
/**
* 查询司法金额字典信息
*
* @param id 司法金额字典ID
* @return 司法金额字典信息
*/
@Override
public Sifadict selectSifadictById(Integer id) {
return sifadictMapper.selectSifadictById(id);
}
/**
* 查询司法金额字典列表
*
* @param sifadict 司法金额字典信息
* @return 司法金额字典集合
*/
@Override
public List<Sifadict> selectSifadictList(Sifadict sifadict) {
return sifadictMapper.selectSifadictList(sifadict);
}
/**
* 字段转换
* @param sifadict 司法金额字典信息
* @return 司法金额字典信息
*/
@Override
public Sifadict changeModel(Sifadict sifadict) {
// //这里写各字段转换逻辑
// if(sifadict!=null){
// if(StringUtils.isNotEmpty(sifadict.getXXX())){
// sifadict.setXXX(sifadict.getXXX());
// }
// }
return sifadict;
}
/**
* 列表转换
*
* @param sifadictList 司法金额字典集合
* @return 司法金额字典集合
*/
@Override
public List<Sifadict> changeModel(List<Sifadict> sifadictList) {
List<Sifadict> result = new ArrayList<Sifadict>();
if (sifadictList.size() > 0) {
for (Sifadict sifadict:sifadictList){
result.add(changeModel(sifadict));
}
}
return result;
}
/**
* 新增司法金额字典
*
* @param sifadict 司法金额字典信息
* @return 结果
*/
@Override
public int insertSifadict(Sifadict sifadict) {
return sifadictMapper.insertSifadict(sifadict);
}
/**
* 修改司法金额字典
*
* @param sifadict 司法金额字典信息
* @return 结果
*/
@Override
public int updateSifadict(Sifadict sifadict) {
return sifadictMapper.updateSifadict(sifadict);
}
/**
* 删除司法金额字典对象
*
* @param ids 需要删除的数据ID
* @return 结果
*/
@Override
public int deleteSifadictByIds(String ids) {
return sifadictMapper.deleteSifadictByIds(Convert.toStrArray(ids));
}
@Override
public String selectSifadictByLevel(String level){
return sifadictMapper.selectSifadictByLevel(level);
}
}