You've already forked FrameTour-BE
task缓存
This commit is contained in:
@ -87,8 +87,8 @@
|
||||
oi.goods_type,
|
||||
CASE oi.goods_type
|
||||
WHEN '0' THEN mvd.name
|
||||
WHEN '1' THEN '原片'
|
||||
WHEN '2' THEN '照片'
|
||||
WHEN '1' THEN '原片包'
|
||||
WHEN '2' THEN '照片包'
|
||||
ELSE '其他'
|
||||
END AS goods_name,
|
||||
CASE oi.goods_type
|
||||
@ -344,4 +344,13 @@
|
||||
<select id="listOrderItemByOrderId" resultType="com.ycwl.basic.model.pc.order.entity.OrderItemEntity">
|
||||
select * from order_item where order_id = #{orderId}
|
||||
</select>
|
||||
<select id="getUserBuyItem" resultType="com.ycwl.basic.model.pc.order.entity.OrderEntity">
|
||||
select o.*
|
||||
from order_item oi
|
||||
left join `order` o on o.id = oi.order_id
|
||||
where o.member_id = #{userId}
|
||||
and oi.goods_id = #{goodsId}
|
||||
and oi.goods_type = #{goodsType}
|
||||
and o.status = 1
|
||||
</select>
|
||||
</mapper>
|
@ -72,10 +72,6 @@ from task
|
||||
from task
|
||||
where id = #{id}
|
||||
</select>
|
||||
<select id="countByMemberIdStau" resultType="java.lang.Integer">
|
||||
select count(1) from task
|
||||
where member_id = #{userId} and status IN (0,2)
|
||||
</select>
|
||||
<select id="countByMemberIdStauFinish" resultType="java.lang.Integer">
|
||||
select count(1)
|
||||
from task
|
||||
|
Reference in New Issue
Block a user