| | |
| | | if(StringUtils.isNotBlank(equipment.getTechnologyStatus())){ |
| | | queryWrapper.eq("technology_status",equipment.getTechnologyStatus()); |
| | | } |
| | | if(StringUtils.isNotBlank(equipment.getEquipmentCategoryId())){ |
| | | queryWrapper.eq("equipment_category_id",equipment.getEquipmentCategoryId()); |
| | | } |
| | | |
| | | queryWrapper.eq("status","1"); |
| | | queryWrapper.eq("del_flag",0); |
| | | queryWrapper.orderByDesc("create_time"); |
| | | |
| | | Page<Equipment> page = new Page<Equipment>(pageNo, pageSize); |
| | | IPage<Equipment> pageList = equipmentService.page(page, queryWrapper); |
| | |
| | | eq.setPrecisionParametersTemplateName(""); |
| | | } |
| | | |
| | | String processParametersTemplateId = eq.getProcessParametersTemplateId(); |
| | | if(StringUtils.isNotBlank(processParametersTemplateId)){ |
| | | ProcessParametersTemplate processParametersTemplate = processParametersTemplateService.getById(processParametersTemplateId); |
| | | if(processParametersTemplate != null){ |
| | | eq.setProcessParametersTemplateName(processParametersTemplate.getName()); |
| | | }else{ |
| | | eq.setProcessParametersTemplateName(""); |
| | | } |
| | | }else{ |
| | | eq.setProcessParametersTemplateName(""); |
| | | } |
| | | // String processParametersTemplateId = eq.getProcessParametersTemplateId(); |
| | | // if(StringUtils.isNotBlank(processParametersTemplateId)){ |
| | | // ProcessParametersTemplate processParametersTemplate = processParametersTemplateService.getById(processParametersTemplateId); |
| | | // if(processParametersTemplate != null){ |
| | | // eq.setProcessParametersTemplateName(processParametersTemplate.getName()); |
| | | // }else{ |
| | | // eq.setProcessParametersTemplateName(""); |
| | | // } |
| | | // }else{ |
| | | // eq.setProcessParametersTemplateName(""); |
| | | // } |
| | | //查询封存原因和封存日期 |
| | | List<EquipmentSealDetail> equipmentSealDetailList = equipmentSealDetailService.lambdaQuery().eq(EquipmentSealDetail::getEquipmentId,eq.getId()) |
| | | .eq(EquipmentSealDetail::getDelFlag, CommonConstant.DEL_FLAG_0).orderByDesc(EquipmentSealDetail::getCreateTime).list(); |
| | |
| | | |
| | | String inspectionProjectId = record.getInspectionProjectId(); |
| | | InspectionProject inspectionProject = inspectionProjectService.getById(inspectionProjectId); |
| | | if ("1".equals(inspectionProject.getAnalysisMethod())) { |
| | | if ("1".equals(inspectionProject.getTestValueType())) { |
| | | BigDecimal surfaceValue = inspectionProject.getSurfaceValue(); |
| | | BigDecimal upValue = inspectionProject.getUpValue(); |
| | | BigDecimal downValue = inspectionProject.getDownValue(); |
| | |
| | | |
| | | String inspectionProjectId = (String) record.get("inspectionProjectId"); |
| | | InspectionProject inspectionProject = inspectionProjectService.getById(inspectionProjectId); |
| | | if ("1".equals(inspectionProject.getAnalysisMethod())) { |
| | | if ("1".equals(inspectionProject.getTestValueType())) { |
| | | BigDecimal surfaceValue = inspectionProject.getSurfaceValue(); |
| | | BigDecimal upValue = inspectionProject.getUpValue(); |
| | | BigDecimal downValue = inspectionProject.getDownValue(); |
| | |
| | | t1.quantity, |
| | | t1.is_lock isLock, |
| | | t2.num as sparePartNum, |
| | | IFNULL(t5.use_quantity,0) as useQuantity, |
| | | IFNULL(t5.outbound_main_quantity,0) as mainQuantity, |
| | | (IFNULL(t5.outbound_main_quantity,0)-IFNULL(t5.use_quantity,0)) as availableQuantity, |
| | | ISNULL(t5.use_quantity,0) as useQuantity, |
| | | ISNULL(t5.outbound_main_quantity,0) as mainQuantity, |
| | | (ISNULL(t5.outbound_main_quantity,0)-ISNULL(t5.use_quantity,0)) as availableQuantity, |
| | | t2.name as sparePartName, |
| | | t2.model as model, |
| | | t2.specification as specification, |
| | |
| | | t1.specialty_inspection_standard_detail_id as specialtyInspectionStandardDetailId, |
| | | t1.inspection_project_id as inspectionProjectId, |
| | | t2.name as inspectionProjectName, |
| | | t1.test_value_type as testValueType, |
| | | t1.location, |
| | | t1.photo, |
| | | t1.detection_standard as detectionStandard, |