|
@@ -184,6 +184,8 @@ public class CopyCaseService {
|
|
|
|
|
|
cpCaseViewByFusionId(oldFusionId,entity.getFusionId(),newCaseId);
|
|
|
cpFusionNum(oldFusionId,entity.getFusionId());
|
|
|
+
|
|
|
+ cpFusionMeter(oldFusionId,entity.getFusionId());
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -438,31 +440,26 @@ public class CopyCaseService {
|
|
|
return;
|
|
|
}
|
|
|
for (FusionNum entity : listByCaseId) {
|
|
|
- Integer oldFusionNumId = entity.getFusionNumId();
|
|
|
entity.setFusionNumId(null);
|
|
|
entity.setFusionId(newFusionId);
|
|
|
fusionNumService.save(entity);
|
|
|
-
|
|
|
- Integer newFusionNumId = entity.getFusionNumId();
|
|
|
-
|
|
|
- cpFusionMeter(oldFusionId,oldFusionNumId,newFusionNumId,newFusionId);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 复制案件测量数据
|
|
|
*/
|
|
|
- private void cpFusionMeter(Integer oldFusionId,Integer oldFusionNumId, Integer newFusionNumId,Integer newFusionId) {
|
|
|
- List<FusionMeter> listByCaseId = fusionMeterService.getByFusionNumId(oldFusionId,oldFusionNumId);
|
|
|
+ private void cpFusionMeter(Integer oldFusionId,Integer newFusionId) {
|
|
|
+ List<FusionMeter> listByCaseId = fusionMeterService.getListByFusionId(oldFusionId,null);
|
|
|
if(listByCaseId == null || listByCaseId.isEmpty()){
|
|
|
return;
|
|
|
}
|
|
|
for (FusionMeter entity : listByCaseId) {
|
|
|
- String oldPosition = entity.getPosition();
|
|
|
+ //String oldPosition = entity.getPosition();
|
|
|
entity.setFusionMeterId(null);
|
|
|
entity.setFusionId(newFusionId);
|
|
|
- String newPosition = oldPosition.replaceAll("\"fusionNumId\":\""+oldFusionNumId+"\"","\"fusionNumId\":\""+newFusionNumId+"\"");
|
|
|
- entity.setPosition(newPosition);
|
|
|
+ //String newPosition = oldPosition.replaceAll("\"fusionNumId\":\""+oldFusionNumId+"\"","\"fusionNumId\":\""+newFusionNumId+"\"");
|
|
|
+ //entity.setPosition(newPosition);
|
|
|
fusionMeterService.save(entity);
|
|
|
}
|
|
|
}
|