Commit 1b574b59 authored by dqjdda's avatar dqjdda
Browse files

update resources\template\generator\front\index.ftl

parent 1d517316
......@@ -48,8 +48,6 @@ public class RedisServiceImpl implements RedisService {
return page;
}
@Override
public void delete(String key) {
redisTemplate.delete(key);
......
......@@ -171,6 +171,8 @@ public class UserController {
return new ResponseEntity(HttpStatus.OK);
}
/**
* 如果当前用户的角色级别低于创建用户的角色级别,则抛出权限不足的错误
* @param resources
......
......@@ -62,8 +62,8 @@
<!--分页组件-->
<el-pagination
:total="total"
style="margin-top: 8px;"
:current-page="page + 1"
style="margin-top: 8px;"
layout="total, prev, pager, next, sizes"
@size-change="sizeChange"
@current-change="pageChange"/>
......
......@@ -48,7 +48,6 @@ public class PictureServiceImpl implements PictureService {
@Transactional(rollbackFor = Throwable.class)
public Picture upload(MultipartFile multipartFile, String username) {
File file = FileUtil.toFile(multipartFile);
HashMap<String, Object> paramMap = new HashMap<>(1);
paramMap.put("smfile", file);
......@@ -66,7 +65,7 @@ public class PictureServiceImpl implements PictureService {
picture.setFilename(FileUtil.getFileNameNoEx(multipartFile.getOriginalFilename())+"."+FileUtil.getExtensionName(multipartFile.getOriginalFilename()));
pictureRepository.save(picture);
//删除临时文件
FileUtil.deleteFile(file);
FileUtil.del(file);
return picture;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment