上传调解书修改 #155
+3
-1
@@ -120,14 +120,16 @@ 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();
|
||||||
// 先删除之前的附件
|
// 先删除之前的附件
|
||||||
|
if(caseId!=null) {
|
||||||
msCaseAttachMapper.deleteCaseAttachByCasedIdAndType(caseId, annexType);
|
msCaseAttachMapper.deleteCaseAttachByCasedIdAndType(caseId, annexType);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
Long annexId = saveCaseAttach(annexType, fileName, file.getOriginalFilename(), caseId);
|
Long annexId = saveCaseAttach(annexType, fileName, file.getOriginalFilename(), caseId);
|
||||||
// 是否上传到onlyoffice
|
// 是否上传到onlyoffice
|
||||||
AjaxResult ajax = AjaxResult.success();
|
AjaxResult ajax = AjaxResult.success();
|
||||||
|
|||||||
Reference in New Issue
Block a user