傅行帆 5 years ago
parent
commit
764a0dc5b1

+ 1
- 0
src/main/resources/mapper/statistic/TsCustomerStatisticDailyMapper.xml View File

58
         AND customer_type = #{customerType}
58
         AND customer_type = #{customerType}
59
         AND date_format( create_date, '%Y-%m-%d' ) >= date_format( #{beforeDate}, '%Y-%m-%d' )
59
         AND date_format( create_date, '%Y-%m-%d' ) >= date_format( #{beforeDate}, '%Y-%m-%d' )
60
         AND date_format( create_date, '%Y-%m-%d' ) <= date_format( #{nowDate}, '%Y-%m-%d' )
60
         AND date_format( create_date, '%Y-%m-%d' ) <= date_format( #{nowDate}, '%Y-%m-%d' )
61
+        order by `day`
61
     </select>
62
     </select>
62
 </mapper>
63
 </mapper>

+ 1
- 0
src/main/resources/mapper/statistic/TsCustomerStatisticMonthlyMapper.xml View File

54
         AND customer_type = #{customerType}
54
         AND customer_type = #{customerType}
55
         AND date_format( create_date, '%Y-%m-%d' ) >= date_format( #{beforeDate}, '%Y-%m-%d' )
55
         AND date_format( create_date, '%Y-%m-%d' ) >= date_format( #{beforeDate}, '%Y-%m-%d' )
56
         AND date_format( create_date, '%Y-%m-%d' ) &lt;= date_format( #{nowDate}, '%Y-%m-%d' )
56
         AND date_format( create_date, '%Y-%m-%d' ) &lt;= date_format( #{nowDate}, '%Y-%m-%d' )
57
+         order by `month`
57
     </select>
58
     </select>
58
 </mapper>
59
 </mapper>