Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e3346930
authored
Sep 29, 2025
by
lijinqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sku或者spu库存大于等于1时,客户端可见
parent
47e8544b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
computility-module-apihub/computility-module-apihub-biz/src/main/java/com/luhu/computility/module/apihub/dal/mysql/apiendpoint/ApiEndpointMapper.java
+1
-0
computility-module-mall/computility-module-product/src/main/java/com/luhu/computility/module/product/dal/mysql/sku/ProductSkuMapper.java
+2
-1
No files found.
computility-module-apihub/computility-module-apihub-biz/src/main/java/com/luhu/computility/module/apihub/dal/mysql/apiendpoint/ApiEndpointMapper.java
View file @
e3346930
...
@@ -41,6 +41,7 @@ public interface ApiEndpointMapper extends BaseMapperX<ApiEndpointDO> {
...
@@ -41,6 +41,7 @@ public interface ApiEndpointMapper extends BaseMapperX<ApiEndpointDO> {
@Select
(
"SELECT DISTINCT e.id AS apiEndpointId, e.name AS apiEndpointName "
+
@Select
(
"SELECT DISTINCT e.id AS apiEndpointId, e.name AS apiEndpointName "
+
"FROM apihub_api_endpoint e "
+
"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_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"
)
"WHERE ar.industry_application_id = #{industryApplicationId} AND e.deleted = 0"
)
List
<
ApiEndpointDTO
>
selectApiEndpointsByIndustryApplicationId
(
@Param
(
"industryApplicationId"
)
Long
industryApplicationId
);
List
<
ApiEndpointDTO
>
selectApiEndpointsByIndustryApplicationId
(
@Param
(
"industryApplicationId"
)
Long
industryApplicationId
);
...
...
computility-module-mall/computility-module-product/src/main/java/com/luhu/computility/module/product/dal/mysql/sku/ProductSkuMapper.java
View file @
e3346930
...
@@ -91,7 +91,8 @@ public interface ProductSkuMapper extends BaseMapperX<ProductSkuDO> {
...
@@ -91,7 +91,8 @@ public interface ProductSkuMapper extends BaseMapperX<ProductSkuDO> {
.
leftJoin
(
ProductSpuDO
.
class
,
ProductSpuDO:
:
getId
,
ProductSkuDO:
:
getSpuId
)
.
leftJoin
(
ProductSpuDO
.
class
,
ProductSpuDO:
:
getId
,
ProductSkuDO:
:
getSpuId
)
.
eq
(!
ObjectUtil
.
isEmpty
(
queryVO
.
getCategoryId
()),
ProductSpuDO:
:
getCategoryId
,
queryVO
.
getCategoryId
()
)
.
eq
(!
ObjectUtil
.
isEmpty
(
queryVO
.
getCategoryId
()),
ProductSpuDO:
:
getCategoryId
,
queryVO
.
getCategoryId
()
)
.
eqIfExists
(
ProductSpuDO:
:
getStatus
,
ProductSpuStatusEnum
.
ENABLE
.
getStatus
())
.
eqIfExists
(
ProductSpuDO:
:
getStatus
,
ProductSpuStatusEnum
.
ENABLE
.
getStatus
())
.
gt
(
ProductSpuDO:
:
getStock
,
1
)
.
ge
(
ProductSkuDO:
:
getStock
,
1
)
.
ge
(
ProductSpuDO:
:
getStock
,
1
)
.
orderByDesc
(
ProductSkuDO:
:
getCreator
));
.
orderByDesc
(
ProductSkuDO:
:
getCreator
));
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment