he2802 пре 3 година
родитељ
комит
45d3fc25ec

+ 2 - 3
zhongzheng-system/src/main/resources/mapper/modules/user/UserSubscribeMapper.xml

@@ -447,11 +447,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         FROM
             user_subscribe us
         LEFT JOIN `user` u on u.user_id =us.user_id
-        LEFT JOIN user_profile up on us.order_goods_id =up.order_goods_id
+        LEFT JOIN user_profile up on us.order_goods_id =up.order_goods_id and up.current_status = 1
+        and up.type_status = 1
         WHERE
         us.subscribe_status = 1
-          and up.current_status = 1
-        and up.type_status = 1
         <if test="applyId != null and applyId != '' ">
             and us.apply_id = #{applyId}
         </if>