|
|
@ -115,10 +115,10 @@ public class SpsSyncDownloadService {
|
|
|
|
BasicExportStatusEntity basicExportStatusEntity = new BasicExportStatusEntity();
|
|
|
|
BasicExportStatusEntity basicExportStatusEntity = new BasicExportStatusEntity();
|
|
|
|
basicExportStatusEntity.setId(CustomUtil.getId());
|
|
|
|
basicExportStatusEntity.setId(CustomUtil.getId());
|
|
|
|
basicExportStatusEntity.setIdDatas(ConstantStatus.SYNC_DI_PRODUCTS);
|
|
|
|
basicExportStatusEntity.setIdDatas(ConstantStatus.SYNC_DI_PRODUCTS);
|
|
|
|
basicExportStatusEntity.setType(BasicProcessStatus.NEW_ALL_DI);
|
|
|
|
basicExportStatusEntity.setType(BasicExportTypeEnum.COUNTRY_DI_DATA.getRemark());
|
|
|
|
basicExportStatusEntity.setUpdateTime(new Date());
|
|
|
|
basicExportStatusEntity.setUpdateTime(new Date());
|
|
|
|
basicExportStatusEntity.setStatus(0);
|
|
|
|
|
|
|
|
basicExportStatusEntity.setStartTime(new Date());
|
|
|
|
basicExportStatusEntity.setStartTime(new Date());
|
|
|
|
|
|
|
|
basicExportStatusEntity.setStatus(BasicExportStatusEnum.WAIT_TRIGGERED.getCode());
|
|
|
|
basicExportStatusEntity.setScheduleType(BasicProcessStatus.SCHEDULE_NORMAL);
|
|
|
|
basicExportStatusEntity.setScheduleType(BasicProcessStatus.SCHEDULE_NORMAL);
|
|
|
|
basicExportService.insertExportStatus(basicExportStatusEntity);
|
|
|
|
basicExportService.insertExportStatus(basicExportStatusEntity);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -242,7 +242,7 @@ public class SpsSyncDownloadService {
|
|
|
|
, map.get("oldDate"), now)
|
|
|
|
, map.get("oldDate"), now)
|
|
|
|
);
|
|
|
|
);
|
|
|
|
if (CollectionUtil.isNotEmpty(hospTypeList)) {
|
|
|
|
if (CollectionUtil.isNotEmpty(hospTypeList)) {
|
|
|
|
jsonMap.put(BasicExportStatusTimeEntity.class.getName(), hospTypeList);
|
|
|
|
jsonMap.put(BasicExportStatusTimeEntity.class.getSimpleName(), hospTypeList);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
List<UdiRelevanceEntity> udiRelevanceList = udiRelevanceService.list(Wrappers.lambdaQuery(UdiRelevanceEntity.class)
|
|
|
|
List<UdiRelevanceEntity> udiRelevanceList = udiRelevanceService.list(Wrappers.lambdaQuery(UdiRelevanceEntity.class)
|
|
|
|
.le((boolean) map.get("isNew"), UdiRelevanceEntity::getUpdateTime, now)
|
|
|
|
.le((boolean) map.get("isNew"), UdiRelevanceEntity::getUpdateTime, now)
|
|
|
@ -250,7 +250,7 @@ public class SpsSyncDownloadService {
|
|
|
|
, map.get("oldDate"), now)
|
|
|
|
, map.get("oldDate"), now)
|
|
|
|
);
|
|
|
|
);
|
|
|
|
if (CollectionUtil.isNotEmpty(udiRelevanceList)) {
|
|
|
|
if (CollectionUtil.isNotEmpty(udiRelevanceList)) {
|
|
|
|
jsonMap.put(UdiRelevanceEntity.class.getName(), udiRelevanceList);
|
|
|
|
jsonMap.put(UdiRelevanceEntity.class.getSimpleName(), udiRelevanceList);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
List<BasicProductsEntity> productsList = basicProductsDao.selectList(Wrappers.lambdaQuery(BasicProductsEntity.class)
|
|
|
|
List<BasicProductsEntity> productsList = basicProductsDao.selectList(Wrappers.lambdaQuery(BasicProductsEntity.class)
|
|
|
|
.le((boolean) map.get("isNew"), BasicProductsEntity::getUpdateTime, now)
|
|
|
|
.le((boolean) map.get("isNew"), BasicProductsEntity::getUpdateTime, now)
|
|
|
@ -258,7 +258,7 @@ public class SpsSyncDownloadService {
|
|
|
|
, map.get("oldDate"), now)
|
|
|
|
, map.get("oldDate"), now)
|
|
|
|
);
|
|
|
|
);
|
|
|
|
if (CollectionUtil.isNotEmpty(productsList)) {
|
|
|
|
if (CollectionUtil.isNotEmpty(productsList)) {
|
|
|
|
jsonMap.put(BasicProductsEntity.class.getName(), productsList);
|
|
|
|
jsonMap.put(BasicProductsEntity.class.getSimpleName(), productsList);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
List<CompanyProductRelevanceEntity> relevanceList = relevanceService.list(Wrappers.lambdaQuery(CompanyProductRelevanceEntity.class)
|
|
|
|
List<CompanyProductRelevanceEntity> relevanceList = relevanceService.list(Wrappers.lambdaQuery(CompanyProductRelevanceEntity.class)
|
|
|
|
.le((boolean) map.get("isNew"), CompanyProductRelevanceEntity::getUpdateTime, now)
|
|
|
|
.le((boolean) map.get("isNew"), CompanyProductRelevanceEntity::getUpdateTime, now)
|
|
|
@ -266,7 +266,7 @@ public class SpsSyncDownloadService {
|
|
|
|
, map.get("oldDate"), now)
|
|
|
|
, map.get("oldDate"), now)
|
|
|
|
);
|
|
|
|
);
|
|
|
|
if (CollectionUtil.isNotEmpty(relevanceList)) {
|
|
|
|
if (CollectionUtil.isNotEmpty(relevanceList)) {
|
|
|
|
jsonMap.put(CompanyProductRelevanceEntity.class.getName(), relevanceList);
|
|
|
|
jsonMap.put(CompanyProductRelevanceEntity.class.getSimpleName(), relevanceList);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//确认有开启往来单位字典同步
|
|
|
|
//确认有开启往来单位字典同步
|
|
|
@ -279,7 +279,7 @@ public class SpsSyncDownloadService {
|
|
|
|
, map.get("oldDate"), now)
|
|
|
|
, map.get("oldDate"), now)
|
|
|
|
);
|
|
|
|
);
|
|
|
|
if (CollectionUtil.isNotEmpty(corpList)) {
|
|
|
|
if (CollectionUtil.isNotEmpty(corpList)) {
|
|
|
|
jsonMap.put(BasicCorpEntity.class.getName(), corpList);
|
|
|
|
jsonMap.put(BasicCorpEntity.class.getSimpleName(), corpList);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -293,7 +293,7 @@ public class SpsSyncDownloadService {
|
|
|
|
, map.get("oldDate"), now)
|
|
|
|
, map.get("oldDate"), now)
|
|
|
|
);
|
|
|
|
);
|
|
|
|
if (CollectionUtil.isNotEmpty(supCertList)) {
|
|
|
|
if (CollectionUtil.isNotEmpty(supCertList)) {
|
|
|
|
jsonMap.put(SupCertEntity.class.getName(), supCertList);
|
|
|
|
jsonMap.put(SupCertEntity.class.getSimpleName(), supCertList);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
List<SupCertSetEntity> supCertSetList = supCertSetService.list(Wrappers.lambdaQuery(SupCertSetEntity.class)
|
|
|
|
List<SupCertSetEntity> supCertSetList = supCertSetService.list(Wrappers.lambdaQuery(SupCertSetEntity.class)
|
|
|
|
.le((boolean) map.get("isNew"), SupCertSetEntity::getUpdateTime, now)
|
|
|
|
.le((boolean) map.get("isNew"), SupCertSetEntity::getUpdateTime, now)
|
|
|
@ -301,7 +301,7 @@ public class SpsSyncDownloadService {
|
|
|
|
, map.get("oldDate"), now)
|
|
|
|
, map.get("oldDate"), now)
|
|
|
|
);
|
|
|
|
);
|
|
|
|
if (CollectionUtil.isNotEmpty(supCertSetList)) {
|
|
|
|
if (CollectionUtil.isNotEmpty(supCertSetList)) {
|
|
|
|
jsonMap.put(SupCertSetEntity.class.getName(), supCertSetList);
|
|
|
|
jsonMap.put(SupCertSetEntity.class.getSimpleName(), supCertSetList);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
List<SupCompanyEntity> supCompanyList = supCompanyService.list(Wrappers.lambdaQuery(SupCompanyEntity.class)
|
|
|
|
List<SupCompanyEntity> supCompanyList = supCompanyService.list(Wrappers.lambdaQuery(SupCompanyEntity.class)
|
|
|
|
.le((boolean) map.get("isNew"), SupCompanyEntity::getUpdateTime, now)
|
|
|
|
.le((boolean) map.get("isNew"), SupCompanyEntity::getUpdateTime, now)
|
|
|
@ -309,7 +309,7 @@ public class SpsSyncDownloadService {
|
|
|
|
, map.get("oldDate"), now)
|
|
|
|
, map.get("oldDate"), now)
|
|
|
|
);
|
|
|
|
);
|
|
|
|
if (CollectionUtil.isNotEmpty(supCompanyList)) {
|
|
|
|
if (CollectionUtil.isNotEmpty(supCompanyList)) {
|
|
|
|
jsonMap.put(SupCompanyEntity.class.getName(), supCompanyList);
|
|
|
|
jsonMap.put(SupCompanyEntity.class.getSimpleName(), supCompanyList);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
List<SupManufacturerEntity> supManufacturerList = supManufacturerService.list(Wrappers.lambdaQuery(SupManufacturerEntity.class)
|
|
|
|
List<SupManufacturerEntity> supManufacturerList = supManufacturerService.list(Wrappers.lambdaQuery(SupManufacturerEntity.class)
|
|
|
|
.le((boolean) map.get("isNew"), SupManufacturerEntity::getUpdateTime, now)
|
|
|
|
.le((boolean) map.get("isNew"), SupManufacturerEntity::getUpdateTime, now)
|
|
|
@ -317,7 +317,7 @@ public class SpsSyncDownloadService {
|
|
|
|
, map.get("oldDate"), now)
|
|
|
|
, map.get("oldDate"), now)
|
|
|
|
);
|
|
|
|
);
|
|
|
|
if (CollectionUtil.isNotEmpty(supManufacturerList)) {
|
|
|
|
if (CollectionUtil.isNotEmpty(supManufacturerList)) {
|
|
|
|
jsonMap.put(SupManufacturerEntity.class.getName(), supManufacturerList);
|
|
|
|
jsonMap.put(SupManufacturerEntity.class.getSimpleName(), supManufacturerList);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
List<SupProductEntity> supProductList = supProductService.list(Wrappers.lambdaQuery(SupProductEntity.class)
|
|
|
|
List<SupProductEntity> supProductList = supProductService.list(Wrappers.lambdaQuery(SupProductEntity.class)
|
|
|
|
.le((boolean) map.get("isNew"), SupProductEntity::getUpdateTime, now)
|
|
|
|
.le((boolean) map.get("isNew"), SupProductEntity::getUpdateTime, now)
|
|
|
@ -325,7 +325,7 @@ public class SpsSyncDownloadService {
|
|
|
|
, map.get("oldDate"), now)
|
|
|
|
, map.get("oldDate"), now)
|
|
|
|
);
|
|
|
|
);
|
|
|
|
if (CollectionUtil.isNotEmpty(supProductList)) {
|
|
|
|
if (CollectionUtil.isNotEmpty(supProductList)) {
|
|
|
|
jsonMap.put(SupProductEntity.class.getName(), supProductList);
|
|
|
|
jsonMap.put(SupProductEntity.class.getSimpleName(), supProductList);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|