master
cody 3 months ago
parent 10f1db38cb
commit 1e0d8a6d9e

@ -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) {

@ -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('图书封面');

Loading…
Cancel
Save