|
|
|
@ -293,7 +293,7 @@ public class HeartService {
|
|
|
|
|
map = basicExportStatusTimeInfo(now, BasicExportStatusTimeEnum.BASIC_PRODUCTS);
|
|
|
|
|
} else {
|
|
|
|
|
map = syncTimeMap;
|
|
|
|
|
now = syncTime;
|
|
|
|
|
now = syncTime;
|
|
|
|
|
}
|
|
|
|
|
List<BasicHospTypeEntity> hospTypeList = basicHospTypeDao.selectList(Wrappers.lambdaQuery(BasicHospTypeEntity.class)
|
|
|
|
|
.le((boolean) map.get("isNew"), BasicHospTypeEntity::getUpdateTime, now)
|
|
|
|
@ -349,7 +349,7 @@ public class HeartService {
|
|
|
|
|
map = basicExportStatusTimeInfo(now, BasicExportStatusTimeEnum.BASIC_CORP);
|
|
|
|
|
} else {
|
|
|
|
|
map = syncTimeMap;
|
|
|
|
|
now = syncTime;
|
|
|
|
|
now = syncTime;
|
|
|
|
|
}
|
|
|
|
|
List<BasicCorpEntity> corpList = corpDao.selectList(Wrappers.lambdaQuery(BasicCorpEntity.class)
|
|
|
|
|
.le((boolean) map.get("isNew"), BasicCorpEntity::getUpdateTime, now)
|
|
|
|
@ -372,7 +372,7 @@ public class HeartService {
|
|
|
|
|
map = basicExportStatusTimeInfo(now, BasicExportStatusTimeEnum.SUP_CERT);
|
|
|
|
|
} else {
|
|
|
|
|
map = syncTimeMap;
|
|
|
|
|
now = syncTime;
|
|
|
|
|
now = syncTime;
|
|
|
|
|
}
|
|
|
|
|
List<SupCertEntity> supCertList = supCertDao.selectList(Wrappers.lambdaQuery(SupCertEntity.class)
|
|
|
|
|
.le((boolean) map.get("isNew"), SupCertEntity::getUpdateTime, now)
|
|
|
|
@ -466,7 +466,7 @@ public class HeartService {
|
|
|
|
|
map = basicExportStatusTimeInfo(now, BasicExportStatusTimeEnum.IO_CODE_LOST);
|
|
|
|
|
} else {
|
|
|
|
|
map = syncTimeMap;
|
|
|
|
|
now = syncTime;
|
|
|
|
|
now = syncTime;
|
|
|
|
|
}
|
|
|
|
|
List<IoCodeLostEntity> ioCodeLostList = ioCodeLostMapper.selectList(Wrappers.lambdaQuery(IoCodeLostEntity.class)
|
|
|
|
|
.le((boolean) map.get("isNew"), IoCodeLostEntity::getUpdateTime, now)
|
|
|
|
@ -486,7 +486,7 @@ public class HeartService {
|
|
|
|
|
map = basicExportStatusTimeInfo(now, BasicExportStatusTimeEnum.IO_CODE_REL);
|
|
|
|
|
} else {
|
|
|
|
|
map = syncTimeMap;
|
|
|
|
|
now = syncTime;
|
|
|
|
|
now = syncTime;
|
|
|
|
|
}
|
|
|
|
|
List<IoCodeRelEntity> ioCodeRelList = ioCodeRelMapper.selectList(Wrappers.lambdaQuery(IoCodeRelEntity.class)
|
|
|
|
|
.le((boolean) map.get("isNew"), IoCodeRelEntity::getUpdateTime, now)
|
|
|
|
@ -558,7 +558,7 @@ public class HeartService {
|
|
|
|
|
map = basicExportStatusTimeInfo(now, BasicExportStatusTimeEnum.BASIC_BUSSINESS_TYPE);
|
|
|
|
|
} else {
|
|
|
|
|
map = syncTimeMap;
|
|
|
|
|
now = syncTime;
|
|
|
|
|
now = syncTime;
|
|
|
|
|
}
|
|
|
|
|
List<BasicBussinessTypeEntity> bussinessTypeEntities = bussinessTypeService.list(Wrappers.lambdaQuery(BasicBussinessTypeEntity.class)
|
|
|
|
|
.le((boolean) map.get("isNew"), BasicBussinessTypeEntity::getUpdateTime, now)
|
|
|
|
@ -578,7 +578,7 @@ public class HeartService {
|
|
|
|
|
map = basicExportStatusTimeInfo(now, BasicExportStatusTimeEnum.BASIC_BUSTYPE_CHANGE);
|
|
|
|
|
} else {
|
|
|
|
|
map = syncTimeMap;
|
|
|
|
|
now = syncTime;
|
|
|
|
|
now = syncTime;
|
|
|
|
|
}
|
|
|
|
|
List<BasicBusTypeChangeEntity> busTypeChangeList = busTypeChangeService.list(Wrappers.lambdaQuery(BasicBusTypeChangeEntity.class)
|
|
|
|
|
.le((boolean) map.get("isNew"), BasicBusTypeChangeEntity::getUpdateTime, now)
|
|
|
|
@ -601,7 +601,7 @@ public class HeartService {
|
|
|
|
|
map = basicExportStatusTimeInfo(now, BasicExportStatusTimeEnum.THR_BUSTYPE_ORIGIN);
|
|
|
|
|
} else {
|
|
|
|
|
map = syncTimeMap;
|
|
|
|
|
now = syncTime;
|
|
|
|
|
now = syncTime;
|
|
|
|
|
}
|
|
|
|
|
List<ThrBusTypeOriginEntity> thrBusTypeOriginEntities = thrBusTypeOriginService.list(Wrappers.lambdaQuery(ThrBusTypeOriginEntity.class)
|
|
|
|
|
.le((boolean) map.get("isNew"), ThrBusTypeOriginEntity::getUpdateTime, now)
|
|
|
|
@ -655,7 +655,7 @@ public class HeartService {
|
|
|
|
|
map = basicExportStatusTimeInfo(now, BasicExportStatusTimeEnum.DEPT_DATA);
|
|
|
|
|
} else {
|
|
|
|
|
map = syncTimeMap;
|
|
|
|
|
now = syncTime;
|
|
|
|
|
now = syncTime;
|
|
|
|
|
}
|
|
|
|
|
List<DeptEntity> deptEntityList = deptService.list(Wrappers.lambdaQuery(DeptEntity.class)
|
|
|
|
|
.le((boolean) map.get("isNew"), DeptEntity::getUpdateTime, now)
|
|
|
|
@ -688,7 +688,7 @@ public class HeartService {
|
|
|
|
|
map = basicExportStatusTimeInfo(now, BasicExportStatusTimeEnum.WAREHOUSE_DICT);
|
|
|
|
|
} else {
|
|
|
|
|
map = syncTimeMap;
|
|
|
|
|
now = syncTime;
|
|
|
|
|
now = syncTime;
|
|
|
|
|
}
|
|
|
|
|
List<InvWarehouseEntity> warehouseEntityList = warehouseService.list(Wrappers.lambdaQuery(InvWarehouseEntity.class)
|
|
|
|
|
.le((boolean) map.get("isNew"), InvWarehouseEntity::getUpdateTime, now)
|
|
|
|
@ -747,7 +747,7 @@ public class HeartService {
|
|
|
|
|
map = basicExportStatusTimeInfo(now, BasicExportStatusTimeEnum.USER_DATA);
|
|
|
|
|
} else {
|
|
|
|
|
map = syncTimeMap;
|
|
|
|
|
now = syncTime;
|
|
|
|
|
now = syncTime;
|
|
|
|
|
}
|
|
|
|
|
List<AuthAdmin> adminList = adminService.list(Wrappers.lambdaQuery(AuthAdmin.class)
|
|
|
|
|
.le((boolean) map.get("isNew"), AuthAdmin::getLastModifyTime, now)
|
|
|
|
@ -808,7 +808,7 @@ public class HeartService {
|
|
|
|
|
map = basicExportStatusTimeInfo(now, BasicExportStatusTimeEnum.THR_DEPT);
|
|
|
|
|
} else {
|
|
|
|
|
map = syncTimeMap;
|
|
|
|
|
now = syncTime;
|
|
|
|
|
now = syncTime;
|
|
|
|
|
}
|
|
|
|
|
List<ThrDeptEntity> deptEntityList = thrDeptService.list(Wrappers.lambdaQuery(ThrDeptEntity.class)
|
|
|
|
|
.le((boolean) map.get("isNew"), ThrDeptEntity::getUpdateTime, now)
|
|
|
|
@ -829,7 +829,7 @@ public class HeartService {
|
|
|
|
|
map = basicExportStatusTimeInfo(now, BasicExportStatusTimeEnum.THR_WAREHOUSE);
|
|
|
|
|
} else {
|
|
|
|
|
map = syncTimeMap;
|
|
|
|
|
now = syncTime;
|
|
|
|
|
now = syncTime;
|
|
|
|
|
}
|
|
|
|
|
List<ThrInvWarehouseEntity> warehouseEntityList = thrInvWarehouseService.list(Wrappers.lambdaQuery(ThrInvWarehouseEntity.class)
|
|
|
|
|
.le((boolean) map.get("isNew"), ThrInvWarehouseEntity::getUpdateTime, now)
|
|
|
|
@ -852,7 +852,7 @@ public class HeartService {
|
|
|
|
|
map = basicExportStatusTimeInfo(now, BasicExportStatusTimeEnum.THR_PRODUCTS);
|
|
|
|
|
} else {
|
|
|
|
|
map = syncTimeMap;
|
|
|
|
|
now = syncTime;
|
|
|
|
|
now = syncTime;
|
|
|
|
|
}
|
|
|
|
|
List<ThrProductsEntity> productsEntityList = thrProductsService.list(Wrappers.lambdaQuery(ThrProductsEntity.class)
|
|
|
|
|
.le((boolean) map.get("isNew"), ThrProductsEntity::getUpdateTime, now)
|
|
|
|
@ -875,7 +875,7 @@ public class HeartService {
|
|
|
|
|
map = basicExportStatusTimeInfo(now, BasicExportStatusTimeEnum.THR_CORP);
|
|
|
|
|
} else {
|
|
|
|
|
map = syncTimeMap;
|
|
|
|
|
now = syncTime;
|
|
|
|
|
now = syncTime;
|
|
|
|
|
}
|
|
|
|
|
List<ThrCorpEntity> corpEntities = thrCorpService.list(Wrappers.lambdaQuery(ThrCorpEntity.class)
|
|
|
|
|
.le((boolean) map.get("isNew"), ThrCorpEntity::getUpdateTime, now)
|
|
|
|
@ -930,7 +930,7 @@ public class HeartService {
|
|
|
|
|
map = basicExportStatusTimeInfo(now, BasicExportStatusTimeEnum.SYSTEM_PARAM_CONFIG);
|
|
|
|
|
} else {
|
|
|
|
|
map = syncTimeMap;
|
|
|
|
|
now = syncTime;
|
|
|
|
|
now = syncTime;
|
|
|
|
|
}
|
|
|
|
|
List<SystemParamConfigEntity> systemParamConfigEntities = systemParamConfigService.list(Wrappers.lambdaQuery(SystemParamConfigEntity.class)
|
|
|
|
|
.le((boolean) map.get("isNew"), SystemParamConfigEntity::getUpdateTime, now)
|
|
|
|
@ -949,7 +949,7 @@ public class HeartService {
|
|
|
|
|
map = basicExportStatusTimeInfo(now, BasicExportStatusTimeEnum.ENTRUST_ACCEPT);
|
|
|
|
|
} else {
|
|
|
|
|
map = syncTimeMap;
|
|
|
|
|
now = syncTime;
|
|
|
|
|
now = syncTime;
|
|
|
|
|
}
|
|
|
|
|
List<EntrustReceEntity> entrustReceEntities = entrustReceService.list(Wrappers.lambdaQuery(EntrustReceEntity.class)
|
|
|
|
|
.le((boolean) map.get("isNew"), EntrustReceEntity::getUpdateTime, now)
|
|
|
|
@ -970,7 +970,7 @@ public class HeartService {
|
|
|
|
|
map = basicExportStatusTimeInfo(now, BasicExportStatusTimeEnum.PRINT_CONFIG);
|
|
|
|
|
} else {
|
|
|
|
|
map = syncTimeMap;
|
|
|
|
|
now = syncTime;
|
|
|
|
|
now = syncTime;
|
|
|
|
|
}
|
|
|
|
|
List<SystemPDFModuleEntity> systemPDFModuleEntities = systemPDFModuleService.list(Wrappers.lambdaQuery(SystemPDFModuleEntity.class)
|
|
|
|
|
.le((boolean) map.get("isNew"), SystemPDFModuleEntity::getUpdate_time, now)
|
|
|
|
@ -1057,7 +1057,7 @@ public class HeartService {
|
|
|
|
|
map = basicExportStatusTimeInfo(now, BasicExportStatusTimeEnum.SCAN_CHANGE);
|
|
|
|
|
} else {
|
|
|
|
|
map = syncTimeMap;
|
|
|
|
|
now = syncTime;
|
|
|
|
|
now = syncTime;
|
|
|
|
|
}
|
|
|
|
|
List<BasicBusTypePreEntity> basicBusTypePreEntities = iBasicBusTypePreService.list(Wrappers.lambdaQuery(BasicBusTypePreEntity.class)
|
|
|
|
|
.le((boolean) map.get("isNew"), BasicBusTypePreEntity::getUpdateTime, now)
|
|
|
|
@ -1076,7 +1076,7 @@ public class HeartService {
|
|
|
|
|
map = basicExportStatusTimeInfo(now, BasicExportStatusTimeEnum.BUS_TYPE_CHANGE);
|
|
|
|
|
} else {
|
|
|
|
|
map = syncTimeMap;
|
|
|
|
|
now = syncTime;
|
|
|
|
|
now = syncTime;
|
|
|
|
|
}
|
|
|
|
|
List<BasicBusTypeChangeEntity> basicBusTypeChangeEntities = iBasicBusTypeChangeService.list(Wrappers.lambdaQuery(BasicBusTypeChangeEntity.class)
|
|
|
|
|
.le((boolean) map.get("isNew"), BasicBusTypeChangeEntity::getUpdateTime, now)
|
|
|
|
@ -1415,6 +1415,14 @@ public class HeartService {
|
|
|
|
|
basicDownloadStatusEntity.setUpdateTime(new Date());
|
|
|
|
|
basicDownloadStatusEntity.setEndTime(new Date());
|
|
|
|
|
basicDownloadStatusEntity.setStatus(StatusEnum.SUCCESS.getCode());
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
String fileFullPath = writeFile(filePrefix, NEW_ALL_ORDER, response.getData());
|
|
|
|
|
basicDownloadStatusEntity.setCacheFilePath(fileFullPath);
|
|
|
|
|
} catch (IOException e) {
|
|
|
|
|
throw new RuntimeException(e);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
basicDownloadService.updateDownloadStatus(basicDownloadStatusEntity);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|