From c253b555c7905c5136d47cd615ef545fa50cc6ad Mon Sep 17 00:00:00 2001 From: 935090232@qq.com <ak473600000> Date: Sun, 20 Feb 2022 21:24:16 +0800 Subject: [PATCH] Merge branch 'api_score_meger' --- zq-erp/src/main/java/com/matrix/system/shopXcx/dao/ShopOrderV2Dao.java | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/zq-erp/src/main/java/com/matrix/system/shopXcx/dao/ShopOrderV2Dao.java b/zq-erp/src/main/java/com/matrix/system/shopXcx/dao/ShopOrderV2Dao.java new file mode 100644 index 0000000..b49ab03 --- /dev/null +++ b/zq-erp/src/main/java/com/matrix/system/shopXcx/dao/ShopOrderV2Dao.java @@ -0,0 +1,20 @@ +package com.matrix.system.shopXcx.dao; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.matrix.system.shopXcx.bean.ShopOrder; +import org.apache.ibatis.annotations.Param; + +/** + * @description 订单表 + */ +public interface ShopOrderV2Dao extends BaseMapper<ShopOrder> { + + /** 统计已收货订单数 */ + int selectReceivedOrderCount(Long userId); + /** 统计已收货订单金额 */ + Double countOrderAmount(Long userId); + + /** 统计是否消费过了指定产品 */ + int countBuyZdcp(@Param("userId") Long userId, @Param("productIds")String productIds); + +} \ No newline at end of file -- Gitblit v1.9.1