Commit 3a9bc1ac by huluobin

update

parent 336a06fe
...@@ -18,6 +18,12 @@ public interface PurchaseSkuMapper extends BaseMapper<PurchaseSku> { ...@@ -18,6 +18,12 @@ public interface PurchaseSkuMapper extends BaseMapper<PurchaseSku> {
*/ */
IPage<PurchaseSku> queryPagePurchaseSku(IPage<PurchaseSku> purchaseSkuIPage, Long mallCategoryId); IPage<PurchaseSku> queryPagePurchaseSku(IPage<PurchaseSku> purchaseSkuIPage, Long mallCategoryId);
/**
* 根据名称查找sku
*
* @param skuName
* @return
*/
PurchaseSku selectBySkuName(String skuName); PurchaseSku selectBySkuName(String skuName);
/** /**
...@@ -27,5 +33,4 @@ public interface PurchaseSkuMapper extends BaseMapper<PurchaseSku> { ...@@ -27,5 +33,4 @@ public interface PurchaseSkuMapper extends BaseMapper<PurchaseSku> {
List<PurchaseSku> selectByProduceId(Integer produceId); List<PurchaseSku> selectByProduceId(Integer produceId);
List<PurchaseSku> getByProduceId(Integer produceId);
} }
...@@ -17,5 +17,10 @@ ...@@ -17,5 +17,10 @@
left join purchase_sku t2 on t1.purchase_sku_id = t2.id left join purchase_sku t2 on t1.purchase_sku_id = t2.id
where t1.produce_id = #{produceId} where t1.produce_id = #{produceId}
</select> </select>
<select id="selectBySkuName" resultType="com.gogirl.domain.product.purchase.PurchaseSku">
select *
from purchase_sku
where sku_name = #{skuName}
</select>
</mapper> </mapper>
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 to comment