| | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.math.BigDecimal; |
| | |
| | | } |
| | | IndItemEntity subItem = indItemService.getInfoByNo(s); |
| | | ItemTypeEnum itemType = ItemTypeEnum.getEumByCode(subItem.getItemType()); |
| | | List<IndItemValueVO> vl = new ArrayList<>(); |
| | | switch (itemType) { |
| | | case ATOM: |
| | | valueMix.add(atomItemHandler.queryValue(subItem.getId())); |
| | | vl = atomItemHandler.queryValue(subItem.getId()); |
| | | break; |
| | | case DER: |
| | | valueMix.add(derItemHandler.queryValue(subItem.getId())); |
| | | vl = derItemHandler.queryValue(subItem.getId()); |
| | | break; |
| | | default: |
| | | break; |
| | | } |
| | | if (!CollectionUtils.isEmpty(vl)) { |
| | | vl.forEach(vi -> { |
| | | vi.setItemNo(s); |
| | | }); |
| | | } |
| | | valueMix.add(vl); |
| | | } |
| | | dataLength = valueMix.get(0).size(); |
| | | |