zoujiajian 2 年之前
父节点
当前提交
4783308fea
共有 1 个文件被更改,包括 1 次插入1 次删除
  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>