|
@@ -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);
|
|
|
}
|
|
|
|