|
@@ -64,6 +64,10 @@ public class CopyCaseService {
|
|
|
ICaseScriptService caseScriptService;
|
|
|
@Autowired
|
|
|
ICaseImgTagService caseImgTagService;
|
|
|
+ @Autowired
|
|
|
+ ICasePathService casePathService;
|
|
|
+ @Autowired
|
|
|
+ ICaseAnimationService caseAnimationService;
|
|
|
|
|
|
|
|
|
@Autowired
|
|
@@ -86,6 +90,9 @@ public class CopyCaseService {
|
|
|
this.cpFusionGuide(oldCaseId,newCaseId);
|
|
|
this.cpCaseScript(oldCaseId,newCaseId);
|
|
|
this.cpImgTag(oldCaseId,newCaseId);
|
|
|
+
|
|
|
+ this.cpPath(oldCaseId,newCaseId);
|
|
|
+ this.cpAnimation(oldCaseId,newCaseId);
|
|
|
}
|
|
|
|
|
|
|
|
@@ -463,4 +470,28 @@ public class CopyCaseService {
|
|
|
fusionMeterService.save(entity);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 复制路线
|
|
|
+ */
|
|
|
+ private void cpPath(Integer oldCaseId,Integer newCaseId){
|
|
|
+ List<CasePath> casePaths = casePathService.getByCaseId(oldCaseId);
|
|
|
+ for (CasePath casePath : casePaths) {
|
|
|
+ casePath.setId(null);
|
|
|
+ casePath.setCaseId(newCaseId);
|
|
|
+ casePathService.save(casePath);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 复制动画数据
|
|
|
+ */
|
|
|
+ private void cpAnimation(Integer oldCaseId,Integer newCaseId){
|
|
|
+ List<CaseAnimation> list = caseAnimationService.getListByCaseId(oldCaseId);
|
|
|
+ for (CaseAnimation caseAnimation : list) {
|
|
|
+ caseAnimation.setId(null);
|
|
|
+ caseAnimation.setCaseId(newCaseId);
|
|
|
+ caseAnimationService.save(caseAnimation);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|