申购车功能,门户相关接口

This commit is contained in:
dinggang 2022-04-20 19:05:35 +08:00
parent 42c64253f8
commit d51c1e701f
2 changed files with 8 additions and 8 deletions

View File

@ -65,13 +65,13 @@ public class CategoryController {
categoryDTO.setDelFlag(0);
categoryService.save(categoryDTO);
//若为一级分类增加文件夹
if (ObjectUtil.isNull(categoryDTO.getPid())) {
File file = new File("D:\\新建文件夹\\resource\\" + categoryDTO.getName());
file.mkdirs();
if (file.mkdirs()) {
throw new RuntimeException("创建文件夹失败!");
}
}
//if (ObjectUtil.isNull(categoryDTO.getPid())) {
// File file = new File("D:\\新建文件夹\\resource\\" + categoryDTO.getName());
// file.mkdirs();
// if (file.mkdirs()) {
// throw new RuntimeException("创建文件夹失败!");
// }
//}
return new Result();
}