|
|
|
@ -15,6 +15,7 @@ import org.apache.shiro.SecurityUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
import org.springframework.web.multipart.MultipartFile; |
|
|
|
|
|
|
|
import java.io.File; |
|
|
|
@ -45,6 +46,7 @@ public class SysFileServiceImpl implements SysFileService { |
|
|
|
private String filePath; |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional |
|
|
|
public List<SysOssEntity> upload(MultipartFile[] list, GetParamInData inData) { |
|
|
|
if (Objects.isNull(list) || list.length == 0) { |
|
|
|
throw new XJException("上传文件不能为空"); |
|
|
|
|