Commit e3346930 by lijinqi

sku或者spu库存大于等于1时,客户端可见

parent 47e8544b
......@@ -41,6 +41,7 @@ public interface ApiEndpointMapper extends BaseMapperX<ApiEndpointDO> {
@Select("SELECT DISTINCT e.id AS apiEndpointId, e.name AS apiEndpointName " +
"FROM apihub_api_endpoint e " +
"INNER JOIN apihub_api_endpoint_application_rel ar ON ar.api_endpoint_id = e.id AND ar.deleted = 0 " +
"INNER JOIN apihub_api_endpoint_rel r ON r.api_endpoint_id = e.id AND r.deleted = 0 " +
"WHERE ar.industry_application_id = #{industryApplicationId} AND e.deleted = 0")
List<ApiEndpointDTO> selectApiEndpointsByIndustryApplicationId(@Param("industryApplicationId") Long industryApplicationId);
......
......@@ -91,7 +91,8 @@ public interface ProductSkuMapper extends BaseMapperX<ProductSkuDO> {
.leftJoin(ProductSpuDO.class, ProductSpuDO::getId, ProductSkuDO::getSpuId)
.eq(!ObjectUtil.isEmpty(queryVO.getCategoryId()), ProductSpuDO::getCategoryId, queryVO.getCategoryId() )
.eqIfExists( ProductSpuDO::getStatus, ProductSpuStatusEnum.ENABLE.getStatus())
.gt(ProductSpuDO::getStock, 1)
.ge(ProductSkuDO::getStock, 1)
.ge(ProductSpuDO::getStock, 1)
.orderByDesc(ProductSkuDO::getCreator));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment