Merge branch 'wq1' of SH-Arbitrate/Mediation-Backend into dev
This commit was merged in pull request #155.
This commit is contained in:
+4
-2
@@ -120,13 +120,15 @@ public class MsVideoConferenceController extends BaseController {
|
|||||||
}
|
}
|
||||||
}else {
|
}else {
|
||||||
// 如果是调解书并且是pdf,则删除之前的在新增
|
// 如果是调解书并且是pdf,则删除之前的在新增
|
||||||
if(isMediaBook != null && isMediaBook == 1 && caseId!=null){
|
if(isMediaBook != null && isMediaBook == 1 ){
|
||||||
if(StrUtil.isNotEmpty(suffix)&&!suffix.equals("pdf")){
|
if(StrUtil.isNotEmpty(suffix)&&!suffix.equals("pdf")){
|
||||||
return AjaxResult.error("请上传pdf格式文件");
|
return AjaxResult.error("请上传pdf格式文件");
|
||||||
}
|
}
|
||||||
annexType=AnnexTypeEnum.MEDIATE_BOOK_PDF.getCode();
|
annexType=AnnexTypeEnum.MEDIATE_BOOK_PDF.getCode();
|
||||||
// 先删除之前的附件
|
// 先删除之前的附件
|
||||||
msCaseAttachMapper.deleteCaseAttachByCasedIdAndType(caseId, annexType);
|
if(caseId!=null) {
|
||||||
|
msCaseAttachMapper.deleteCaseAttachByCasedIdAndType(caseId, annexType);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Long annexId = saveCaseAttach(annexType, fileName, file.getOriginalFilename(), caseId);
|
Long annexId = saveCaseAttach(annexType, fileName, file.getOriginalFilename(), caseId);
|
||||||
// 是否上传到onlyoffice
|
// 是否上传到onlyoffice
|
||||||
|
|||||||
Reference in New Issue
Block a user