| | |
| | | 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; |
| | |
| | | try { |
| | | QuerySourceValueDTO queryDto = indSqlUtils.getAtomSql(itemId); |
| | | result = indItemValueService.getSourceValue(queryDto); |
| | | result.forEach(item -> { |
| | | item.setItemNo(queryDto.getItemNo()); |
| | | }); |
| | | if (!CollectionUtils.isEmpty(result)) { |
| | | result.forEach(item -> { |
| | | item.setItemNo(queryDto.getItemNo()); |
| | | }); |
| | | } |
| | | } catch (Exception ex) { |
| | | ex.printStackTrace(); |
| | | } |