jichaobo 2 роки тому
батько
коміт
bd26946af8

+ 6 - 0
service-fire/service-fire-biz/src/main/java/com/usky/fire/domain/PatrolInspectionSite.java

@@ -124,5 +124,11 @@ public class PatrolInspectionSite implements Serializable {
     @TableField(exist = false)
     private List<PatrolInspectionRecordPicture> recordPictureList;
 
+    /**
+     * 备注
+     */
+    @TableField(exist = false)
+    private String remarks;
+
 
 }

+ 3 - 1
service-fire/service-fire-biz/src/main/java/com/usky/fire/service/impl/PatrolInspectionPlanSonServiceImpl.java

@@ -189,15 +189,17 @@ public class PatrolInspectionPlanSonServiceImpl extends AbstractCrudService<Patr
             throw new BusinessException("无效地点,请联系管理人员添加点位");
         }
         List<PatrolInspectionRecordPicture> recordPictureList = new ArrayList<>();
+        List<PatrolInspectionRecord> recordList = new ArrayList<>();
         if (planSonId != null && planSonId != 0) {
             LambdaQueryWrapper<PatrolInspectionRecord> query = Wrappers.lambdaQuery();
             query.eq(PatrolInspectionRecord::getSiteId, siteId)
                     .eq(PatrolInspectionRecord::getPlanSonId, planSonId);
-            List<PatrolInspectionRecord> recordList = patrolInspectionRecordMapper.selectList(query);
+            recordList = patrolInspectionRecordMapper.selectList(query);
             LambdaQueryWrapper<PatrolInspectionRecordPicture> queryOne = Wrappers.lambdaQuery();
             queryOne.eq(PatrolInspectionRecordPicture::getRecordId, recordList.get(0).getId());
             recordPictureList = patrolInspectionRecordPictureService.list(queryOne);
         }
+        siteList.get(0).setRemarks(recordList.get(0).getRemarks());
         siteList.get(0).setRecordPictureList(recordPictureList);
         List<PatrolInspectionContentVo> contentList = this.contentList(siteList.get(0).getId());
         siteList.get(0).setContentCount(contentList.size());