|
|
@ -104,7 +104,7 @@ public interface FileMapper extends AbstractMapper {
|
|
|
|
default int create(List<FileInfo> files) {
|
|
|
|
default int create(List<FileInfo> files) {
|
|
|
|
if (isEmpty(files)) return 0;
|
|
|
|
if (isEmpty(files)) return 0;
|
|
|
|
|
|
|
|
|
|
|
|
DataObject params = params().set("currentUser", currentUser());
|
|
|
|
DataObject params = params();
|
|
|
|
int affected = 0;
|
|
|
|
int affected = 0;
|
|
|
|
for (FileInfo file:files)
|
|
|
|
for (FileInfo file:files)
|
|
|
|
affected += insertFile(params.set("file", file));
|
|
|
|
affected += insertFile(params.set("file", file));
|
|
|
|