/*find.mobileauth.by.list.serch*/
SELECT * from
(SELECT
ROW_NUMBER() OVER (ORDER BY mau.id) AS NO,
mau.id AS id,
map.name AS mobilename,
mau.no AS nos,
mau.password AS password,
mau.devices AS devices,
mau.firstlogin AS firstlogin,
mau.uselog AS uselog,
mau.description AS descs,
mau.appid AS appid
FROM
mc_magiccard_code mau
LEFT JOIN mc_magiccard map ON map.id = mau.appid
$condition WHERE mau.appid=@keyid and mau.no like @searchKey OR mau.password like @searchKey OR map.name like @searchKey
)t
$condition WHERE t.NO BETWEEN @pageStart AND @pageSize ORDER BY t.NO DESC