|
@@ -6,6 +6,8 @@ import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
|
|
|
import cn.iocoder.yudao.module.product.dal.dataobject.sku.ProductSkuDO;
|
|
import cn.iocoder.yudao.module.product.dal.dataobject.sku.ProductSkuDO;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
|
|
+import org.apache.ibatis.annotations.Param;
|
|
|
|
|
+import org.apache.ibatis.annotations.Select;
|
|
|
|
|
|
|
|
import java.util.Collection;
|
|
import java.util.Collection;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
@@ -13,6 +15,9 @@ import java.util.List;
|
|
|
@Mapper
|
|
@Mapper
|
|
|
public interface ProductSkuMapper extends BaseMapperX<ProductSkuDO> {
|
|
public interface ProductSkuMapper extends BaseMapperX<ProductSkuDO> {
|
|
|
|
|
|
|
|
|
|
+ @Select("SELECT * FROM product_sku WHERE id = #{id}")
|
|
|
|
|
+ ProductSkuDO selectByIdIncludeDeleted(@Param("id") Long id);
|
|
|
|
|
+
|
|
|
default List<ProductSkuDO> selectListBySpuId(Long spuId) {
|
|
default List<ProductSkuDO> selectListBySpuId(Long spuId) {
|
|
|
return selectList(ProductSkuDO::getSpuId, spuId);
|
|
return selectList(ProductSkuDO::getSpuId, spuId);
|
|
|
}
|
|
}
|