|
@@ -2,10 +2,12 @@ package com.fdkankan.fusion.controller;
|
|
|
|
|
|
|
|
|
import com.fdkankan.fusion.aop.PushJm;
|
|
|
+import com.fdkankan.fusion.common.FilePath;
|
|
|
import com.fdkankan.fusion.common.ResultCode;
|
|
|
import com.fdkankan.fusion.common.ResultData;
|
|
|
import com.fdkankan.fusion.common.util.FileMd5Util;
|
|
|
import com.fdkankan.fusion.common.util.MD5Checksum;
|
|
|
+import com.fdkankan.fusion.common.util.UploadToOssUtil;
|
|
|
import com.fdkankan.fusion.config.FusionConfig;
|
|
|
import com.fdkankan.fusion.entity.CaseEntity;
|
|
|
import com.fdkankan.fusion.entity.CaseOverview;
|
|
@@ -43,6 +45,8 @@ public class CaseOverviewController {
|
|
|
OtherClient otherClient;
|
|
|
@Autowired
|
|
|
ICaseTabulationService caseTabulationService;
|
|
|
+ @Autowired
|
|
|
+ UploadToOssUtil uploadToOssUtil;
|
|
|
|
|
|
|
|
|
@GetMapping("/getByCaseId")
|
|
@@ -52,11 +56,21 @@ public class CaseOverviewController {
|
|
|
}
|
|
|
|
|
|
@GetMapping("/info")
|
|
|
- public ResultData info (@RequestParam (required = false) String overviewId){
|
|
|
- CaseOverview caseOverview = caseOverviewService.getById(overviewId);
|
|
|
- if(caseOverview == null){
|
|
|
- throw new BusinessException(ResultCode.RECORD_NOT_EXIST);
|
|
|
+ public ResultData info (@RequestParam (required = false) Integer overviewId,
|
|
|
+ @RequestParam (required = false) String num,
|
|
|
+ @RequestParam (required = false,defaultValue = "0") Integer subGroup){
|
|
|
+ CaseOverview caseOverview = null;
|
|
|
+ if(overviewId != null){
|
|
|
+ caseOverview = caseOverviewService.getById(overviewId);
|
|
|
+ if(caseOverview == null){
|
|
|
+ throw new BusinessException(ResultCode.RECORD_NOT_EXIST);
|
|
|
+ }
|
|
|
+ return ResultData.ok(caseOverview);
|
|
|
+ }
|
|
|
+ if(StringUtils.isNotBlank(num)){
|
|
|
+
|
|
|
}
|
|
|
+
|
|
|
return ResultData.ok(caseOverview);
|
|
|
}
|
|
|
|