| | |
| | | <if test="pageMcsGameDTO.keyword != null and pageMcsGameDTO.keyword != """> |
| | | AND t1.`name` LIKE CONCAT(#{pageMcsGameDTO.keyword}, '%') |
| | | </if> |
| | | ORDER BY t1.created_at DESC) |
| | | ORDER BY t1.created_at DESC LIMIT 99999) |
| | | UNION ALL |
| | | (SELECT t1.id, t1.`name`, t1.`type`, t1.coupons, t1.surplus_coupons, |
| | | t1.publish_at, t1.`status`, t1.merchant_id, t2.`name` AS merchantName, t1.is_popular, t1.cover |
| | |
| | | <if test="pageMcsGameDTO.keyword != null and pageMcsGameDTO.keyword != """> |
| | | AND t1.`name` LIKE CONCAT(#{pageMcsGameDTO.keyword}, '%') |
| | | </if> |
| | | ORDER BY t1.created_at DESC) |
| | | ORDER BY t1.created_at DESC LIMIT 99999) |
| | | </select> |
| | | <select id="selectPublishCount" resultType="java.lang.Integer"> |
| | | SELECT SUM(publishCount) AS publishCount FROM |