|
@@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.core.toolkit.StringUtils;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.usky.common.core.bean.CommonPage;
|
|
|
+import com.usky.common.core.exception.BusinessException;
|
|
|
import com.usky.common.mybatis.core.AbstractCrudService;
|
|
|
import com.usky.common.security.utils.SecurityUtils;
|
|
|
import com.usky.fire.domain.*;
|
|
@@ -93,7 +94,9 @@ public class PatrolInspectionRecordServiceImpl extends AbstractCrudService<Patro
|
|
|
queryWrapper.eq(PatrolInspectionRecord::getTenantId, SecurityUtils.getTenantId())
|
|
|
.eq(PatrolInspectionRecord::getId, id);
|
|
|
List<PatrolInspectionRecord> patrolInspectionRecordList = this.list(queryWrapper);
|
|
|
-
|
|
|
+ if (patrolInspectionRecordList.isEmpty()) {
|
|
|
+ throw new BusinessException("巡检记录不存在");
|
|
|
+ }
|
|
|
//上传图片查询
|
|
|
LambdaQueryWrapper<PatrolInspectionRecordPicture> queryWrapperOne = Wrappers.lambdaQuery();
|
|
|
queryWrapperOne.eq(PatrolInspectionRecordPicture::getRecordId, id);
|