修复bug2
This commit is contained in:
@ -17,4 +17,5 @@ import java.util.List;
|
||||
public interface AppBusinessFileMapper extends BaseMapperPlus<AppBusinessFile, AppBusinessFileVo> {
|
||||
|
||||
List<AppFileVo> queryAppFileList(AppBusinessFileBo bo);
|
||||
|
||||
}
|
||||
|
||||
@ -23,8 +23,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="fileType != null">
|
||||
and a.file_type = #{fileType}
|
||||
</if>
|
||||
<if test="createBy != null">
|
||||
and a.create_by = #{createBy}
|
||||
<if test="createBy != null ">
|
||||
and (a.create_by = #{createBy} or a.update_by = 0)
|
||||
</if>
|
||||
order by a.create_time desc
|
||||
</select>
|
||||
|
||||
@ -213,11 +213,11 @@ public class SysOssServiceImpl implements ISysOssService, OssService {
|
||||
try {
|
||||
byte[] imageData = file.getBytes();
|
||||
// 检查是否需要压缩
|
||||
if (ImageCompressUtil.needCompress(imageData)) {
|
||||
// 压缩到100KB以内
|
||||
imageData = ImageCompressUtil.compressImage(imageData);
|
||||
// 使用压缩后的数据
|
||||
}
|
||||
// if (ImageCompressUtil.needCompress(imageData)) {
|
||||
// // 压缩到100KB以内
|
||||
// imageData = ImageCompressUtil.compressImage(imageData);
|
||||
// // 使用压缩后的数据
|
||||
// }
|
||||
uploadResult = storage.uploadSuffix(imageData, suffix, file.getContentType());
|
||||
} catch (IOException e) {
|
||||
throw new ServiceException(e.getMessage());
|
||||
|
||||
Reference in New Issue
Block a user