|
@@ -34,14 +34,16 @@
|
|
LEFT JOIN sys_oss oss2 ON oss2.oss_id = am.ai_model_logo_oss_id
|
|
LEFT JOIN sys_oss oss2 ON oss2.oss_id = am.ai_model_logo_oss_id
|
|
LEFT JOIN xy_base_user_collect buc ON app.id = buc.collect_id AND buc.type = 3
|
|
LEFT JOIN xy_base_user_collect buc ON app.id = buc.collect_id AND buc.type = 3
|
|
AND buc.base_user_id = #{userId}
|
|
AND buc.base_user_id = #{userId}
|
|
|
|
+ LEFT JOIN xy_discover_app xda ON xda.app_id = app.id
|
|
WHERE app.del_flag = '0'
|
|
WHERE app.del_flag = '0'
|
|
|
|
+ AND xda.discover_app_type = #{appQuery.discoveryType}
|
|
<if test="appQuery != null and appQuery.appName != null">
|
|
<if test="appQuery != null and appQuery.appName != null">
|
|
AND app.app_name LIKE CONCAT('%',#{appQuery.appName},'%')
|
|
AND app.app_name LIKE CONCAT('%',#{appQuery.appName},'%')
|
|
</if>
|
|
</if>
|
|
<if test="appQuery != null and appQuery.appId != null">
|
|
<if test="appQuery != null and appQuery.appId != null">
|
|
AND app.id > #{appQuery.appId}
|
|
AND app.id > #{appQuery.appId}
|
|
</if>
|
|
</if>
|
|
- LIMIT 10
|
|
|
|
|
|
+ LIMIT #{appQuery.length}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
|