|
|
|
@ -79,7 +79,7 @@ public class DeviceAssetCertController extends BaseController {
|
|
|
|
|
@PostMapping("/inv/info/deleteDeviceCert")
|
|
|
|
|
public BaseResponse deleteDeviceCert(@RequestBody DeleteDeviceFileRequest deleteDeviceFileRequest) {
|
|
|
|
|
boolean b = deviceAssetCertService.deleteById(deleteDeviceFileRequest.getId());
|
|
|
|
|
String URL = filePath + FileConstant.COMMON_FILE_PATH + deleteDeviceFileRequest.getFilePath();
|
|
|
|
|
String URL = filePath + FileConstant.DEV_COMMON_FILE_PATH + deleteDeviceFileRequest.getFilePath();
|
|
|
|
|
File file = new File(URL);
|
|
|
|
|
if (file.exists() && file.isFile()) {
|
|
|
|
|
file.delete();
|
|
|
|
|