Commit 92dcd8a7 authored by liqin's avatar liqin 💬

bug fixed

parent 5fae0808
...@@ -42,7 +42,7 @@ import static cn.wisenergy.chnmuseum.party.common.enums.CopyrightOwnerTypeEnum.V ...@@ -42,7 +42,7 @@ import static cn.wisenergy.chnmuseum.party.common.enums.CopyrightOwnerTypeEnum.V
@Service @Service
@Aspect @Aspect
@Transactional @Transactional
class SystemOperationLogService extends ServiceImpl<SysLogMapper, SysLog> { public class SystemOperationLogService extends ServiceImpl<SysLogMapper, SysLog> {
@Resource @Resource
private SysLogMapper sysLogMapper; private SysLogMapper sysLogMapper;
...@@ -120,6 +120,7 @@ class SystemOperationLogService extends ServiceImpl<SysLogMapper, SysLog> { ...@@ -120,6 +120,7 @@ class SystemOperationLogService extends ServiceImpl<SysLogMapper, SysLog> {
return object; return object;
} }
SysLog sysLog = new SysLog(); SysLog sysLog = new SysLog();
// todo null
if (user.getRoleList().contains("1")) { if (user.getRoleList().contains("1")) {
sysLog.setType(1); sysLog.setType(1);
} else { } else {
......
...@@ -49,7 +49,7 @@ public class FileUploadController extends BaseController { ...@@ -49,7 +49,7 @@ public class FileUploadController extends BaseController {
private static final String[] IMAGE_TYPE = new String[]{"JPG", "JPEG", "PNG", "BMP", "WBMP"}; private static final String[] IMAGE_TYPE = new String[]{"JPG", "JPEG", "PNG", "BMP", "WBMP"};
private static final String[] AUDIO_TYPE = new String[]{"MP3", "AAC", "WMA", "FLAC", "RM", "OGG"}; private static final String[] AUDIO_TYPE = new String[]{"MP3", "AAC", "WMA", "FLAC", "RM", "OGG"};
private static final String[] VIDEO_TYPE = new String[]{"MP4", "FLV", "MPEG"}; private static final String[] VIDEO_TYPE = new String[]{"MP4", "FLV", "MPEG", "MOV"};
private static final String[] DOC_TYPE = new String[]{"PDF", "DOC", "DOCX", "PPT", "PPTX"}; private static final String[] DOC_TYPE = new String[]{"PDF", "DOC", "DOCX", "PPT", "PPTX"};
private static final String[] DATUM_TYPE = ArrayUtil.addAll(DOC_TYPE, IMAGE_TYPE, VIDEO_TYPE); private static final String[] DATUM_TYPE = ArrayUtil.addAll(DOC_TYPE, IMAGE_TYPE, VIDEO_TYPE);
......
...@@ -236,6 +236,8 @@ public class VideoContentController extends BaseController { ...@@ -236,6 +236,8 @@ public class VideoContentController extends BaseController {
videoContent.setVideoContentCatName(videoContentCat.getName()); videoContent.setVideoContentCatName(videoContentCat.getName());
} }
if (videoContent.getVideoContentCopyrightOwnerId() != null) { if (videoContent.getVideoContentCopyrightOwnerId() != null) {
// todo null
CopyrightOwner copyrightOwner = this.copyrightOwnerService.getById(videoContent.getVideoContentCopyrightOwnerId()); CopyrightOwner copyrightOwner = this.copyrightOwnerService.getById(videoContent.getVideoContentCopyrightOwnerId());
videoContent.setVideoContentCopyrightOwnerName(copyrightOwner.getName()); videoContent.setVideoContentCopyrightOwnerName(copyrightOwner.getName());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment