update
This commit is contained in:
@@ -128,6 +128,24 @@ public class ExperimentController extends JeecgController<Experiment, IExperimen
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "试验管理-试验复制")
|
||||
@Operation(summary = "试验管理-试验复制")
|
||||
//@RequiresPermissions("database:experiment:delete")
|
||||
@PostMapping(value = "/copy")
|
||||
public Result<String> copy(@RequestParam(name = "id", required = true) String id) {
|
||||
Experiment experiment = experimentService.getById(id);
|
||||
experiment.setStatus(ExperimentStatus.PRE_TEST);
|
||||
experiment.setId(null);
|
||||
experimentService.save(experiment);
|
||||
return Result.OK("复制成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
|
||||
@@ -76,6 +76,7 @@ public class CommonController {
|
||||
if (StringUtils.isBlank(file)) {
|
||||
return;
|
||||
}
|
||||
//http://127.0.0.1:8080/physical/sys/common/download?file=NASA/abfb6651bfee1e5daa9ccb254a02a174/PPM-99-045.pdf
|
||||
String fileName = URLDecoder.decode(file, "UTF-8");
|
||||
String objectUrl = MinioUtil.getObjectUrl(MinioUtil.getBucketName(), fileName, 2 * 24 * 60 * 60);
|
||||
if (StringUtils.isBlank(objectUrl)) {
|
||||
|
||||
Reference in New Issue
Block a user