package com.iailab.module.data.ind.collection.handler;
|
|
import com.iailab.module.data.ind.collection.utils.IndSqlUtils;
|
import com.iailab.module.data.ind.item.vo.IndItemValueVO;
|
import com.iailab.module.data.ind.value.dto.QuerySourceValueDTO;
|
import com.iailab.module.data.ind.value.service.IndItemValueService;
|
import lombok.extern.slf4j.Slf4j;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Component;
|
|
import java.util.ArrayList;
|
import java.util.List;
|
|
/**
|
* @author PanZhibao
|
* @Description
|
* @createTime 2024年10月04日
|
*/
|
@Slf4j
|
@Component
|
public class AtomItemHandler {
|
|
@Autowired
|
private IndSqlUtils indSqlUtils;
|
|
@Autowired
|
private IndItemValueService indItemValueService;
|
|
public List<IndItemValueVO> queryValue(String itemId) {
|
List<IndItemValueVO> result = new ArrayList<IndItemValueVO>();
|
try {
|
QuerySourceValueDTO queryDto = indSqlUtils.getAtomSql(itemId);
|
return indItemValueService.getSourceValue(queryDto);
|
} catch (Exception ex) {
|
ex.printStackTrace();
|
}
|
return result;
|
}
|
}
|