|
|
@ -751,7 +751,7 @@ public class PatrolTaskResultMainController extends BaseController { |
|
|
images.add(originalImgSrc); |
|
|
images.add(originalImgSrc); |
|
|
String pointName = reportData.getPointName(); |
|
|
String pointName = reportData.getPointName(); |
|
|
pointName = (pointName != null) ? pointName : "unnamed"; |
|
|
pointName = (pointName != null) ? pointName : "unnamed"; |
|
|
|
|
|
|
|
|
|
|
|
PatrolResult patrolResult = patrolResultService.selectPatrolResultByDeviceName(pointName); |
|
|
// 提取文件扩展名 |
|
|
// 提取文件扩展名 |
|
|
String extension = ""; |
|
|
String extension = ""; |
|
|
int dotIndex = originalImgSrc.lastIndexOf('.'); |
|
|
int dotIndex = originalImgSrc.lastIndexOf('.'); |
|
|
@ -760,7 +760,8 @@ public class PatrolTaskResultMainController extends BaseController { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 生成唯一文件名(包含 lineId 防止重复) |
|
|
// 生成唯一文件名(包含 lineId 防止重复) |
|
|
String uniqueFileName = String.format("%s_%s_%d%s", |
|
|
|
|
|
|
|
|
String uniqueFileName = String.format("%s_%s_%s_%d%s", |
|
|
|
|
|
(patrolResult != null ? patrolResult.getDeviceId() : ""), |
|
|
pointName, |
|
|
pointName, |
|
|
reportData.getLineId(), |
|
|
reportData.getLineId(), |
|
|
imgIndex, |
|
|
imgIndex, |
|
|
|