Explorar el Código

私有应用问题修改

huiqi hace 2 semanas
padre
commit
11a48c8b44

+ 2 - 1
takai-ai/src/main/resources/mapper/takaiai/TakaiApplicationMapper.xml

@@ -274,9 +274,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 			ba.sort
 		FROM
 		bm_application ba
+		left join vip_application v on ba.appId = v.appId and v.user_id = #{params.userId}
 		WHERE
 		    ba.visible='1'
-		    and ba.create_by= #{params.userId}
+		    and (ba.create_by= #{params.userId} or v.user_id is not null)
 		<if test="typeId != null and typeId != ''">
 			AND ba.type_id = #{typeId}
 		</if>