Merge branch 'master' of http://111.30.93.211:10101/r/supipe
| | |
| | | RegionInspectionRecordEntity recordEntity; |
| | | |
| | | private String result;//巡检结果 |
| | | List<RegionInspectionRecordImgEntity> imgList; |
| | | private List<RegionInspectionRecordImgEntity> imgList; |
| | | private Integer status;//该区域的巡检状态 |
| | | } |
| | |
| | | |
| | | private String imgPaths; |
| | | |
| | | List<RegionInspectionRecordImgEntity> imgList; |
| | | private List<RegionInspectionRecordImgEntity> imgList; |
| | | } |
| | |
| | | @Param("regionHazardInformId")String regionHazardInformId); |
| | | |
| | | void insertIMG(RegionInspectionRecordImgEntity regionInspectionRecordImgEntity); |
| | | void deleteIMG(String regionInspectionRecordId); |
| | | |
| | | List<RegionInspectionRecordImgEntity> selectImgByRecordId(String regionInspectionRecordId); |
| | | |
| | |
| | | regionInspectionEntity.setInspectionTime(new Date()); |
| | | regionInspectionEntity.setUpdateTime(new Date()); |
| | | } |
| | | regionInspectionRecordMapper.deleteIMG(regionInspectionEntity.getId()); |
| | | synchronized (this){ |
| | | //修改打卡记录 |
| | | regionInspectionEntity.setCreateUser(userId); |
| | | regionInspectionRecordMapper.insert(regionInspectionEntity); |
| | | |
| | | //添加记录相对应的图片 |
| | | if (!regionInspectionEntity.getImgList().isEmpty()){ |
| | | regionInspectionEntity.getImgList().forEach(obj->{ |
| | |
| | | .recordEntity(recordEntity) |
| | | .imgList(imgEntityList) |
| | | .result(recordEntity.getResult()) |
| | | .status(recordEntity.getStatus()) |
| | | .build(); |
| | | regionList.add(regionEntity); |
| | | } |
| | |
| | | <delete id="delete"> |
| | | delete from t_region_inspection_record where id=#{id,jdbcType=VARCHAR} |
| | | </delete> |
| | | <delete id="deleteIMG"> |
| | | delete from t_region_inspection_record_img where regionInspectionRecordId=#{regionInspectionRecordId,jdbcType=VARCHAR} |
| | | </delete> |
| | | |
| | | <delete id="deleteByRegionInspectionId"> |
| | | delete from t_region_inspection_record where regionInspectionId=#{regionInspectionId,jdbcType=VARCHAR} |
| | |
| | | t.result result, |
| | | GROUP_CONCAT(timg.imgPath) imgPaths, |
| | | t.location, |
| | | spu.real_name realName |
| | | spu.real_name realName, |
| | | t.status |
| | | FROM t_region_inspection_record t |
| | | LEFT JOIN t_region_inspection_record_img timg on t.id = timg.regionInspectionRecordId |
| | | LEFT JOIN t_region_hazard_inform rhi on rhi.id = t.regionHazardInformId |