摘要: 一个需求就是把近几年的每月的销售总额进行统计并进行图形展示,具体代码如下 performances = models.Performance.objects.annotate( year=ExtractYear('create_time'), month=ExtractMonth('create_t 阅读全文
posted @ 2024-02-15 22:36 super_ip 阅读(22) 评论(0) 推荐(0) 编辑