| | |
| | | SELECT * FROM yeshi_ec_activity_recommend t |
| | | LEFT JOIN yeshi_ec_activity_user u ON t.ar_activity_uid=u.au_id |
| | | WHERE 1=1 |
| | | <IF test="title != null and title != '' "> |
| | | <if test="title != null and title != '' "> |
| | | AND t.ar_title LIKE '%${title}%' |
| | | </IF> |
| | | </if> |
| | | ORDER BY t.ar_top DESC,t.ar_order_by ASC,t.ar_create_time DESC |
| | | LIMIT ${START},${COUNT} |
| | | </select> |
| | |
| | | <select id="getRecommendActivityCount" resultType="java.lang.Long"> |
| | | SELECT IFNULL(COUNT(t.ar_id),0) FROM yeshi_ec_activity_recommend t |
| | | WHERE 1=1 |
| | | <IF test="title != null and title != '' "> |
| | | <if test="title != null and title != '' "> |
| | | AND t.ar_title LIKE '%${title}%' |
| | | </IF> |
| | | </if> |
| | | </select> |
| | | |
| | | |