| | |
| | | <if test="record.inviteId!=null and record.inviteId!=''"> |
| | | and find_in_set(#{record.inviteId}, b.referer_ids) |
| | | </if> |
| | | <if test="record.symbol!=null and record.symbol!=''"> |
| | | and symbol=#{record.symbol} |
| | | </if> |
| | | <if test="record.openType!=null and record.openType!=''"> |
| | | and opening_type=#{record.openType} |
| | | </if> |
| | | <if test='record.timeType=="1"'> |
| | | and TO_DAYS(create_time) = TO_DAYS(NOW()) |
| | | </if> |
| | | <if test='record.timeType=="2"'> |
| | | and TO_DAYS(NOW()) - TO_DAYS(create_time) = 1 |
| | | </if> |
| | | <if test='record.timeType=="3"'> |
| | | and YEARWEEK(date_format(create_time,'%Y-%m-%d')) = YEARWEEK(now()) |
| | | </if> |
| | | <if test='record.timeType=="4"'> |
| | | and DATE_FORMAT(create_time, '%Y%m' ) = DATE_FORMAT( CURDATE() , '%Y%m' ) |
| | | </if> |
| | | </if> |
| | | </where> |
| | | order by a.create_time desc |