李林
2024-06-14 681ebad558051dd3b18c379b5c06b23bc08c0761
cnas-server/src/main/java/com/yuanchu/mom/controller/CapacityScopeController.java
@@ -223,6 +223,7 @@
                        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());
@@ -233,6 +234,7 @@
                                .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());
@@ -282,7 +284,7 @@
                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) {
@@ -334,6 +336,18 @@
                } 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);
            }
        });