diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/BomRouteServiceImpl.java b/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/BomRouteServiceImpl.java index 762ecb7..2741653 100644 --- a/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/BomRouteServiceImpl.java +++ b/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/BomRouteServiceImpl.java @@ -125,7 +125,7 @@ public class BomRouteServiceImpl implements IBomRouteService mbbProduBom.setBomRouteId(bomRouteId); list.add(mbbProduBom); } - if (list.size() > 0) + if (!list.isEmpty()) { bomRouteMapper.batchMbbProduBom(list); }