|
@@ -80,15 +80,15 @@ public interface VideoInfoPoolMapper {
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
@Select({"<script>" +
|
|
@Select({"<script>" +
|
|
|
- "select * from video_info_pool WHERE delete_flag = 1" +
|
|
|
|
|
|
|
+ "select vip.*,vio.score,vio.comment from video_info_pool vip left join video_info_other vio on vip.identification_code = vio.identification_code and vio.delete_flag = 1 WHERE vip.delete_flag = 1" +
|
|
|
"<if test=\"identificationCode != null and identificationCode != ''\">" +
|
|
"<if test=\"identificationCode != null and identificationCode != ''\">" +
|
|
|
- " and identification_code like concat('%',#{identificationCode},'%')" +
|
|
|
|
|
|
|
+ " and vip.identification_code like concat('%',#{identificationCode},'%')" +
|
|
|
"</if>" +
|
|
"</if>" +
|
|
|
"<if test=\"type != null and type != ''\">" +
|
|
"<if test=\"type != null and type != ''\">" +
|
|
|
- " and type = #{type}" +
|
|
|
|
|
|
|
+ " and vip.type = #{type}" +
|
|
|
"</if>" +
|
|
"</if>" +
|
|
|
"<if test=\"order != null and order != ''\">" +
|
|
"<if test=\"order != null and order != ''\">" +
|
|
|
- " order by issue_date ${order}" +
|
|
|
|
|
|
|
+ " order by vip.issue_date ${order}" +
|
|
|
"</if>" +
|
|
"</if>" +
|
|
|
"</script>"})
|
|
"</script>"})
|
|
|
List<VideoInfoPool> findByCodeAndType(String identificationCode, Integer type, String order);
|
|
List<VideoInfoPool> findByCodeAndType(String identificationCode, Integer type, String order);
|