| | |
| | | }else{ |
| | | //生产线设备,按照生产线来进行点检 |
| | | String lineId = equipment.getLineId(); |
| | | if(StringUtils.isBlank(lineId)){ |
| | | return Result.error("生产线设备没有关联到产线编号"); |
| | | } |
| | | List<DailyInspectionStandard> dailyInspectionStandards = dailyInspectionStandardService.lambdaQuery() |
| | | .eq(DailyInspectionStandard::getEquipmentId, lineId) |
| | | .eq(DailyInspectionStandard::getVersionStatus, "2") |
| | | .eq(DailyInspectionStandard::getDelFlag, "0").list(); |
| | | if(CollectionUtils.isEmpty(dailyInspectionStandards)){ |
| | | return Result.error("设备对应的产线没有配置点检标准"); |
| | | } |
| | | if(dailyInspectionStandards.size()>0) { |
| | | DailyInspectionStandard dailyInspectionStandard = dailyInspectionStandards.get(0); |
| | | //保存点检工单子表数据 |