作者 邓超

1

@@ -22,7 +22,7 @@ class bodySql { @@ -22,7 +22,7 @@ class bodySql {
22 * @time 2023/3/23 10:15 22 * @time 2023/3/23 10:15
23 */ 23 */
24 public static function first(int $id):string { 24 public static function first(int $id):string {
25 - return "select * from `".static::$table."` where `id` = {$id} limit 1"; 25 + return "select * from `".static::$table."` where `lists_id` = {$id} limit 1";
26 } 26 }
27 27
28 /** 28 /**
@@ -33,7 +33,7 @@ class bodySql { @@ -33,7 +33,7 @@ class bodySql {
33 * @time 2023/3/23 10:15 33 * @time 2023/3/23 10:15
34 */ 34 */
35 public static function has(int $id){ 35 public static function has(int $id){
36 - return "select count(*) from `".static::$table."` where `id` = {$id} limit 1"; 36 + return "select count(*) from `".static::$table."` where `lists_id` = {$id} limit 1";
37 } 37 }
38 38
39 39