|
@@ -29,8 +29,7 @@
|
|
|
ya.ditch_name,
|
|
ya.ditch_name,
|
|
|
ya.ditch_id,
|
|
ya.ditch_id,
|
|
|
u.nick_name
|
|
u.nick_name
|
|
|
- FROM
|
|
|
|
|
- yt_app ya
|
|
|
|
|
|
|
+ FROM yt_app ya
|
|
|
JOIN yt_platform_user_app pua on ya.superior_id = pua.app_id
|
|
JOIN yt_platform_user_app pua on ya.superior_id = pua.app_id
|
|
|
LEFT JOIN yt_app_channel_relative acr ON ya.app_id = acr.app_id
|
|
LEFT JOIN yt_app_channel_relative acr ON ya.app_id = acr.app_id
|
|
|
LEFT JOIN yt_platform_user u ON ya.user_id = u.user_id
|
|
LEFT JOIN yt_platform_user u ON ya.user_id = u.user_id
|
|
@@ -48,9 +47,8 @@
|
|
|
and ya.superior_id = #{superiorId}
|
|
and ya.superior_id = #{superiorId}
|
|
|
</if>
|
|
</if>
|
|
|
</where>
|
|
</where>
|
|
|
- GROUP BY
|
|
|
|
|
- ya.app_id
|
|
|
|
|
- ORDER BY ya.apk_url
|
|
|
|
|
|
|
+ GROUP BY ya.app_id
|
|
|
|
|
+ ORDER BY pua.create_time desc, ya.app_id desc
|
|
|
</select>
|
|
</select>
|
|
|
<select id="countApk" resultType="java.lang.Integer">
|
|
<select id="countApk" resultType="java.lang.Integer">
|
|
|
select
|
|
select
|