|
|
@@ -132,9 +132,9 @@ public class VideoController extends BaseController {
|
|
132
|
132
|
*/
|
|
133
|
133
|
@Anonymous
|
|
134
|
134
|
@GetMapping("secretaryRoleByUserId")
|
|
135
|
|
- public AjaxResult secretaryRoleByUserId( @RequestParam(value = "userId",required = true) Long userId) {
|
|
|
135
|
+ public AjaxResult secretaryRoleByUserId( @RequestParam(value = "userId",required = true) Long userId,@RequestParam(value = "caseId",required = true) Long caseId) {
|
|
136
|
136
|
|
|
137
|
|
- return videoService.secretaryRoleByUserId(userId);
|
|
|
137
|
+ return videoService.secretaryRoleByUserId(userId,caseId);
|
|
138
|
138
|
}
|
|
139
|
139
|
/**
|
|
140
|
140
|
* 根据html字符串转pdf并和案件关联
|
|
|
@@ -235,16 +235,16 @@ public class VideoController extends BaseController {
|
|
235
|
235
|
}
|
|
236
|
236
|
}else {
|
|
237
|
237
|
// 如果是调解书并且是pdf,则删除之前的在新增
|
|
238
|
|
-// if(isMediaBook != null && isMediaBook == 1 ){
|
|
|
238
|
+ if(annexType!=null && annexType.equals(3) ){
|
|
239
|
239
|
// if(StrUtil.isNotEmpty(suffix)&&!suffix.equals("pdf")){
|
|
240
|
240
|
// return AjaxResult.error("请上传pdf格式文件");
|
|
241
|
241
|
// }
|
|
242
|
242
|
// annexType=AnnexTypeEnum.MEDIATE_BOOK_PDF.getCode();
|
|
243
|
|
-// // 先删除之前的附件
|
|
244
|
|
-// if(caseId!=null) {
|
|
245
|
|
-// msCaseAttachMapper.deleteCaseAttachByCasedIdAndType(caseId, annexType);
|
|
246
|
|
-// }
|
|
247
|
|
-// }
|
|
|
243
|
+ // 先删除之前的附件
|
|
|
244
|
+ if(caseId!=null) {
|
|
|
245
|
+ caseAttachMapper.deleteCaseAttachByCasedIdAndType(caseId, annexType);
|
|
|
246
|
+ }
|
|
|
247
|
+ }
|
|
248
|
248
|
Long annexId = saveCaseAttach(annexType, fileName, file.getOriginalFilename(), caseId);
|
|
249
|
249
|
|
|
250
|
250
|
AjaxResult ajax = AjaxResult.success();
|