提交 | 用户 | 时间
|
cf757d
|
1 |
package com.iailab.module.data.ind.collection.handler; |
潘 |
2 |
|
|
3 |
import com.iailab.module.data.ind.collection.utils.IndSqlUtils; |
|
4 |
import com.iailab.module.data.ind.item.vo.IndItemValueVO; |
|
5 |
import com.iailab.module.data.ind.value.dto.QuerySourceValueDTO; |
|
6 |
import com.iailab.module.data.ind.value.service.IndItemValueService; |
|
7 |
import lombok.extern.slf4j.Slf4j; |
|
8 |
import org.springframework.beans.factory.annotation.Autowired; |
|
9 |
import org.springframework.stereotype.Component; |
|
10 |
|
|
11 |
import java.util.ArrayList; |
|
12 |
import java.util.List; |
|
13 |
|
|
14 |
/** |
|
15 |
* @author PanZhibao |
|
16 |
* @Description |
|
17 |
* @createTime 2024年10月04日 |
|
18 |
*/ |
|
19 |
@Slf4j |
|
20 |
@Component |
|
21 |
public class AtomItemHandler { |
|
22 |
|
|
23 |
@Autowired |
|
24 |
private IndSqlUtils indSqlUtils; |
|
25 |
|
|
26 |
@Autowired |
|
27 |
private IndItemValueService indItemValueService; |
|
28 |
|
|
29 |
public List<IndItemValueVO> queryValue(String itemId) { |
|
30 |
List<IndItemValueVO> result = new ArrayList<IndItemValueVO>(); |
|
31 |
try { |
|
32 |
QuerySourceValueDTO queryDto = indSqlUtils.getAtomSql(itemId); |
|
33 |
return indItemValueService.getSourceValue(queryDto); |
|
34 |
} catch (Exception ex) { |
|
35 |
ex.printStackTrace(); |
|
36 |
} |
|
37 |
return result; |
|
38 |
} |
|
39 |
} |