| | |
| | | LEFT JOIN sys_user as su on su.user_id=cpm.user_id |
| | | LEFT JOIN com_act as ca on ca.community_id = cpm.community_id |
| | | LEFT JOIN com_act_integral_user as caiu on cpm.user_id=caiu.user_id and cpm.community_id=caiu.community_id |
| | | WHERE cpm.check_unit_id=(SELECT check_unit_id FROM com_pb_member WHERE user_id=#{userId}) |
| | | WHERE cpm.check_unit_id=(SELECT check_unit_id FROM com_pb_member WHERE user_id=#{userId} limit 1) |
| | | GROUP BY cpm.user_id |
| | | order by amount desc,user_id desc) as tab |
| | | ,(SELECT @row_number:=0) AS t) tab2 |