| | |
| | | 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, |
| | |
| | | activity_sign_receive_record a |
| | | LEFT JOIN activity_sign_award_set b ON a.award_id = b.id |
| | | WHERE |
| | | a.id = #{record.awardId} |
| | | a.award_id = #{record.awardId} |
| | | and a.company_id = #{record.companyId} |
| | | and a.user_id = #{record.userId} |
| | | </select> |