|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | 
|---|
|  |  |  | import com.matrix.system.shopXcx.bean.ShopOrder; | 
|---|
|  |  |  | import com.matrix.system.shopXcx.bean.ShopProduct; | 
|---|
|  |  |  | import org.apache.ibatis.annotations.Param; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * @description 订单表 | 
|---|
|  |  |  | 
|---|
|  |  |  | public interface ShopOrderV2Dao extends BaseMapper<ShopOrder> { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** 统计已收货订单数 */ | 
|---|
|  |  |  | int selectReceivedOrderCount(String openId); | 
|---|
|  |  |  | int selectReceivedOrderCount(Long userId); | 
|---|
|  |  |  | /** 统计已收货订单金额 */ | 
|---|
|  |  |  | Double countOrderAmount(String openId); | 
|---|
|  |  |  | Double countOrderAmount(Long userId); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** 统计是否消费过了指定产品 */ | 
|---|
|  |  |  | int countBuyZdcp(@Param("openId") String openId, @Param("productIds")String productIds); | 
|---|
|  |  |  | int countBuyZdcp(@Param("userId") Long userId, @Param("productIds")String productIds); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|