傅行帆 преди 5 години
родител
ревизия
764a0dc5b1

+ 1
- 0
src/main/resources/mapper/statistic/TsCustomerStatisticDailyMapper.xml Целия файл

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

+ 1
- 0
src/main/resources/mapper/statistic/TsCustomerStatisticMonthlyMapper.xml Целия файл

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