Commit 8c48a55e authored by wangqiang's avatar wangqiang

采购校验数据修改

parent 00027e0a
......@@ -54,7 +54,7 @@ public class PurchasePlanExcelDataVerifyListenner extends AnalysisEventListener<
/**
* excel数据行数
*/
private Integer excelDataRow = -2;
private Integer excelDataRow = 0;
/**
* 错误信息列表
......
......@@ -88,7 +88,6 @@ public class PurchasePlanExcelReadListenner extends AnalysisEventListener<ExtPuc
public void invoke(ExtPuchasePlanExcelVO extPuchasePlanExcelVO, AnalysisContext analysisContext) {
log.info("解析到一条数据:{}", extPuchasePlanExcelVO);
if(!CommonUtils.checkAllPropertiesIsEmpty(extPuchasePlanExcelVO)){
excelDataRow++;
cachedDataList.add(extPuchasePlanExcelVO);
}
......@@ -105,6 +104,7 @@ public class PurchasePlanExcelReadListenner extends AnalysisEventListener<ExtPuc
throw new DxBusinessException("-1", "导入采购计划数据有误!!" + errList.toString());
}
for (ExtPuchasePlanExcelVO extPuchasePlanExcelVO : cachedDataList) {
excelDataRow++;
ExtPuchasePlanAttributeVO extPuchasePlanAttributeVO = new ExtPuchasePlanAttributeVO();
//将excel数据转换成VO对象
transformObject(extPuchasePlanAttributeVO, extPuchasePlanExcelVO);
......
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