单据信息详情展示问题,bug修复

version1
anthonyywj2 3 years ago
parent 0a17889c4e
commit 8fb9e05c83

@ -1,6 +1,7 @@
package com.glxp.sale.admin.controller.sync;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.TypeReference;
import com.glxp.sale.admin.constant.BasicProcessStatus;
@ -87,9 +88,12 @@ public class BasicDownloadController {
} else if (basicExportStatusRequest.getType() == BasicProcessStatus.NEW_ALL_UDIS) {//国家库信息
BasicExportStatusEntity basicExportStatusEntity = basicExportService.findById(basicExportStatusRequest.getId());
String data = (String) redisUtil.get(basicExportStatusRequest.getId() + "");
SpSyncUdiResponse spSyncUdiResponse = JSONObject.parseObject(data, new TypeReference<SpSyncUdiResponse>() {
SpSyncUdiResponse spSyncUdiResponse = null;
if (StrUtil.isNotEmpty(data)) {
spSyncUdiResponse = JSONObject.parseObject(data, new TypeReference<SpSyncUdiResponse>() {
});
spSyncUdiResponse.setTaskId(basicExportStatusEntity.getTaskId());
}
basicExportService.finished(basicExportStatusRequest.getId());
return ResultVOUtils.success(spSyncUdiResponse);
}

@ -34,51 +34,54 @@ public class SpsSyncDataResponse {
@Override
public String toString() {
StringBuffer remark = new StringBuffer();
if (CollUtil.isNotEmpty(invWarehouseEntities)) {
remark.append("仓库信息:").append(invWarehouseEntities.size()).append(" 条\n");
}
if (CollUtil.isNotEmpty(invSubWarehouseEntities)) {
remark.append("分库信息:").append(invSubWarehouseEntities.size()).append(" 条\n");
}
if (CollUtil.isNotEmpty(warehouseBussinessTypeEntities)) {
remark.append("仓库用户信息:").append(warehouseBussinessTypeEntities.size()).append(" 条\n");
}
if (CollUtil.isNotEmpty(warehouseBussinessTypeEntities)) {
remark.append("仓库单据类型:").append(warehouseBussinessTypeEntities.size()).append(" 条\n");
}
if (CollUtil.isNotEmpty(udiRelevanceEntities)) {
remark.append("耗材字典:").append(udiRelevanceEntities.size()).append(" 条\n");
}
if (CollUtil.isNotEmpty(udiInfoEntities)) {
remark.append("产品信息:").append(udiInfoEntities.size()).append(" 条\n");
}
if (CollUtil.isNotEmpty(basicUnitMaintainEntities)) {
remark.append("往来单位:").append(basicUnitMaintainEntities.size()).append(" 条\n");
}
if (CollUtil.isNotEmpty(companyProductRelevanceEntities)) {
remark.append("供应商关联产品信息:").append(companyProductRelevanceEntities.size()).append(" 条\n");
}
if (CollUtil.isNotEmpty(thrInvWarehouseEntities)) {
remark.append("第三方仓库信息:").append(thrInvWarehouseEntities.size()).append(" 条\n");
}
if (CollUtil.isNotEmpty(thrSubInvWarehouseEntities)) {
remark.append("第三方仓库分库信息:").append(thrSubInvWarehouseEntities.size()).append(" 条\n");
}
if (CollUtil.isNotEmpty(thrCorpEntities)) {
remark.append("第三方往来单位:").append(thrCorpEntities.size()).append(" 条\n");
}
if (CollUtil.isNotEmpty(thrProductsEntities)) {
remark.append("第三方产品信息:").append(thrProductsEntities.size()).append(" 条\n");
}
if (CollUtil.isNotEmpty(thrOrderEntities)) {
remark.append("第三方单据:").append(thrOrderEntities.size()).append(" 条\n");
}
if (CollUtil.isNotEmpty(thrOrderDetailEntities)) {
remark.append("第三方单据详情:").append(thrOrderDetailEntities.size()).append(" 条\n");
}
if (CollUtil.isNotEmpty(companyProductRelevanceEntities)) {
remark.append("公司产品信息:").append(companyProductRelevanceEntities.size()).append(" 条\n");
if (CollUtil.isNotEmpty(thrCorpEntities)) {
remark.append("第三方往来单位:").append(thrCorpEntities.size()).append(" 条\n");
}
if (CollUtil.isNotEmpty(udiRelevanceEntities)) {
remark.append("耗材字典:").append(udiRelevanceEntities.size()).append(" 条\n");
if (CollUtil.isNotEmpty(thrOrderEntities)) {
remark.append("第三方业务单据:").append(thrOrderEntities.size()).append(" 条\n");
}
// if (CollUtil.isNotEmpty(thrOrderDetailEntities)) {
// remark.append("第三方单据详情:").append(thrOrderDetailEntities.size()).append(" 条\n");
// }
if (CollUtil.isNotEmpty(authAdminList)) {
remark.append("用户信息:").append(authAdminList.size()).append(" 条\n");
}

Loading…
Cancel
Save