| | |
| | | order by a.id desc |
| | | </select> |
| | | |
| | | <select id="selectOrderItemInPage" resultType="cc.mrbird.febs.mall.vo.activity.AdminHappyActivityOrderItemVo"> |
| | | select |
| | | a.*, |
| | | e.name as connectName, |
| | | e.phone as connectPhone, |
| | | e.address as connectAddress, |
| | | b.name as memberName, |
| | | c.name as activityName |
| | | from happy_activity_order_item d |
| | | left join happy_activity_connect e on e.id = d.connect_id |
| | | left join happy_activity_order a on a.id = d.order_id |
| | | left join mall_member b on a.member_id = b.id |
| | | left join happy_activity c on a.activity_id = c.id |
| | | <where> |
| | | and a.DELETE_FLAG = 0 |
| | | <if test="record != null"> |
| | | <if test="record.name != null and record.name != ''"> |
| | | and b.name like CONCAT('%', CONCAT(#{record.name}, '%')) |
| | | </if> |
| | | <if test="record.state != null"> |
| | | and a.state=#{record.state} |
| | | </if> |
| | | <if test="record.activityId != null"> |
| | | and a.activity_id=#{record.activityId} |
| | | </if> |
| | | </if> |
| | | </where> |
| | | order by a.id desc |
| | | </select> |
| | | |
| | | |
| | | |
| | | <select id="getVoteOptionRecordInPage" resultType="cc.mrbird.febs.mall.vo.ApiActivityOptionListVo"> |