| | |
| | | private Date showTime; |
| | | @ApiModelProperty("图片路径") |
| | | private String cover; |
| | | @ApiModelProperty("跳转地址") |
| | | private String jumpUrl; |
| | | } |
| | |
| | | </select> |
| | | |
| | | <select id="banner" resultType="com.panzhihua.common.model.vos.community.easyPhoto.BannerVO"> |
| | | select id,cover,publish_at as show_time,1 as type from com_act_dyn where status =1 and cover is not null and community_id =#{communityId} |
| | | select id,cover,publish_at as show_time,1 as type,jump_url from com_act_dyn where status =1 and cover is not null and community_id =#{communityId} |
| | | UNION ALL |
| | | select id,cover,publish_at as show_time,2 as type from com_act_activity where status =3 and cover is not null and community_id =#{communityId} |
| | | select id,cover,publish_at as show_time,2 as type,"" as jump_url from com_act_activity where status =3 and cover is not null and community_id =#{communityId} |
| | | UNION ALL |
| | | select id,cover,release_time as show_time,3 as type from com_pb_activity where status =3 and cover is not null and community_id =#{communityId} |
| | | select id,cover,release_time as show_time,3 as type,"" as jump_url from com_pb_activity where status =3 and cover is not null and community_id =#{communityId} |
| | | UNION ALL |
| | | select id,"" as cover,publish_time as show_time,4 as type from com_act_questnaire where state =2 and community_id =#{communityId} |
| | | select id,"" as cover,publish_time as show_time,4 as type,"" as jump_url from com_act_questnaire where state =2 and community_id =#{communityId} |
| | | UNION ALL |
| | | select id,cover,publish_at as show_time,5 as type from com_pb_dyn where status =2 and type =1 and cover is not null and community_id =#{communityId} |
| | | select id,cover,publish_at as show_time,5 as type,jump_url from com_pb_dyn where status =2 and type =1 and cover is not null and community_id =#{communityId} |
| | | UNION ALL |
| | | select id,img_url,publish_time as show_time,6 as type from com_act_reserve where status =2 and community_id =#{communityId} |
| | | select id,img_url,publish_time as show_time,6 as type,"" as jump_url from com_act_reserve where status =2 and community_id =#{communityId} |
| | | UNION ALL |
| | | select id,photo_path_list,examine_at as show_time,7 as type from com_act_easy_photo where status =2 and community_id =#{communityId} |
| | | select id,photo_path_list,examine_at as show_time,7 as type,"" as jump_url from com_act_easy_photo where status =2 and community_id =#{communityId} |
| | | order by show_time desc limit 30 |
| | | </select> |
| | | |