| | |
| | | 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); |
| | | } |