| | |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.validation.annotation.Validated; |
| | | |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | |
| | | import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception; |
| | |
| | | routeProductBomMapper.deleteByRouteIdAndProductId(routeId, productId); |
| | | } |
| | | |
| | | @Override |
| | | public List<MesProRouteProductBomDO> getRouteProductBomListByRouteIdAndProductId(Long routeId, Long productId) { |
| | | return routeProductBomMapper.selectListByRouteIdAndProductId(routeId, productId); |
| | | } |
| | | |
| | | @Override |
| | | public List<MesProRouteProductBomDO> getRouteProductBomListByProductIds(Long routeId, Collection<Long> productIds) { |
| | | if (CollUtil.isEmpty(productIds)) { |
| | | return java.util.Collections.emptyList(); |
| | | } |
| | | return routeProductBomMapper.selectListByProductIds(routeId, productIds); |
| | | } |
| | | |
| | | } |