Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gogirl-miniapp-backend
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huluobin
gogirl-miniapp-backend
Commits
3a9bc1ac
Commit
3a9bc1ac
authored
Mar 19, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
336a06fe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
PurchaseSkuMapper.java
...astructure/mapper/product/purchase/PurchaseSkuMapper.java
+6
-1
PurchaseSkuMapper.xml
src/main/resources/mapper/product/PurchaseSkuMapper.xml
+5
-0
No files found.
src/main/java/com/gogirl/infrastructure/mapper/product/purchase/PurchaseSkuMapper.java
View file @
3a9bc1ac
...
...
@@ -18,6 +18,12 @@ public interface PurchaseSkuMapper extends BaseMapper<PurchaseSku> {
*/
IPage
<
PurchaseSku
>
queryPagePurchaseSku
(
IPage
<
PurchaseSku
>
purchaseSkuIPage
,
Long
mallCategoryId
);
/**
* 根据名称查找sku
*
* @param skuName
* @return
*/
PurchaseSku
selectBySkuName
(
String
skuName
);
/**
...
...
@@ -27,5 +33,4 @@ public interface PurchaseSkuMapper extends BaseMapper<PurchaseSku> {
List
<
PurchaseSku
>
selectByProduceId
(
Integer
produceId
);
List
<
PurchaseSku
>
getByProduceId
(
Integer
produceId
);
}
src/main/resources/mapper/product/PurchaseSkuMapper.xml
View file @
3a9bc1ac
...
...
@@ -17,5 +17,10 @@
left join purchase_sku t2 on t1.purchase_sku_id = t2.id
where t1.produce_id = #{produceId}
</select>
<select
id=
"selectBySkuName"
resultType=
"com.gogirl.domain.product.purchase.PurchaseSku"
>
select *
from purchase_sku
where sku_name = #{skuName}
</select>
</mapper>
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