修改批量删除接口
This commit is contained in:
parent
80b39bea47
commit
191378ca0b
@ -109,7 +109,7 @@ public class FileController {
|
|||||||
List<FileBean> fileList = JSON.parseArray(fileBean.getFiles(), FileBean.class);
|
List<FileBean> fileList = JSON.parseArray(fileBean.getFiles(), FileBean.class);
|
||||||
|
|
||||||
for (FileBean file : fileList) {
|
for (FileBean file : fileList) {
|
||||||
fileService.deleteFile(fileBean);
|
fileService.deleteFile(file);
|
||||||
}
|
}
|
||||||
|
|
||||||
result.setData("批量删除文件成功");
|
result.setData("批量删除文件成功");
|
||||||
|
@ -22,7 +22,7 @@ mybatis.mapper-locations=classpath:mybatis/mapper/*.xml
|
|||||||
spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver
|
spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver
|
||||||
spring.datasource.url = jdbc:mysql://localhost:3306/file?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8
|
spring.datasource.url = jdbc:mysql://localhost:3306/file?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8
|
||||||
spring.datasource.username=root
|
spring.datasource.username=root
|
||||||
spring.datasource.password=ma123456
|
spring.datasource.password=password123
|
||||||
|
|
||||||
#数据库初始化
|
#数据库初始化
|
||||||
spring.datasource.data=classpath:database/data.sql
|
spring.datasource.data=classpath:database/data.sql
|
||||||
|
Loading…
Reference in New Issue
Block a user