|
@@ -645,7 +645,7 @@ public class PlanServiceImpl extends ServiceImpl<PlanMapper, Plan> implements Pl
|
|
if(productOrderNumCell!=null&&!StringUtils.isEmpty(productOrderNumCell.getStringCellValue())){
|
|
if(productOrderNumCell!=null&&!StringUtils.isEmpty(productOrderNumCell.getStringCellValue())){
|
|
plan.setProductOrderNum(productOrderNumCell.getStringCellValue());
|
|
plan.setProductOrderNum(productOrderNumCell.getStringCellValue());
|
|
}
|
|
}
|
|
- if(projectNameCell!=null&&!StringUtils.isEmpty(productNameCell.getStringCellValue())){
|
|
|
|
|
|
+ if(projectNameCell!=null&&!StringUtils.isEmpty(projectNameCell.getStringCellValue())){
|
|
plan.setProjectName(projectNameCell.getStringCellValue());
|
|
plan.setProjectName(projectNameCell.getStringCellValue());
|
|
}
|
|
}
|
|
if(columnNumCell!=null&&StringUtils.isEmpty(columnNumCell.getStringCellValue())){
|
|
if(columnNumCell!=null&&StringUtils.isEmpty(columnNumCell.getStringCellValue())){
|
|
@@ -692,7 +692,7 @@ public class PlanServiceImpl extends ServiceImpl<PlanMapper, Plan> implements Pl
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if(productNameCell!=null){
|
|
if(productNameCell!=null){
|
|
- Optional<Product> first = productList.stream().filter(pl -> pl.getName().equals(productNameCell.getStringCellValue())).findFirst();
|
|
|
|
|
|
+ Optional<Product> first = productList.stream().filter(pl -> pl.getName().equals(productNameCell.getStringCellValue()) && projectNameCell.getStringCellValue().equals(pl.getProjectName())).findFirst();
|
|
if(first.isPresent()){
|
|
if(first.isPresent()){
|
|
plan.setProductId(first.get().getId());
|
|
plan.setProductId(first.get().getId());
|
|
plan.setProductName(first.get().getName());
|
|
plan.setProductName(first.get().getName());
|