作者 朱世亮

发件任务详情查询优化

@@ -45,14 +45,14 @@ class sendJobStatusSql { @@ -45,14 +45,14 @@ class sendJobStatusSql {
45 45
46 /** 46 /**
47 * job任务详情页 47 * job任务详情页
48 - * @param int $jobId 48 + * @param $where
49 * @param int $page 49 * @param int $page
50 * @param int $limit 50 * @param int $limit
51 * @return string 51 * @return string
52 */ 52 */
53 - public static function detail(int $jobId, int $page = 1, int $limit = 20) 53 + public static function detail($where, int $page = 1, int $limit = 20)
54 { 54 {
55 - return "select * from `" . static::$table . "` where `job_id` = " . $jobId . " order by id desc limit {$limit} offset " . (($page - 1) * $limit); 55 + return "select * from `" . static::$table . "` where " . $where . " order by id desc limit {$limit} offset " . (($page - 1) * $limit);
56 } 56 }
57 57
58 58