|
@@ -10,6 +10,7 @@ import com.fdkankan.fusion.entity.CaseOverview;
|
|
|
import com.fdkankan.fusion.httpClient.client.OtherClient;
|
|
|
import com.fdkankan.fusion.service.ICaseOverviewService;
|
|
|
import com.fdkankan.fusion.service.ICaseService;
|
|
|
+import com.fdkankan.fusion.service.ICaseTabulationService;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -35,7 +36,8 @@ public class CaseOverviewController {
|
|
|
FusionConfig fusionConfig;
|
|
|
@Autowired
|
|
|
ICaseService caseService;
|
|
|
-
|
|
|
+ @Autowired
|
|
|
+ ICaseTabulationService caseTabulationService;
|
|
|
|
|
|
|
|
|
@GetMapping("/getByCaseId")
|
|
@@ -53,6 +55,9 @@ public class CaseOverviewController {
|
|
|
@PostMapping("/addOrUpdate")
|
|
|
public ResultData addOrUpdate (@RequestBody CaseOverview caseOverview){
|
|
|
caseOverviewService.saveOrUpdate(caseOverview);
|
|
|
+ caseOverview.getCaseTabulation().setOverviewId(caseOverview.getId());
|
|
|
+ caseOverview.getCaseTabulation().setCaseId(caseOverview.getCaseId());
|
|
|
+ caseTabulationService.addOrUpdate(caseOverview.getCaseTabulation());
|
|
|
return ResultData.ok(caseOverview);
|
|
|
}
|
|
|
|