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