diff --git a/src/main/java/com/glxp/api/service/sync/SpsSyncDownloadService.java b/src/main/java/com/glxp/api/service/sync/SpsSyncDownloadService.java index 43b0b916..84cee2fa 100644 --- a/src/main/java/com/glxp/api/service/sync/SpsSyncDownloadService.java +++ b/src/main/java/com/glxp/api/service/sync/SpsSyncDownloadService.java @@ -539,39 +539,39 @@ public class SpsSyncDownloadService { if (needExec(info.getTypeBus())) { Map map = basicExportStatusTimeInfo(now, BasicExportStatusTimeEnum.BASIC_BUSSINESS_TYPE, createFile); totalTimeMap.put(BasicExportStatusTimeEnum.BASIC_BUSSINESS_TYPE, map); - List ioCodeLostList = bussinessTypeService.list(Wrappers.lambdaQuery(BasicBussinessTypeEntity.class) + List bussinessTypeEntities = bussinessTypeService.list(Wrappers.lambdaQuery(BasicBussinessTypeEntity.class) .le((boolean) map.get("isNew"), BasicBussinessTypeEntity::getUpdateTime, now) .between(!(boolean) map.get("isNew"), BasicBussinessTypeEntity::getUpdateTime , map.get("oldDate"), now) ); - if (CollectionUtil.isNotEmpty(ioCodeLostList)) { - jsonMap.put(BasicBussinessTypeEntity.class.getSimpleName(), ioCodeLostList); + if (CollectionUtil.isNotEmpty(bussinessTypeEntities)) { + jsonMap.put(BasicBussinessTypeEntity.class.getSimpleName(), bussinessTypeEntities); } } //确认有开启扫码单据类型同步 if (needExec(info.getTypeScan())) { Map map = basicExportStatusTimeInfo(now, BasicExportStatusTimeEnum.BASIC_BUSTYPE_CHANGE, createFile); totalTimeMap.put(BasicExportStatusTimeEnum.BASIC_BUSTYPE_CHANGE, map); - List ioCodeRelList = busTypeChangeService.list(Wrappers.lambdaQuery(BasicBusTypeChangeEntity.class) + List busTypeChangeEntities = busTypeChangeService.list(Wrappers.lambdaQuery(BasicBusTypeChangeEntity.class) .le((boolean) map.get("isNew"), BasicBusTypeChangeEntity::getUpdateTime, now) .between(!(boolean) map.get("isNew"), BasicBusTypeChangeEntity::getUpdateTime , map.get("oldDate"), now) ); - if (CollectionUtil.isNotEmpty(ioCodeRelList)) { - jsonMap.put(BasicBusTypeChangeEntity.class.getSimpleName(), ioCodeRelList); + if (CollectionUtil.isNotEmpty(busTypeChangeEntities)) { + jsonMap.put(BasicBusTypeChangeEntity.class.getSimpleName(), busTypeChangeEntities); } } //确认有开启第三方单据类型同步 if (needExec(info.getTypeThird())) { Map map = basicExportStatusTimeInfo(now, BasicExportStatusTimeEnum.THR_BUSTYPE_ORIGIN, createFile); totalTimeMap.put(BasicExportStatusTimeEnum.THR_BUSTYPE_ORIGIN, map); - List ioCodeRelList = thrBusTypeOriginService.list(Wrappers.lambdaQuery(ThrBusTypeOriginEntity.class) + List thrBusTypeOriginEntities = thrBusTypeOriginService.list(Wrappers.lambdaQuery(ThrBusTypeOriginEntity.class) .le((boolean) map.get("isNew"), ThrBusTypeOriginEntity::getUpdateTime, now) .between(!(boolean) map.get("isNew"), ThrBusTypeOriginEntity::getUpdateTime , map.get("oldDate"), now) ); - if (CollectionUtil.isNotEmpty(ioCodeRelList)) { - jsonMap.put(ThrBusTypeOriginEntity.class.getSimpleName(), ioCodeRelList); + if (CollectionUtil.isNotEmpty(thrBusTypeOriginEntities)) { + jsonMap.put(ThrBusTypeOriginEntity.class.getSimpleName(), thrBusTypeOriginEntities); } }