...
|
...
|
@@ -22,7 +22,7 @@ class bodySql { |
|
|
* @time 2023/3/23 10:15
|
|
|
*/
|
|
|
public static function first(int $id):string {
|
|
|
return "select * from `".static::$table."` where `id` = {$id} limit 1";
|
|
|
return "select * from `".static::$table."` where `lists_id` = {$id} limit 1";
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -33,7 +33,7 @@ class bodySql { |
|
|
* @time 2023/3/23 10:15
|
|
|
*/
|
|
|
public static function has(int $id){
|
|
|
return "select count(*) from `".static::$table."` where `id` = {$id} limit 1";
|
|
|
return "select count(*) from `".static::$table."` where `lists_id` = {$id} limit 1";
|
|
|
}
|
|
|
|
|
|
|
...
|
...
|
|