| | |
| | | str.setRates(list1.get(26) + ""); |
| | | } |
| | | // 抽样类型 |
| | | String spotCheckType = list1.get(27).toString(); |
| | | if (ObjectUtils.isNotEmpty(spotCheckType)) { |
| | | List<SysDictData> enums = dictTypeService.selectDictDataByName("抽检类型") |
| | | .stream().filter(sysDictData -> sysDictData.getDictLabel().equals(spotCheckType)).collect(Collectors.toList()); |
| | | str.setSpotCheckType(enums.get(0).getDictValue()); |
| | | if (list1.get(27) != null){ |
| | | String spotCheckType = list1.get(27).toString(); |
| | | if (ObjectUtils.isNotEmpty(spotCheckType)) { |
| | | List<SysDictData> enums = dictTypeService.selectDictDataByName("抽检类型") |
| | | .stream().filter(sysDictData -> sysDictData.getDictLabel().equals(spotCheckType)).collect(Collectors.toList()); |
| | | str.setSpotCheckType(enums.get(0).getDictValue()); |
| | | } |
| | | }else { |
| | | str.setSpotCheckType(null); |
| | | } |
| | | lists.add(str); |
| | | } |