Commit 7039a676 authored by wangqiang's avatar wangqiang

修改采购计划导出人员是id的问题

parent 0f88feef
......@@ -99,7 +99,7 @@ public class PurchasePlanExcelDataVerifyListenner extends AnalysisEventListener<
//校验表格中的数据是否合法
List<StringBuffer> errList = checkPurchasePlanExcelData();
if (errList.size() > 0) {
throw new DxBusinessException("-1", "导入采购计划数据有误!!" + errList.toString());
throw new DxBusinessException("0", "导入采购计划数据有误!!" + errList.toString());
}
//清理list ,方便内存回收
......
......@@ -177,7 +177,8 @@ public class ExtPuchasePlanAttributeServiceImpl<V extends ExtPuchasePlanAttribut
extPuchasePlanExcelVO.setPurDesignFileSubmitTime(extPuchasePlanAttribute.getPurDesignFileSubmitTime());
extPuchasePlanExcelVO.setContractActualSigningTime(extPuchasePlanAttribute.getContractActualSigningTime());
extPuchasePlanExcelVO.setContractActualDeliveryTime(extPuchasePlanAttribute.getContractActualDeliveryTime());
extPuchasePlanExcelVO.setPurDesignFileManager(extPuchasePlanAttribute.getPurDesignFileManager());
Object purDesignFileManager = extPuchasePlanAttribute.getDynamicAttrs().get("userName");
extPuchasePlanExcelVO.setPurDesignFileManager(purDesignFileManager != null ? purDesignFileManager.toString():null);
extPuchasePlanExcelVO.setPurchaseBudget(extPuchasePlanAttribute.getPurchaseBudget());
//将密级转换为中文
String secretCode = CommonUtils.searchDictDataValueByDictCode(Constants.SECRET_CODE, extPuchasePlanAttribute.getSecretCode());
......@@ -206,7 +207,7 @@ public class ExtPuchasePlanAttributeServiceImpl<V extends ExtPuchasePlanAttribut
multipartFile = fileManagerFeignService.feignDownloadIO(fileId);
inputStream = new ByteArrayInputStream(multipartFile.getBytes());
} catch (IOException e) {
throw new DxBusinessException("-1", "文件id:" + fileId + "在系统中未找到!");
throw new DxBusinessException("0","文件id:"+fileId+"在系统中未找到!");
}
EasyExcel.read(inputStream, ExtPuchasePlanExcelVO.class,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment