lyhzzz 4 هفته پیش
والد
کامیت
cf0cdb7a78

+ 6 - 0
src/main/java/com/fdkankan/fusion/controller/CaseOverviewController.java

@@ -28,6 +28,8 @@ public class CaseOverviewController {
     ICaseOverviewService caseOverviewService;
     @Autowired
     ICaseTabulationService caseTabulationService;
+    @Autowired
+    ICaseService caseService;
 
 
     @GetMapping("/getByCaseId")
@@ -42,6 +44,10 @@ public class CaseOverviewController {
         if(caseOverview == null){
             throw new BusinessException(ResultCode.RECORD_NOT_EXITS);
         }
+        if(caseOverview.getCaseId() == null){
+            throw new BusinessException(ResultCode.RECORD_NOT_EXITS);
+        }
+        caseService.getInfo(caseOverview.getCaseId(),true);
         return ResultData.ok(caseOverview);
     }
 

+ 7 - 0
src/main/java/com/fdkankan/fusion/controller/CaseTabulationController.java

@@ -5,6 +5,7 @@ import com.fdkankan.fusion.common.ResultCode;
 import com.fdkankan.fusion.common.ResultData;
 import com.fdkankan.fusion.entity.CaseTabulation;
 import com.fdkankan.fusion.exception.BusinessException;
+import com.fdkankan.fusion.service.ICaseService;
 import com.fdkankan.fusion.service.ICaseTabulationService;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.*;
@@ -26,6 +27,8 @@ public class CaseTabulationController {
 
     @Autowired
     ICaseTabulationService caseTabulationService;
+    @Autowired
+    ICaseService caseService;
 
 
     @GetMapping("/getByCaseId")
@@ -40,6 +43,10 @@ public class CaseTabulationController {
         if(caseTabulation == null){
             throw new BusinessException(ResultCode.RECORD_NOT_EXITS);
         }
+        if(caseTabulation.getCaseId() == null){
+            throw new BusinessException(ResultCode.RECORD_NOT_EXITS);
+        }
+        caseService.getInfo(caseTabulation.getCaseId(),true);
         return ResultData.ok(caseTabulation);
     }