فهرست منبع

导入箱号判断箱号是否为空

lazhaoqian 3 سال پیش
والد
کامیت
a33fd00dd4
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      ruoyi-shipping/src/main/java/com/ruoyi/shipping/service/impl/TCntrnoServiceImpl.java

+ 3 - 1
ruoyi-shipping/src/main/java/com/ruoyi/shipping/service/impl/TCntrnoServiceImpl.java

@@ -545,7 +545,9 @@ public class TCntrnoServiceImpl implements ITCntrnoService {
                         }
                         }
                     }
                     }
                 }
                 }
-                fleetCompanyMsgs.add(companyMsg);
+               if (StringUtils.isNotEmpty(companyMsg.getfNo())){
+                   fleetCompanyMsgs.add(companyMsg);
+               }
             }
             }
             fleetCompanyMsgs = fleetCompanyMsgs.stream().filter(distinctByKey(TCntrnoExcel::getfNo)).collect(Collectors.toList());
             fleetCompanyMsgs = fleetCompanyMsgs.stream().filter(distinctByKey(TCntrnoExcel::getfNo)).collect(Collectors.toList());
         } catch (IOException e) {
         } catch (IOException e) {