zoujiajian %!s(int64=2) %!d(string=hai) anos
pai
achega
4783308fea
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      netflix-dao/src/main/resources/mapper/YhShopMapper.xml

+ 1 - 1
netflix-dao/src/main/resources/mapper/YhShopMapper.xml

@@ -8,7 +8,7 @@
         where id = (select od.goods_id
                     from (select id from yh_shop where user_id = #{userId} limit 1) s
                              inner join order_don od
-                                        on od.ysh_id = s.id and od.status not in ('close', 'noPayment', 'refund')
+                                        on od.yhs_id = s.id and od.status not in ('close', 'noPayment', 'refund')
                     group by od.goods_id
                     order by max(od.money) desc limit 1)
     </select>