|  |  |  | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | </where> | 
|---|
|  |  |  | order by m.CREATED_TIME desc | 
|---|
|  |  |  | GROUP BY m.id order by m.CREATED_TIME desc | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <select id="getMallMemberInfoById" resultType="cc.mrbird.febs.mall.vo.MallMemberVo"> | 
|---|
|  |  |  | 
|---|
|  |  |  | where a.open_id = #{openId} limit 1 | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <select id="findMallRollPerkInPage" resultType="cc.mrbird.febs.mall.entity.MallRollPerk"> | 
|---|
|  |  |  | select * from mall_roll_perk | 
|---|
|  |  |  | where member_id = #{record.memberId} | 
|---|
|  |  |  | and roll_id = #{record.rollId} | 
|---|
|  |  |  | <if test="record.state != null and record.state != ''"> | 
|---|
|  |  |  | and state = #{record.state} | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | </mapper> | 
|---|