修改数据库增加分类

This commit is contained in:
巴掌 committed 2020-04-22 10:27:41 +08:00
1 parent 45769766c5
commit 91d7ddd4a6
3 files changed
+7 -4

No files matched your search

+1 -1
View File
@@ -474,7 +474,7 @@ class Admin
// 整理数据
dump('第'.$page.'页');
$oldId = $old::withTrashed()
$oldId = $old->withTrashed()
->page($page, 500)
->select();
// $new->where('id', '>', 0)->delete();
+2 -2
View File
@@ -141,8 +141,8 @@ class Search extends BaseModel
foreach ($value->banjiKaohao as $k => $val) {
if($val->cjStudent == Null)
{
$stuinof = $stu::withTrashed()
->where('id', $val->student)
$stuinof = $stu::onlyTrashed()
->where('id', $val->student_id)
->field('id, xingming')
->find();
$data[$key]->banjiKaohao[$key]->cjStudent = array('id' => $stuinof->id, 'xingming' => $stuinof->xingming);
+4 -1
View File
@@ -171,6 +171,7 @@ class Category extends Seeder
// 单位荣誉分类
['id' => 11201,'title' => '科研','p_id' => 112,'paixu' => 1,'isupdate' => 0],
['id' => 11202,'title' => '特色','p_id' => 112,'paixu' => 2,'isupdate' => 0],
['id' => 11203,'title' => '教研','p_id' => 112,'paixu' => 3,'isupdate' => 0],
['id' => 113
,'title' => '荣誉奖项'
,'p_id' => 0
@@ -197,7 +198,9 @@ class Category extends Seeder
['id' => 11402,'title' => '技能大赛','p_id' => 114,'paixu' => 2,'isupdate' => 0],
['id' => 11403,'title' => '论文','p_id' => 114,'paixu' => 3,'isupdate' => 0],
['id' => 11404,'title' => '教科研','p_id' => 114,'paixu' => 4,'isupdate' => 0],
['id' => 114055,'title' => '荣誉称号','p_id' => 114,'paixu' => 4,'isupdate' => 0],
['id' => 11405,'title' => '荣誉称号','p_id' => 114,'paixu' => 5,'isupdate' => 0],
['id' => 11406,'title' => '培训','p_id' => 114,'paixu' => 6,'isupdate' => 0],
['id' => 11407,'title' => '展示课','p_id' => 114,'paixu' => 7,'isupdate' => 0],
['id' => 115
,'title' => '课题立项类型'
,'p_id' => 0