Commit 9c391e77 by liyanlin

fix

parent 0144a810
...@@ -180,7 +180,7 @@ public class CostPlanServiceFactory { ...@@ -180,7 +180,7 @@ public class CostPlanServiceFactory {
for (int j = 0; j < firstRow.getLastCellNum(); j++) { for (int j = 0; j < firstRow.getLastCellNum(); j++) {
String costPlanField = CostPlanEnumVo.getCostPlanField(sheetName, firstRow.getCell(j).toString()); String costPlanField = CostPlanEnumVo.getCostPlanField(sheetName, firstRow.getCell(j).toString());
if (!costPlanField.equals("")) { if (!costPlanField.equals("")) {
if(!costPlanField.equals("costRemark") && (row.getCell(j) == null || row.getCell(j).toString().trim().equals(""))){ if((!costPlanField.equals("costRemark") || !costPlanField.equals("customerNum")) && (row.getCell(j) == null || row.getCell(j).toString().trim().equals(""))){
throw new BizException("请填写必填项"); throw new BizException("请填写必填项");
} }
if(costPlanField.equals("costRemark") && sheetName.equals("付款") && (row.getCell(j) == null || row.getCell(j).toString().trim().equals(""))) if(costPlanField.equals("costRemark") && sheetName.equals("付款") && (row.getCell(j) == null || row.getCell(j).toString().trim().equals("")))
......
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