anderx лет назад: 4
Родитель
Сommit
561e20d643

+ 12 - 9
src/main/java/com/goafanti/common/mapper/UserFollowMapper.xml

@@ -334,15 +334,18 @@
       <if test="userName != null">
             and b.nickname like concat('%',#{userName},'%')
         </if>
-        <if test="userType == 1">
-            and b.share_type =0
-        </if>
-        <if test="userType == 2">
-            and b.share_type =2
-        </if>
-        <if test="userType == 3">
-            and b.channel =1
-        </if>
+      <if test="userType == 1">
+        and b.share_type =0
+      </if>
+      <if test="userType == 2">
+        and b.share_type =1
+      </if>
+      <if test="userType == 3">
+        and b.share_type =2
+      </if>
+      <if test="userType == 4">
+        and b.share_type =3
+      </if>
         <if test="contactType != null">
             and a.contact_type = #{contactType}
         </if>

+ 2 - 2
src/main/java/com/goafanti/common/mapper/UserMapper.xml

@@ -1666,7 +1666,7 @@
     left join district_glossory dg2 on d.location_city = dg2.id
     left join district_glossory dg3 on d.location_area = dg3.id
     left join user_mid um on um.aid=a.aid and um.uid=a.id
-    where a.type= 1   and a.source in(1,2,3) and a.share_type in (0,2)
+    where a.type= 1   and a.source in(1,2,3) and a.share_type = 0
     <if test="power ==0">
       and a.aid = #{aid,jdbcType=VARCHAR}
     </if>
@@ -1726,7 +1726,7 @@
     left join user_mid um on um.aid=a.aid and um.uid=a.id
     /*inner join (select aid,uid from user_follow uf group by aid,uid) t0
     on a.id=t0.uid and a.aid =t0.aid*/
-    where a.type= 1   and a.source in(1,2,3) and a.share_type in (0,2)
+    where a.type= 1   and a.source in(1,2,3) and a.share_type = 0
     <if test="power ==0">
       and a.aid = #{aid,jdbcType=VARCHAR}
     </if>