Przeglądaj źródła

我的客户列表详情与跟进列表的修改

anderx 1 rok temu
rodzic
commit
6cbaa88822

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

@@ -854,6 +854,7 @@
         select  a.id ,c.name  aname,a.release_start as releaseStart
         from public_release a  left join admin c on a.aid =c.id
         where  a.status in  (2) and a.type in (0,1,2)
-          and a.id in (select prid from public_release_details where uid = #{uid})
+          and a.id in (select DISTINCT prid from public_release_details where uid = #{id}
+            and main_status =11)
     </select>
 </mapper>

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

@@ -2425,7 +2425,8 @@ inner join(
 		from public_release_details a left join public_release b on a.prid =b.id
 	  left join admin c on b.aid =c.id left join `user` d on a.uid =d.id
 	  left join user_follow e on a.ufid =e.id
-		where main_status =1 and a.uid = #{id}
+		where b.status =2 and b.`type` in (0,1,2)
+		  and  a.main_status =1 and a.uid = #{id}
 	</select>
 
 	<select id="selectMyUserList" resultType="com.goafanti.customer.bo.SelectMyUserOut">