申购车功能,门户相关接口
This commit is contained in:
parent
42c64253f8
commit
d51c1e701f
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue