新建文档和解压适配优化
This commit is contained in:
parent
271df4be4e
commit
3506c8e5d1
@ -87,7 +87,7 @@ public class OfficeController {
|
||||
} else if ("pptx".equals(extendName)) {
|
||||
templateFilePath = "template/PowerPoint.pptx";
|
||||
}
|
||||
String templateFileUrl = PathUtil.getStaticPath() + templateFilePath;
|
||||
String templateFileUrl = PathUtil.getProjectRootPath() + templateFilePath;
|
||||
FileInputStream fileInputStream = new FileInputStream(templateFileUrl);
|
||||
Copier copier = ufopFactory.getCopier();
|
||||
CopyFile copyFile = new CopyFile();
|
||||
|
@ -1,12 +1,5 @@
|
||||
-- 初始化用户
|
||||
insert ignore into user (userId, username, salt, password) values (1, 'admin', 'admin', 'df655ad8d3229f3269fad2a8bab59b6c');
|
||||
insert ignore into role (roleId, role, description) values (1, 'admin', '管理员'),(2, 'user', '普通用户');
|
||||
insert ignore into permission (permissionId, permission) values (1, 'admin'),(2, 'user');
|
||||
|
||||
delete from user_role where userId = 1 and roleId = 1;
|
||||
insert into user_role (userId, roleId) values (1, 1);
|
||||
delete from role_permission where roleId = 1 and permissionId = 1;
|
||||
insert into role_permission (roleId, permissionId) values (1, 1);
|
||||
|
||||
delete from sysparam where sysParamId = 1;
|
||||
insert into sysparam (sysParamId, sysParamKey, sysParamValue, sysParamDesc) values (1, 'totalStorageSize', '1024', '总存储大小(单位M)');
|
||||
insert ignore into sysparam (sysParamId, sysParamKey, sysParamValue, sysParamDesc) values (1, 'totalStorageSize', '1024', '总存储大小(单位M)');
|
Loading…
Reference in New Issue
Block a user