fix:类型转换;文件上传路径
This commit is contained in:
parent
b72fbd3b55
commit
ee70a7d6a3
@ -24,7 +24,6 @@ public class AircraftDevicePageDTO {
|
||||
/**
|
||||
* 飞行员(负责人)id
|
||||
*/
|
||||
@NotNull
|
||||
@ApiModelProperty(value = "飞行员(负责人)id")
|
||||
private Long employeesId;
|
||||
|
||||
|
@ -23,13 +23,13 @@ public class AircraftDevicePageVO extends AircraftDevice {
|
||||
* 区域
|
||||
*/
|
||||
@ApiModelProperty(value = "区域")
|
||||
private Long areaName;
|
||||
private String areaName;
|
||||
|
||||
/**
|
||||
* 景区
|
||||
*/
|
||||
@ApiModelProperty(value = "景区")
|
||||
private Long scenicName;
|
||||
private String scenicName;
|
||||
|
||||
/**
|
||||
* 飞行员(负责人)名称
|
||||
|
@ -71,7 +71,7 @@ public class LocalStorageController {
|
||||
localAttachmentMaterialDTO.setFileSize(file.getSize());
|
||||
localAttachmentMaterialDTO.setNewFileName(localStorage.getRealName());
|
||||
localAttachmentMaterialDTO.setSourceFileName(localStorage.getName());
|
||||
localAttachmentMaterialDTO.setFileFullPath(localStorage.getPath());
|
||||
localAttachmentMaterialDTO.setFileFullPath("/file/" + localStorage.getType() + "/" + localStorage.getRealName());
|
||||
return new ResponseEntity<>(localAttachmentMaterialDTO, HttpStatus.OK);
|
||||
}
|
||||
|
||||
@ -89,7 +89,7 @@ public class LocalStorageController {
|
||||
localAttachmentMaterialDTO.setFileSize(file.getSize());
|
||||
localAttachmentMaterialDTO.setNewFileName(localStorage.getRealName());
|
||||
localAttachmentMaterialDTO.setSourceFileName(localStorage.getName());
|
||||
localAttachmentMaterialDTO.setFileFullPath(localStorage.getPath());
|
||||
localAttachmentMaterialDTO.setFileFullPath("/file/" + localStorage.getType() + "/" + localStorage.getRealName());
|
||||
return new ResponseEntity<>(localAttachmentMaterialDTO, HttpStatus.OK);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user