Selaa lähdekoodia

fix 分销最高销售过滤实物

zoujiajian 3 vuotta sitten
vanhempi
sitoutus
948a155ea8

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

@@ -60,7 +60,8 @@
                              inner join order_don od
                                         on od.user_id = s.user_id
                     where od.status not in ('close', 'noPayment', 'refund')
-                      and is_fixed_distribute = 1
+                      and od.is_fixed_distribute = 1
+                      and od.relation_id != 0
                     group by goods_id
                     order by max(money) desc limit 1) limit 1
     </select>