From c4ac98380af230caa45ac8db73036d9bafa8b793 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Fri, 8 Jan 2021 15:15:44 +0800 Subject: [PATCH] aa --- business/model/dao/dao_order.go | 2 +- controllers/order_controller.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/business/model/dao/dao_order.go b/business/model/dao/dao_order.go index 052647be2..6e66908f3 100644 --- a/business/model/dao/dao_order.go +++ b/business/model/dao/dao_order.go @@ -356,7 +356,7 @@ type GetManageStatisticsResult struct { func getFromSqlManage(status int, alies string, cityCodes []int, jobTime, endTime time.Time, jobIDs []int) (sql string, sqlParams []interface{}) { sql += ` - (SELECT COUNT(b.id) count, + (SELECT COUNT(b.id) count FROM job a JOIN job_order b ON a.id = b.job_id WHERE a.deleted_at = ? diff --git a/controllers/order_controller.go b/controllers/order_controller.go index 3c8bc4510..c517c9376 100644 --- a/controllers/order_controller.go +++ b/controllers/order_controller.go @@ -130,8 +130,8 @@ func (c *OrderController) GetPayStatistics() { // @Description 经营分析图表 // @Param token header string true "认证token" // @Param cityCodes query string false "城市id列表" -// @Param fromTime query string false "开始时间" -// @Param toTime query string false "结束时间" +// @Param fromTime query string true "开始时间" +// @Param toTime query string true "结束时间" // @Param jobIDs query string false "任务IDs" // @Success 200 {object} controllers.CallResult // @Failure 200 {object} controllers.CallResult