diff --git a/app/Http/Controllers/Admin/OtherController.php b/app/Http/Controllers/Admin/OtherController.php index ef880f1..2c3b0ed 100755 --- a/app/Http/Controllers/Admin/OtherController.php +++ b/app/Http/Controllers/Admin/OtherController.php @@ -60,11 +60,6 @@ class OtherController extends CommonController 'total' => User::whereIn('company_industry', $level2Names)->count() ]; } - // 追加其他领域 -// $industryTotal[] = [ -// 'industry' => '其他', -// 'total' => User::count() - collect($industryTotal)->sum('total') -// ]; // 课程统计 $courseTypes = CourseType::where('is_chart', 1)->get(); foreach ($courseTypes as $courseType) { diff --git a/database/migrations/2025_06_23_170000_create_books_table.php b/database/migrations/2025_06_23_170000_create_books_table.php index 587d950..9b63fde 100644 --- a/database/migrations/2025_06_23_170000_create_books_table.php +++ b/database/migrations/2025_06_23_170000_create_books_table.php @@ -21,7 +21,7 @@ return new class extends Migration { $table->string('author')->nullable()->comment('作者'); $table->string('isbn')->nullable()->comment('ISBN'); $table->string('publisher')->nullable()->comment('出版社'); - $table->year('publish_year')->nullable()->comment('出版年份'); + $table->string('publish_year')->nullable()->comment('出版年份'); $table->string('category')->nullable()->comment('分类'); $table->mediumText('description')->nullable()->comment('图书简介'); $table->integer('cover_id')->nullable()->comment('图书封面');