diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/GuardarDatosTaskServiceImpl.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/GuardarDatosTaskServiceImpl.java index d819c24758..a619e082a3 100644 --- a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/GuardarDatosTaskServiceImpl.java +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/GuardarDatosTaskServiceImpl.java @@ -73,28 +73,7 @@ public class GuardarDatosTaskServiceImpl implements GuardarDatosTaskService { @Override public void guardarDatosTask(PreserVationFormDTO dto) { - if (StringUtils.isBlank(dto.getTableName())) { - caLoudongService.preserLouDongVation(dto); - pingfangService.preserPingFangVation(dto); - rentalService.preserRentalVation(dto); - residentService.preserResidentVation(dto); - rotatorsService.preserRotatorsVation(dto); - basegridService.preserBaseGridVation(dto); - bmGridService.getPreserBmGridVation(dto); - communityService.getPreserCommunityVation(dto); - wghDywgService.getPreserDywgVation(dto); - wghJqzService.getPreserWghjqzVation(dto); - wghJxcsService.preserWghJxcsVation(dto); - wghJyzService.getPreserWghJyzVation(dto); - wghSjxxbService.getPreserSjxxVation(dto); - wghSqxxService.getPreserWghSqxxVation(dto); - wghSzcgwghService.getPreserWghSzcgwghVation(dto); - wghSzzrwgService.getPreserWghSzzrwgVation(dto); - wghWhpdwService.getPreserWhpdwVation(dto); - wghYjbmcsService.getPreserWghYjbmcsVation(dto); - wghYqhjzService.getPreserWghYqhjzVation(dto); - } else { - + if (StringUtils.isNotBlank(dto.getTableName())) { switch (dto.getTableName()) { case CaWghDataConstant.UNICOM_LOUDONG: caLoudongService.preserLouDongVation(dto); @@ -157,6 +136,8 @@ public class GuardarDatosTaskServiceImpl implements GuardarDatosTaskService { wghYqhjzService.getPreserWghYqhjzVation(dto); break; } + } else{ + throw new Error("没传名字"); } } }