CountryNameServiceImpl.java
2.69 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
package com.lhcredit.project.business.country.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.country.mapper.CountryNameMapper;
import com.lhcredit.project.business.country.domain.CountryName;
/**
* 国家标 服务层实现
*
* @author lhcredit
* @date 2025-03-13
*/
@Service
public class CountryNameServiceImpl implements ICountryNameService {
@Autowired
private CountryNameMapper countryNameMapper;
/**
* 查询国家标信息
*
* @param jc 国家标ID
* @return 国家标信息
*/
@Override
public CountryName selectCountryById(String jc) {
return countryNameMapper.selectCountryById(jc);
}
/**
* 查询国家标列表
*
* @param country 国家标信息
* @return 国家标集合
*/
@Override
public List<CountryName> selectCountryList(CountryName country) {
return countryNameMapper.selectCountryList(country);
}
/**
* 字段转换
* @param country 国家标信息
* @return 国家标信息
*/
@Override
public CountryName changeModel(CountryName country) {
// //这里写各字段转换逻辑
// if(country!=null){
// if(StringUtils.isNotEmpty(country.getXXX())){
// country.setXXX(country.getXXX());
// }
// }
return country;
}
/**
* 列表转换
*
* @param countryList 国家标集合
* @return 国家标集合
*/
@Override
public List<CountryName> changeModel(List<CountryName> countryList) {
List<CountryName> result = new ArrayList<CountryName>();
if (countryList.size() > 0) {
for (CountryName country:countryList){
result.add(changeModel(country));
}
}
return result;
}
// /**
// * 新增国家标
// *
// * @param country 国家标信息
// * @return 结果
// */
// @Override
// public int insertCountry(Country country) {
// return countryMapper.insertCountry(country);
// }
//
// /**
// * 修改国家标
// *
// * @param country 国家标信息
// * @return 结果
// */
// @Override
// public int updateCountry(Country country) {
// return countryMapper.updateCountry(country);
// }
//
// /**
// * 删除国家标对象
// *
// * @param ids 需要删除的数据ID
// * @return 结果
// */
// @Override
// public int deleteCountryByIds(String ids) {
// return countryMapper.deleteCountryByIds(Convert.toStrArray(ids));
// }
}