SfcountServiceImpl.java
2.92 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
package com.lhcredit.project.business.sfcount.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.sfcount.mapper.SfcountMapper;
import com.lhcredit.project.business.sfcount.domain.Sfcount;
import com.lhcredit.project.business.sfcount.service.ISfcountService;
import com.lhcredit.common.utils.text.Convert;
/**
* 司法数据统计 服务层实现
*
* @author lhcredit
* @date 2025-11-18
*/
@Service
public class SfcountServiceImpl implements ISfcountService {
@Autowired
private SfcountMapper sfcountMapper;
/**
* 查询司法数据统计信息
*
* @param id 司法数据统计ID
* @return 司法数据统计信息
*/
@Override
public Sfcount selectSfcountById(Long id) {
return sfcountMapper.selectSfcountById(id);
}
/**
* 查询司法数据统计列表
*
* @param sfcount 司法数据统计信息
* @return 司法数据统计集合
*/
@Override
public List<Sfcount> selectSfcountList(Sfcount sfcount) {
return sfcountMapper.selectSfcountList(sfcount);
}
/**
* 字段转换
* @param sfcount 司法数据统计信息
* @return 司法数据统计信息
*/
@Override
public Sfcount changeModel(Sfcount sfcount) {
// //这里写各字段转换逻辑
// if(sfcount!=null){
// if(StringUtils.isNotEmpty(sfcount.getXXX())){
// sfcount.setXXX(sfcount.getXXX());
// }
// }
return sfcount;
}
/**
* 列表转换
*
* @param sfcountList 司法数据统计集合
* @return 司法数据统计集合
*/
@Override
public List<Sfcount> changeModel(List<Sfcount> sfcountList) {
List<Sfcount> result = new ArrayList<Sfcount>();
if (sfcountList.size() > 0) {
for (Sfcount sfcount:sfcountList){
result.add(changeModel(sfcount));
}
}
return result;
}
/**
* 新增司法数据统计
*
* @param sfcount 司法数据统计信息
* @return 结果
*/
@Override
public int insertSfcount(Sfcount sfcount) {
return sfcountMapper.insertSfcount(sfcount);
}
/**
* 修改司法数据统计
*
* @param sfcount 司法数据统计信息
* @return 结果
*/
@Override
public int updateSfcount(Sfcount sfcount) {
return sfcountMapper.updateSfcount(sfcount);
}
/**
* 删除司法数据统计对象
*
* @param ids 需要删除的数据ID
* @return 结果
*/
@Override
public int deleteSfcountByIds(String ids) {
return sfcountMapper.deleteSfcountByIds(Convert.toStrArray(ids));
}
@Override
public int updateSfcountStatus() {
return sfcountMapper.updateSfcountStatus();
}
}