| | |
| | | <if test="record.shopId != null"> |
| | | and a.shop_id=#{record.shopId} |
| | | </if> |
| | | <if test="record.beginTime != null and record.endTime!=null"> |
| | | and date_format(b.datatime, '%Y-%m-%d') between #{record.beginTime} and #{record.endTime} |
| | | <if test="record.beginTime != null"> |
| | | and date_format(b.datatime, '%Y-%m-%d') >= date_format(#{record.beginTime}, '%Y-%m-%d') |
| | | </if> |
| | | |
| | | <if test="record.endTime!=null"> |
| | | and date_format(b.datatime, '%Y-%m-%d') >= date_format(#{record.endTime}, '%Y-%m-%d') |
| | | </if> |
| | | <if test="record.beaultId != null and record.beaultId!=''"> |
| | | and FIND_IN_SET(#{record.beaultId}, a.BEATUY_ID) |
| | | </if> |
| | | <if test='record.t1 == "on"'> |
| | | and a.BEATUY_ID is not null |
| | | </if> |
| | | group by a.PHONE |
| | | <if test="pageVo !=null"><!-- 判断pageVo对象是否为空 --> |
| | |
| | | <if test="record.shopId != null"> |
| | | and a.shop_id=#{record.shopId} |
| | | </if> |
| | | <if test="record.beginTime != null and record.endTime!=null"> |
| | | and date_format(b.datatime, '%Y-%m-%d') between #{record.beginTime} and #{record.endTime} |
| | | <if test="record.beginTime != null"> |
| | | and date_format(b.datatime, '%Y-%m-%d') >= date_format(#{record.beginTime}, '%Y-%m-%d') |
| | | </if> |
| | | |
| | | <if test="record.endTime!=null"> |
| | | and date_format(b.datatime, '%Y-%m-%d') >= date_format(#{record.endTime}, '%Y-%m-%d') |
| | | </if> |
| | | <if test="record.beaultId != null and record.beaultId!=''"> |
| | | and FIND_IN_SET(#{record.beaultId}, a.BEATUY_ID) |
| | | </if> |
| | | <if test='record.t1 == "on"'> |
| | | and a.BEATUY_ID is not null |
| | | </if> |
| | | </select> |
| | | </mapper> |