| | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | |
| | | private IndItemValueService indItemValueService; |
| | | |
| | | public List<IndItemValueVO> queryValue(String itemId) { |
| | | List<IndItemValueVO> result = new ArrayList<IndItemValueVO>(); |
| | | List<IndItemValueVO> result = new ArrayList<>(); |
| | | try { |
| | | QuerySourceValueDTO queryDto = indSqlUtils.getAtomSql(itemId); |
| | | return indItemValueService.getSourceValue(queryDto); |
| | | result = indItemValueService.getSourceValue(queryDto); |
| | | if (!CollectionUtils.isEmpty(result)) { |
| | | result.forEach(item -> { |
| | | item.setItemNo(queryDto.getItemNo()); |
| | | }); |
| | | } |
| | | } catch (Exception ex) { |
| | | ex.printStackTrace(); |
| | | } |