mirror of
https://gitee.com/gz-yami/mall4j.git
synced 2025-12-26 07:56:43 +08:00
移除多余的sql方法
This commit is contained in:
parent
3308fe5ee6
commit
81bae22ed0
@ -86,22 +86,6 @@ public interface OrderMapper extends BaseMapper<Order> {
|
||||
*/
|
||||
Long countOrderDetail(@Param("orderParam") OrderParam orderParam);
|
||||
|
||||
/**
|
||||
* 根据店铺id和用户id获取购买过的商品id列表
|
||||
* @param shopId
|
||||
* @param userId
|
||||
* @return
|
||||
*/
|
||||
List<Long> listBoughtProdByUserIdAndShopId(@Param("shopId") Long shopId, @Param("userId") String userId);
|
||||
|
||||
/**
|
||||
* 根据参数计算用户消费信息
|
||||
* @param shopId
|
||||
* @param userId
|
||||
* @return
|
||||
*/
|
||||
UserShoppingDataDto calculateUserInShopData(@Param("shopId") Long shopId, @Param("userId") String userId);
|
||||
|
||||
/**
|
||||
* 根据用户id和订单状态获取订单列表
|
||||
* @param adapter
|
||||
|
||||
@ -288,25 +288,6 @@
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
<select id="listBoughtProdByUserIdAndShopId" resultType="long">
|
||||
select
|
||||
oi.prod_id
|
||||
from tz_order_item oi
|
||||
join tz_order o on o.order_number = oi.order_number
|
||||
where o.user_id=#{userId} and o.shop_id = #{shopId} and (o.status = 4 or o.status = 5)
|
||||
</select>
|
||||
|
||||
|
||||
<select id="calculateUserInShopData" resultType="com.yami.shop.bean.distribution.UserShoppingDataDto">
|
||||
select
|
||||
count(o.order_number) as expense_number,
|
||||
ifnull(SUM(o.actual_total),0) as expense_amount
|
||||
from tz_order o
|
||||
where o.user_id=#{userId} and o.shop_id = #{shopId} and (o.status = 4 or o.status = 5)
|
||||
</select>
|
||||
|
||||
<select id="listMyOrderByUserIdAndStatus" resultMap="MyOrderMap">
|
||||
SELECT o.actual_total,oi.pic,oi.price,oi.prod_name,oi.sku_name,oi.prod_count,o.status,o.order_number
|
||||
FROM (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user