| | |
| | | 1 as type, |
| | | title, |
| | | `status`, |
| | | order_amount, |
| | | payment_amount as payment_amount , |
| | | recharge_amount as order_amount, |
| | | recharge_amount as payment_amount , |
| | | create_time, |
| | | end_time, |
| | | pay_time, |
| | |
| | | </if> |
| | | <if test="statisticsQueryDto.dayType ==5"> |
| | | |
| | | AND create_time >= #{statisticsQueryDto.startTime} |
| | | AND DATE(create_time) >= #{statisticsQueryDto.startTime} |
| | | |
| | | |
| | | AND create_time <= #{statisticsQueryDto.endTime} |
| | | AND DATE(create_time) <= #{statisticsQueryDto.endTime} |
| | | |
| | | </if> |
| | | |
| | |
| | | #{siteId} |
| | | </foreach> |
| | | </if> |
| | | <if test="statisticsQueryDto.dayType == 1"> |
| | | AND DATE(create_time ) = CURDATE() |
| | | </if> |
| | | <if test="statisticsQueryDto.dayType != 1"> |
| | | and DATE(create_time) >= #{statisticsQueryDto.startTime} |
| | | and DATE(create_time) <= #{statisticsQueryDto.endTime} |
| | | </if> |
| | | group by source_name |
| | | |
| | | |