| | |
| | | lmk_prize_grant_record LPGR |
| | | WHERE |
| | | LPGR.delete_flag = 0 |
| | | <if test="query.nickName != null and query.nickName !=''"> |
| | | AND LPGR.nick_name like CONCAT('%',#{query.nickName},'%') |
| | | </if> |
| | | <if test="query.activityName != null and query.activityName !=''"> |
| | | AND LPGR.activity_name like CONCAT('%',#{query.activityName},'%') |
| | | </if> |
| | | <if test="query.grantStatus != null and query.grantStatus !=''"> |
| | | AND LPGR.grant_status = #{query.grantStatus} |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="getExportData" resultMap="BaseResultMap"> |
| | | SELECT |
| | | LPGR.user_id, |
| | | LPGR.nick_name, |
| | | LPGR.activity_id, |
| | | LPGR.activity_name, |
| | | LPGR.prize_id, |
| | | LPGR.prize_name, |
| | | LPGR.prize_content, |
| | | LPGR.grant_status, |
| | | LPGR.prize_num_id, |
| | | LPGR.des, |
| | | LPGR.id |
| | | FROM |
| | | lmk_prize_grant_record LPGR |
| | | WHERE |
| | | LPGR.delete_flag = 0 |
| | | <if test="query.nickName != null and query.nickName !=''"> |
| | | AND LPGR.nick_name like CONCAT('%',#{query.nickName},'%') |
| | | </if> |
| | | <if test="query.activityName != null and query.activityName !=''"> |
| | | AND LPGR.activity_name like CONCAT('%',#{query.activityName},'%') |
| | | </if> |
| | | <if test="query.grantStatus != null and query.grantStatus !=''"> |
| | | AND LPGR.grant_status = #{query.grantStatus} |
| | | </if> |
| | | </select> |
| | | </mapper> |