浏览代码

bug修改

zjy 3 天之前
父节点
当前提交
4055f28ca6
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      alien-entity/src/main/resources/mapper/second/SecondGoodsInfoMapper.xml

+ 4 - 0
alien-entity/src/main/resources/mapper/second/SecondGoodsInfoMapper.xml

@@ -79,6 +79,7 @@
             and not exists (select 1 from shieldUser s where s.id = g.id)
             and not exists (select 1 from second_shield s where s.user_id = #{userId} and s.shield_type = 1 and s.shield_id = g.id and s.delete_flag = 0)
             and g.goods_status = 3
+            and g.position != '' and g.position is not null
         order by dist, like_count desc, release_time desc
     </select>
 
@@ -129,6 +130,7 @@
             f.fans_id = #{phoneId} and f.delete_flag = 0
             and not exists (select 1 from shieldUser s where s.id = g.id)
             and not exists (select 1 from second_shield s where s.user_id = #{userId} and s.shield_type = 1 and s.shield_id = g.id and s.delete_flag = 0)
+            and g.position != '' and g.position is not null
         order by g.release_time desc
     </select>
 
@@ -204,6 +206,7 @@
             and not exists (select 1 from shieldUser s where s.id = g.id)
             and not exists (select 1 from second_shield s where s.user_id = #{userId} and s.shield_type = 1 and s.shield_id = g.id)
             and g.goods_status = 3
+            and g.position != '' and g.position is not null
         order by g.release_time desc
     </select>
 
@@ -235,6 +238,7 @@
             left join life_like_record llr on llr.dianzan_id = #{phoneId} and llr.huifu_id = g.id and llr.type = 6 and llr.delete_flag = 0
             left join life_collect lc on lc.business_id = g.id and lc.user_id = #{phoneId} and lc.delete_flag = 0 and lc.business_type = 1
         where g.id = #{goodsId} and g.delete_flag = 0
+            and g.position != '' and g.position is not null
     </select>
 
 </mapper>