| | |
| | | db_str = structureItemParameterService.getOne(Wrappers.lambdaQuery(StructureItemParameter.class) |
| | | .eq(StructureItemParameter::getInspectionItem, str.getInspectionItem()) |
| | | .eq(StructureItemParameter::getSample, str.getSample()) |
| | | .last("limit 1") |
| | | ); |
| | | } catch (Exception e) { |
| | | throw new ErrorException("重复查询:" + str.getInspectionItem()); |
| | |
| | | .eq(StructureItemParameter::getInspectionItem, str.getInspectionItem()) |
| | | .eq(StructureItemParameter::getSample, str.getSample()) |
| | | .eq(StructureItemParameter::getInspectionItemSubclass, str.getInspectionItemSubclass()) |
| | | .last("limit 1") |
| | | ); |
| | | } catch (Exception e) { |
| | | throw new ErrorException("重复查询:" + str.getInspectionItem() + " " + str.getInspectionItemSubclass()); |
| | |
| | | if (list1.get(13) == null) { |
| | | str.setPrice(null); |
| | | } else { |
| | | str.setPrice(BigDecimal.valueOf(Long.parseLong((list1.get(13).toString())))); |
| | | str.setPrice(list1.get(13) + ""); |
| | | } |
| | | |
| | | if (list1.get(14) == null) { |
| | |
| | | } else { |
| | | str.setTemplateId(null); |
| | | } |
| | | try { |
| | | if (list1.get(22) != null) { |
| | | str.setInspectionItemClass(list1.get(22) + ""); |
| | | } |
| | | } catch (Exception e) { |
| | | } |
| | | try { |
| | | if (list1.get(23) != null) { |
| | | str.setInspectionItemClassEn(list1.get(23) + ""); |
| | | } |
| | | } catch (Exception e) { |
| | | } |
| | | lists.add(str); |
| | | } |
| | | }); |