| | |
| | | c.cumulative_day cumulativeDay, |
| | | c.award_type awardType, |
| | | c.award_name awardName, |
| | | c.coupon_name couponName, |
| | | c.award_rule awardRule |
| | | FROM |
| | | activity_sign_receive_record a |
| | | LEFT JOIN biz_user b ON a.user_id = b.user_id |
| | | LEFT JOIN sys_vip_info b ON a.user_id = b.id |
| | | LEFT JOIN activity_sign_award_set c ON a.award_id = c.id |
| | | <where> |
| | | a.company_id = #{record.companyId} |
| | |
| | | LEFT JOIN activity_sign_award_set b ON a.award_id = b.id |
| | | where |
| | | b.award_type = 1 |
| | | and a.state = 1 |
| | | and a.company_id = #{companyId} |
| | | and a.user_id = #{userId} |
| | | |
| | |
| | | LEFT JOIN activity_sign_award_set b ON a.award_id = b.id |
| | | WHERE |
| | | b.award_type = 1 |
| | | AND a.state = 1 |
| | | and a.company_id = #{record.companyId} |
| | | and a.user_id = #{record.userId} |
| | | <if test="record.sort !=null"> |
| | |
| | | SELECT |
| | | a.id id, |
| | | a.state state, |
| | | a.consignee_phone consigneePhone, |
| | | a.consignee_address consigneeAddress, |
| | | a.consignee, |
| | | a.receive_time receiveTime, |
| | | a.write_off_code writeOffCode, |
| | | 1 total, |
| | |
| | | b.prize_start_time prizeStartTime, |
| | | b.award_way awardWay, |
| | | b.introduce_img introduceImg, |
| | | b.customer_phone customerPhone, |
| | | b.award_name awardName |
| | | FROM |
| | | activity_sign_receive_record a |