Browse Source

修改我公出的企业列表

anderx 1 year ago
parent
commit
2b1b035275
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/main/java/com/goafanti/common/mapper/UserMapperExt.xml

+ 3 - 3
src/main/java/com/goafanti/common/mapper/UserMapperExt.xml

@@ -2445,8 +2445,8 @@ inner join(
 			group by b.uid )t0 on a.id=t0.uid
 		</if>
 		where a.`type` =1 and a.status =0
-		  and a.aid = #{aid}
 		<if test="type==0">
+		and a.aid = #{aid}
 		and a.share_type in (0,2,4)
 		</if>
 		<if test="name != null">
@@ -2472,9 +2472,9 @@ inner join(
 		group by b.uid )t0 on a.id=t0.uid
 	</if>
 		where a.`type` =1 and a.status =0
-		and a.aid = #{aid}
 		<if test="type==0">
-			and a.share_type in (0,2,4)
+		and a.share_type in (0,2,4)
+		and a.aid = #{aid}
 		</if>
 		<if test="name != null">
 			and a.nickname like concat('%',#{name},'%')