|
|
|
@ -31,22 +31,36 @@ public class SpsSyncDownloadController {
|
|
|
|
|
BasicExportStatusEntity basicExportStatusEntity = basicExportService.findByData(ConstantStatus.SYNC_BASIC_DATA, 0);
|
|
|
|
|
String logs = "";
|
|
|
|
|
if (basicExportStatusEntity != null) {
|
|
|
|
|
|
|
|
|
|
if (CollUtil.isNotEmpty(baseResponse.getData().getInvWarehouseEntities()))
|
|
|
|
|
logs = logs + "仓库字典:" + baseResponse.getData().getInvWarehouseEntities().size() + "条\n";
|
|
|
|
|
if (CollUtil.isNotEmpty(baseResponse.getData().getInvSubWarehouseEntities()))
|
|
|
|
|
logs = logs + "分库信息:" + baseResponse.getData().getInvSubWarehouseEntities().size() + "条\n";
|
|
|
|
|
if (CollUtil.isNotEmpty(baseResponse.getData().getWarehouseUserEntities())) {
|
|
|
|
|
logs = logs + "仓库用户信息:" + baseResponse.getData().getWarehouseUserEntities().size() + "条\n";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (CollUtil.isNotEmpty(baseResponse.getData().getUdiRelevanceEntities()))
|
|
|
|
|
logs = logs + "耗材字典:" + baseResponse.getData().getUdiRelevanceEntities().size() + "条\n";
|
|
|
|
|
if (CollUtil.isNotEmpty(baseResponse.getData().getUdiInfoEntities())) {
|
|
|
|
|
logs = logs + "产品信息:" + baseResponse.getData().getUdiInfoEntities().size() + "条\n";
|
|
|
|
|
}
|
|
|
|
|
if (CollUtil.isNotEmpty(baseResponse.getData().getBasicUnitMaintainEntities()))
|
|
|
|
|
logs = logs + "往来单位:" + baseResponse.getData().getBasicUnitMaintainEntities().size() + "条\n";
|
|
|
|
|
if (CollUtil.isNotEmpty(baseResponse.getData().getCompanyProductRelevanceEntities()))
|
|
|
|
|
logs = logs + "供应商关联产品信息:" + baseResponse.getData().getCompanyProductRelevanceEntities().size() + "条\n";
|
|
|
|
|
if (CollUtil.isNotEmpty(baseResponse.getData().getInvWarehouseEntities()))
|
|
|
|
|
logs = logs + "仓库字典:" + baseResponse.getData().getInvWarehouseEntities().size() + "条\n";
|
|
|
|
|
|
|
|
|
|
if (CollUtil.isNotEmpty(baseResponse.getData().getThrInvWarehouseEntities()))
|
|
|
|
|
logs = logs + "第三方仓库字典:" + baseResponse.getData().getThrInvWarehouseEntities().size() + "条\n";
|
|
|
|
|
if (CollUtil.isNotEmpty(baseResponse.getData().getThrOrderEntities()))
|
|
|
|
|
logs = logs + "第三方业务单据:" + baseResponse.getData().getThrOrderEntities().size() + "条\n";
|
|
|
|
|
if (CollUtil.isNotEmpty(baseResponse.getData().getThrSubInvWarehouseEntities()))
|
|
|
|
|
logs = logs + "第三方仓库分库字典:" + baseResponse.getData().getThrSubInvWarehouseEntities().size() + "条\n";
|
|
|
|
|
if (CollUtil.isNotEmpty(baseResponse.getData().getThrProductsEntities()))
|
|
|
|
|
logs = logs + "第三方产品信息:" + baseResponse.getData().getThrProductsEntities().size() + "条\n";
|
|
|
|
|
if (CollUtil.isNotEmpty(baseResponse.getData().getThrCorpEntities()))
|
|
|
|
|
logs = logs + "第三方往来单位:" + baseResponse.getData().getThrCorpEntities().size() + "条\n";
|
|
|
|
|
if (CollUtil.isNotEmpty(baseResponse.getData().getThrOrderEntities()))
|
|
|
|
|
logs = logs + "第三方业务单据:" + baseResponse.getData().getThrOrderEntities().size() + "条\n";
|
|
|
|
|
if (CollUtil.isNotEmpty(baseResponse.getData().getAuthAdminList()))
|
|
|
|
|
logs = logs + "系统用户信息:" + baseResponse.getData().getAuthAdminList().size() + "条\n";
|
|
|
|
|
basicExportStatusEntity.setRemark(logs);
|
|
|
|
@ -91,6 +105,11 @@ public class SpsSyncDownloadController {
|
|
|
|
|
String logs = "";
|
|
|
|
|
if (basicExportStatusEntity != null) {
|
|
|
|
|
logs = logs + "单据:" + baseResponse.getData().getOrderEntities().size() + "条\n";
|
|
|
|
|
if (CollUtil.isNotEmpty(baseResponse.getData().getOrderDetailEntityList()))
|
|
|
|
|
logs = logs + "单据详情:" + baseResponse.getData().getOrderDetailEntityList().size() + "条\n";
|
|
|
|
|
if (CollUtil.isNotEmpty(baseResponse.getData().getWarehouseEntityList()))
|
|
|
|
|
logs = logs + "单据条码信息:" + baseResponse.getData().getWarehouseEntityList().size() + "条\n";
|
|
|
|
|
|
|
|
|
|
basicExportStatusEntity.setRemark(logs);
|
|
|
|
|
basicExportService.updateExportStatus(basicExportStatusEntity);
|
|
|
|
|
|
|
|
|
|