diff --git a/app/Admin/Actions/Form/ImportExcelLoanForm.php b/app/Admin/Actions/Form/ImportExcelLoanForm.php new file mode 100644 index 0000000..4b3b676 --- /dev/null +++ b/app/Admin/Actions/Form/ImportExcelLoanForm.php @@ -0,0 +1,42 @@ +response() + ->success('导入成功') + ->redirect('/loan_students_list'); + + } catch (ValidationException $validationException) { + return Response::withException($validationException); + } catch (Throwable $throwable) { + //dcat 2.0写法 + $this->response()->error(false); + return $this->response()->error($throwable->getMessage())->refresh(); + } + } + + public function form() + { + $this->file('file', '上传Excel')->rules('required', ['required' => '文件不能为空']); + + } + +} + diff --git a/app/Admin/Actions/Form/ImportExcelOldStudentForm.php b/app/Admin/Actions/Form/ImportExcelOldStudentForm.php new file mode 100644 index 0000000..8410681 --- /dev/null +++ b/app/Admin/Actions/Form/ImportExcelOldStudentForm.php @@ -0,0 +1,41 @@ +response() + ->success('导入成功') + ->redirect('/admission_new_students'); + + } catch (ValidationException $validationException) { + return Response::withException($validationException); + } catch (Throwable $throwable) { + //dcat 2.0写法 + $this->response()->error(false); + return $this->response()->error($throwable->getMessage())->refresh(); + } + } + + public function form() + { + $this->file('file', '上传Excel')->rules('required', ['required' => '文件不能为空']); + + } + +} + diff --git a/app/Admin/Actions/Form/ImportExcelStudentForm.php b/app/Admin/Actions/Form/ImportExcelStudentForm.php index 4768d16..fe67a52 100644 --- a/app/Admin/Actions/Form/ImportExcelStudentForm.php +++ b/app/Admin/Actions/Form/ImportExcelStudentForm.php @@ -33,7 +33,7 @@ class ImportExcelStudentForm extends Form public function form() { - $this->file('file', '上传新生数据(Excel)')->rules('required', ['required' => '文件不能为空']); + $this->file('file', '上传Excel')->rules('required', ['required' => '文件不能为空']); } diff --git a/app/Admin/Actions/Grid/ImportExcelLoan.php b/app/Admin/Actions/Grid/ImportExcelLoan.php new file mode 100644 index 0000000..a64ae43 --- /dev/null +++ b/app/Admin/Actions/Grid/ImportExcelLoan.php @@ -0,0 +1,84 @@ +getKey()}"; + + // 模态窗 + $this->modal($id); + + return << + + +HTML; + } + + protected function modal($id) + { + $form = new ImportExcelLoanForm(); + + Admin::script('Dcat.onPjaxComplete(function () { + $(".modal-backdrop").remove(); + $("body").removeClass("modal-open"); + }, true)'); + + // 通过 Admin::html 方法设置模态窗HTML + Admin::html( + << + + +HTML + ); + } + + /** + * @param Model|Authenticatable|HasPermissions|null $user + * + * @return bool + */ + protected function authorize($user): bool + { + return true; + } + + /** + * @return array + */ + protected function parameters() + { + return []; + } + +} diff --git a/app/Admin/Actions/Grid/ImportExcelOldStudent.php b/app/Admin/Actions/Grid/ImportExcelOldStudent.php new file mode 100644 index 0000000..bc425c8 --- /dev/null +++ b/app/Admin/Actions/Grid/ImportExcelOldStudent.php @@ -0,0 +1,83 @@ +getKey()}-old"; + + // 模态窗 + $this->modal($id); + + return << + + +HTML; + } + + protected function modal($id) + { + $form = new ImportExcelOldStudentForm(); + + Admin::script('Dcat.onPjaxComplete(function () { + $(".modal-backdrop").remove(); + $("body").removeClass("modal-open"); + }, true)'); + + // 通过 Admin::html 方法设置模态窗HTML + Admin::html( + << + + +HTML + ); + } + + /** + * @param Model|Authenticatable|HasPermissions|null $user + * + * @return bool + */ + protected function authorize($user): bool + { + return true; + } + + /** + * @return array + */ + protected function parameters() + { + return []; + } + +} diff --git a/app/Admin/Controllers/AdmissionNewStudentController.php b/app/Admin/Controllers/AdmissionNewStudentController.php index 85b53ee..8bfa1f8 100644 --- a/app/Admin/Controllers/AdmissionNewStudentController.php +++ b/app/Admin/Controllers/AdmissionNewStudentController.php @@ -2,13 +2,18 @@ namespace App\Admin\Controllers; +use App\Admin\Actions\Grid\ImportExcelOldStudent; use App\Admin\Actions\Grid\ImportExcelStudent; +use App\Admin\CustomButton\CompletedOffLineStepButton; +use App\Admin\CustomButton\CompletedOnLineStepButton; +use App\Admin\CustomButton\UserBaseInfoButton; +use App\Admin\Extensions\Exporter\ImportCompletedOnLineStepView; use App\Admin\Extensions\Exporter\ImportStudentExporter; use App\Admin\Metrics\Examples\AdmissionExcelUsers; -use App\Admin\Metrics\Examples\AdmissionPayUsers; +use App\Admin\Metrics\Examples\AdmissionOnLineUser; use App\Admin\Metrics\Examples\AdmissionRegisterUsers; use App\Admin\Metrics\Examples\AdmissionStepUsers; -use App\Admin\Metrics\Examples\Sessions; +use App\Admin\Renderable\StudentInfoTable; use App\Models\AdmissionNewStudents; use App\Models\Config; use App\Models\SecondaryCollege; @@ -20,7 +25,6 @@ use Dcat\Admin\Layout\Content; use Dcat\Admin\Layout\Row; use Dcat\Admin\Show; use Dcat\Admin\Http\Controllers\AdminController; -use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; class AdmissionNewStudentController extends AdminController @@ -33,7 +37,7 @@ class AdmissionNewStudentController extends AdminController ->body(function (Row $row) { $row->column(3, new AdmissionExcelUsers()); $row->column(3, new AdmissionRegisterUsers()); - $row->column(3, new AdmissionPayUsers()); + $row->column(3, new AdmissionOnLineUser()); $row->column(3, new AdmissionStepUsers()); }) ->body($this->grid()); @@ -55,6 +59,12 @@ class AdmissionNewStudentController extends AdminController $grid->export(new ImportStudentExporter()); $grid->column('id')->sortable(); + $grid->column('is_new_student')->display(function () { + return $this->is_new_student == 1 ? "新生" : "老生"; + }); + $grid->column('day_student')->display(function () { + return $this->day_student == 1 ? "否" : "是"; + }); $grid->column('mobile'); $grid->column('name'); $grid->column('idCard'); @@ -77,6 +87,9 @@ class AdmissionNewStudentController extends AdminController return $info->speciality_name; } })->help("未显示专业时请检查是否已经分配专业"); + $grid->column("student_info")->display('详细信息')->expand( function (){ + return StudentInfoTable::make()->payload(["id"=>$this->id]); + })->help("对应收费系统相应代码"); $grid->column('sex')->display(function () { return $this->sex == 0 ? "未知" : ($this->sex == 1 ? "男" : "女"); }); @@ -88,11 +101,12 @@ class AdmissionNewStudentController extends AdminController return "未注册"; })->help("此注册指是否已使用该身份证在迎新小程序上注册登录"); - $grid->column('resuming_school')->display(function (){ - if($this->resuming_school == AdmissionNewStudents::RESUMING_SCHOOL_ZERO) return "普通学生"; - if($this->resuming_school == AdmissionNewStudents::RESUMING_SCHOOL_ONE) return "退伍复学"; - if($this->resuming_school == AdmissionNewStudents::RESUMING_SCHOOL_TWO) return "普通复学"; - })->help("区分统招或复学");; + + $grid->column('annual_session'); + $grid->column('is_push')->display(function (){ + if($this->is_push == AdmissionNewStudents::IS_PUSH_NO) return "未推送"; + if($this->is_push == AdmissionNewStudents::IS_PUSH_YES) return "已推送"; + })->help("是否已推送到收费系统");; $grid->column('is_test')->display(function (){ if($this->is_test == UsersMember::IS_TEST_YES){ return "是"; @@ -110,6 +124,19 @@ class AdmissionNewStudentController extends AdminController $filter->equal('mobile'); $filter->equal('name'); $filter->equal('idCard'); + $filter->equal('annual_session'); + $filter->where("secondary_college_id", function ($query) { + + $specialityIds = Speciality::query()->where("secondary_college_id", $this->input)->get()->toArray(); + if(!empty($specialityIds)){ + $specialityIds = array_column($specialityIds, "id"); + } + + $query->whereIn('speciality_id', $specialityIds); + + })->select(function(){ + return SecondaryCollege::query()->pluck("name", "id"); + }); $filter->equal('speciality_id')->select(function (){ $list = Speciality::query()->where("status", Speciality::STATUS_YES)->get()->toArray(); if(empty($list)){ @@ -142,13 +169,9 @@ class AdmissionNewStudentController extends AdminController "2" => "已注册" ]; }); - $filter->equal('resuming_school')->select(function (){ - return [ - "0" => "普通学生", - "1" => "退伍复学", - "2" => "普通复学" - ]; - }); + $filter->equal('is_new_student')->select([1 => "新生", 2 => "老生"]); + $filter->equal('day_student')->select([1 => "否", 2 => "是"]); + $filter->equal('is_push')->select([1 => "否", 2 => "是"]); $filter->equal('status')->select([1 => "正常", 2 => "禁用"]); $filter->between('create_time')->datetime()->toTimestamp(); }); @@ -163,9 +186,14 @@ class AdmissionNewStudentController extends AdminController $grid->tools(function (Grid\Tools $tools) { // excle 导入 $tools->append(new ImportExcelStudent()); + $tools->append(new ImportExcelOldStudent()); + $tools->append(new CompletedOnLineStepButton()); + $tools->append(new CompletedOffLineStepButton()); + $tools->append(new UserBaseInfoButton()); }); //下载模版 - $grid->tools(''); + $grid->tools(''); + $grid->tools(''); }); } @@ -209,7 +237,7 @@ class AdmissionNewStudentController extends AdminController $form->text('mobile'); $form->text('name')->required(); $form->text('idCard')->required(); - $form->text('admission_code'); + $form->text('admission_code')->required(); $form->select('sex')->options([0 => "未知", 1 => '男', 2 => '女'])->required(); $form->select("speciality_id")->options(function () { @@ -227,12 +255,43 @@ class AdmissionNewStudentController extends AdminController })->required(); $form->select('status', '状态')->options([1 => '正常', 2 => '禁用'])->required(); $form->select('is_test', '测试账号')->options([1 => '否', 2 => '是'])->required(); - $form->select('resuming_school')->options([ - "0" => "普通学生", - "1" => "退伍复学", - "2" => "普通复学" + $form->select('day_student')->options([1 => '否', 2 => '是'])->required(); + + $form->select('is_new_student') + ->when(1, function (Form $form) { + // 值为1时显示 + $form->text('nj', "年级")->rules('required_if:is_new_student,1', ['required_if' => '年级字段不能为空']); + $form->text('xydm', "学院代码")->rules('required_if:is_new_student,1', ['required_if' => '学院代码字段不能为空']); + $form->text('zydm',"专业代码")->rules('required_if:is_new_student,1', ['required_if' => '专业代码字段不能为空']); + $form->text('bjdm', "班级代码"); + $form->text('xz', "学制代码")->rules('required_if:is_new_student,1', ['required_if' => '学制代码字段不能为空']); + $form->text('xslbdm', "学生类别代码")->rules('required_if:is_new_student,1', ['required_if' => '学生类别代码字段不能为空']); + $form->text('xjztdm', "学籍状态代码")->rules('required_if:is_new_student,1', ['required_if' => '学籍状态代码字段不能为空']); + $form->select('sfzx', "是否在校代码")->options([ + 0 => "否", + 1 => "是" + ])->rules('required_if:is_new_student,1', ['required_if' => '是否在校代码字段不能为空']); + $form->select('is_equivalent', "考生类型")->options([ + 1 => "统招生", + 2 => "单招生", + ])->rules('required_if:is_new_student,1', ['required_if' => '考生类型字段不能为空']); + $form->select('is_four_type', "考生分类")->options([ + 1 => "高职本科3+2", + 2 => "四类人员", + 3 => "普通考生", + 4 => "中职3+2", + ])->rules('required_if:is_new_student,1', ['required_if' => '考生分类字段不能为空']); + $form->text('province', "招生省份")->rules('required_if:is_new_student,1', ['required_if' => '招生省份字段不能为空']); + + })->when(2, function (Form $form) { + $form->text('old_student_bed_info', "床位信息(老生)")->rules('required_if:is_new_student,2', ['required_if' => '床位信息(老生)字段不能为空']); + + })->options([1 => '新生', 2 => '老生'])->required(); + + $form->select('is_five_year', "是否为五年制一贯制")->options([ + 1 => "否", + 2 => "是", ])->required(); - $form->hidden("annual_session"); $form->hidden("create_time"); $form->hidden("update_time"); @@ -276,6 +335,7 @@ class AdmissionNewStudentController extends AdminController // 删除用户提交的数据 $form->deleteInput('admission_code'); } + }else{ $form->update_time =time(); if(!$form->mobile){ @@ -288,6 +348,32 @@ class AdmissionNewStudentController extends AdminController } } + //检测是新生或老生 + if($form->is_new_student == AdmissionNewStudents::IS_NEW_STUDENT_YES){ + //新生时 + // 删除用户提交的数据 + $form->deleteInput('old_student_bed_info'); + if(!$form->bjdm){ + $form->deleteInput('bjdm'); + } + } + + if($form->is_new_student == AdmissionNewStudents::IS_NEW_STUDENT_NO){ + //老生时 + // 删除用户提交的数据 + $form->deleteInput('nj'); + $form->deleteInput('xydm'); + $form->deleteInput('zydm'); + $form->deleteInput('bjdm'); + $form->deleteInput('xz'); + $form->deleteInput('xslbdm'); + $form->deleteInput('xjztdm'); + $form->deleteInput('sfzx'); + $form->deleteInput('is_equivalent'); + $form->deleteInput('is_four_type'); + $form->deleteInput('province'); + } + //初始化专业名及二级学院名 $specialityName = ""; diff --git a/app/Admin/Controllers/AllocationDormitoryBedController.php b/app/Admin/Controllers/AllocationDormitoryBedController.php index a5dbe1e..7a051ab 100644 --- a/app/Admin/Controllers/AllocationDormitoryBedController.php +++ b/app/Admin/Controllers/AllocationDormitoryBedController.php @@ -19,16 +19,13 @@ use App\Models\MultipleWorld; use App\Models\SecondaryCollege; use App\Models\SelectedDormitory; use App\Models\Speciality; -use App\Models\UsersMember; -use Dcat\Admin\Actions\Action; use Dcat\Admin\Form; use Dcat\Admin\Grid; use Dcat\Admin\Layout\Content; use Dcat\Admin\Layout\Row; use Dcat\Admin\Show; use Dcat\Admin\Http\Controllers\AdminController; -use Dcat\Admin\Widgets\Metrics\Card; -use Illuminate\Support\MessageBag; + class AllocationDormitoryBedController extends AdminController { diff --git a/app/Admin/Controllers/HomeController.php b/app/Admin/Controllers/HomeController.php index 3633a13..dbea7a6 100644 --- a/app/Admin/Controllers/HomeController.php +++ b/app/Admin/Controllers/HomeController.php @@ -4,6 +4,7 @@ namespace App\Admin\Controllers; use App\Admin\Metrics\Examples; use App\Admin\Metrics\Examples\AdmissionExcelUsers; +use App\Admin\Metrics\Examples\AdmissionOnLineUser; use App\Admin\Metrics\Examples\AdmissionPayUsers; use App\Admin\Metrics\Examples\AdmissionStepUsers; use App\Admin\Metrics\Examples\SelectedDormitoryTotal; @@ -29,7 +30,7 @@ class HomeController extends Controller $row->column(6, new Examples\NewUsers()); $row->column(6, new TotalUsers()); $row->column(6, new AdmissionExcelUsers()); - $row->column(6, new AdmissionPayUsers()); + $row->column(6, new AdmissionOnLineUser()); $row->column(6, new AdmissionStepUsers()); $row->column(6, new SelectedDormitoryTotal()); }); diff --git a/app/Admin/Controllers/LoanStudentsListController.php b/app/Admin/Controllers/LoanStudentsListController.php new file mode 100644 index 0000000..ba7d290 --- /dev/null +++ b/app/Admin/Controllers/LoanStudentsListController.php @@ -0,0 +1,174 @@ +withBorder(); + // 开启字段选择器功能 + $grid->showColumnSelector(); + //开启导出功能 + $grid->export(new ImportLoanExporter()); + + $grid->column('id')->sortable(); + $grid->column('sfzh'); + $grid->column('xh'); + $grid->column('xm'); + $grid->column('annual_session'); + $grid->column('fylx')->display(function(){ + if($this->fylx == LoanStudentsList::FYLX_JH) return "贷款计划"; + if($this->fylx == LoanStudentsList::FYLX_DZ) return "贷款到账"; + }); + $grid->column('total'); + $grid->column('xfje')->help("程序计算出来的学费抵扣金额"); + $grid->column('zsje')->help("程序计算出来的住宿费抵扣金额"); + $grid->column('is_five_year')->display(function(){ + if($this->is_push == LoanStudentsList::IS_FIVE_YEAR_YES) return "是"; + if($this->is_push == LoanStudentsList::IS_FIVE_YEAR_NO) return "否"; + }); + $grid->column('is_push')->display(function(){ + if($this->is_push == LoanStudentsList::IS_PUSH_YES) return "已推送"; + if($this->is_push == LoanStudentsList::IS_PUSH_NO) return "未推送"; + }); + $grid->column('create_time')->display(function (){ + if(!empty($this->create_time)){ + return date("Y-m-d H:i:s", $this->create_time); + } + })->sortable(); + + $grid->filter(function (Grid\Filter $filter) { + $filter->equal('sfzh'); + $filter->equal('xh'); + $filter->equal('xm'); + $filter->equal('annual_session'); + $filter->equal('fylx')->select(function (){ + return [ + LoanStudentsList::FYLX_JH => "贷款计划", + LoanStudentsList::FYLX_DZ => "贷款到账" + ]; + }); + }); + + //禁用批量操作按钮 + $grid->disableBatchDelete(); + // 禁用详情按钮 + $grid->disableViewButton(); + + $grid->tools(function (Grid\Tools $tools) { + // excle 导入 + $tools->append(new ImportExcelLoan()); + }); + + //下载模版 + $grid->tools(''); + }); + } + + /** + * Make a show builder. + * + * @param mixed $id + * + * @return Show + */ + protected function detail($id) + { + return Show::make($id, new LoanStudentsList(), function (Show $show) { + $show->field('id'); + $show->field('sfzh'); + $show->field('xh'); + $show->field('xm'); + $show->field('annual_session'); + $show->field('fylx'); + $show->field('total'); + $show->field('xfje'); + $show->field('zsje'); + $show->field('is_push'); + $show->field('create_time'); + $show->field('update_time'); + $show->field('is_five_year'); + }); + } + + /** + * Make a form builder. + * + * @return Form + */ + protected function form() + { + return Form::make(new LoanStudentsList(), function (Form $form) { + $form->display('id'); + $form->text('sfzh')->required(); + $form->text('xh')->required(); + $form->text('xm')->required(); + $form->select('fylx')->options([ + LoanStudentsList::FYLX_JH => "贷款计划", + LoanStudentsList::FYLX_DZ => "贷款到账" + ])->required(); + $form->select('is_five_year')->options([ + LoanStudentsList::IS_FIVE_YEAR_YES => "是", + LoanStudentsList::IS_FIVE_YEAR_NO => "否" + ])->required(); + $form->number('total')->required(); + + $form->hidden("annual_session"); + $form->hidden("create_time"); + $form->hidden("update_time"); + + // 去除删除按钮 + $form->disableDeleteButton(); + // 去除跳转详情按钮 + $form->disableViewButton(); + + $form->footer(function ($footer) { + + // 去掉`查看`checkbox + $footer->disableViewCheck(); + + // 去掉`继续编辑`checkbox + $footer->disableEditingCheck(); + + // 去掉`继续创建`checkbox + $footer->disableCreatingCheck(); + + }); + + //保存前回调 + $form->saving(function (Form $form) { + + if ($form->isCreating()) { + $config = Config::query()->where([ + "unique_identification" => "annual_session" + ])->first(); + $form->annual_session = $config->data; + $form->create_time =time(); + // 删除用户提交的数据 + $form->deleteInput('update_time'); + + }else{ + $form->update_time =time(); + } + }); + }); + } +} diff --git a/app/Admin/Controllers/OrderController.php b/app/Admin/Controllers/OrderController.php index ba913e9..740919b 100644 --- a/app/Admin/Controllers/OrderController.php +++ b/app/Admin/Controllers/OrderController.php @@ -2,11 +2,18 @@ namespace App\Admin\Controllers; +use App\Admin\Extensions\Exporter\ImportOrder; +use App\Admin\Renderable\PayProjectTable; use App\Models\Order; +use App\Models\PaymentList; +use App\Models\SecondaryCollege; +use App\Models\Speciality; +use App\Models\UsersMember; use Dcat\Admin\Form; use Dcat\Admin\Grid; use Dcat\Admin\Show; use Dcat\Admin\Http\Controllers\AdminController; +use Dcat\Admin\Widgets\Table; class OrderController extends AdminController { @@ -18,30 +25,146 @@ class OrderController extends AdminController protected function grid() { return Grid::make(new Order(), function (Grid $grid) { + //开启边框模式 + $grid->withBorder(); + // 开启字段选择器功能 + $grid->showColumnSelector(); + //开启导出功能 + $grid->export(new ImportOrder()); + $grid->column('id')->sortable(); - $grid->column('products_name'); - $grid->column('unique_number'); + $grid->column('annual_session')->help("对应缴费年份,如2022-2023则表示缴纳该年份的费用"); + $grid->column('idcard')->display(function($info){ + $info = UsersMember::query()->where("unique_number", $this->unique_number)->first(); + if(!empty($info)){ + return $info->idcard; + } + })->help("不显示时代表未找到该用户"); + $grid->column('mobile')->display(function($info){ + $info = UsersMember::query()->where("unique_number", $this->unique_number)->first(); + if(!empty($info)){ + return $info->mobile; + } + })->help("不显示时代表未找到该用户"); + $grid->column('user_name')->display(function(){ + $info = UsersMember::query()->where("unique_number", $this->unique_number)->first(); + if(!empty($info)){ + $str = ''; + if($info->is_test == 2){ + $str = "(测试)"; + } + return $info->name.$str; + } + })->help("不显示时代表未找到该用户"); + $grid->column('sex', __('性别'))->display(function(){ + $info = UsersMember::query()->where("unique_number", $this->unique_number)->first(); + if(empty($info)){ + return "不存在此账号"; + } + if($info->sex == 1){ + return "男"; + } + if($info->sex == 2){ + return "女"; + } + return "未知"; + }); + $grid->column('speciality_id')->display(function(){ + $info = UsersMember::query()->where("unique_number", $this->unique_number)->first(); + if(!empty($info)){ + $speciality = Speciality::query()->where("id", $info->speciality_id)->first(); + if(!empty($speciality)){ + $college = SecondaryCollege::query()->where("id", $speciality->secondary_college_id)->first(); + if(!empty($college)){ + return $speciality->speciality_name."({$college->name})"; + } + } + } + })->limit(20);; $grid->column('orders_num'); - $grid->column('amounts_price'); + $grid->column('transaction_id')->limit(10); $grid->column('price'); - $grid->column('transaction_id'); - $grid->column('pay_type'); - $grid->column('pay_time'); - $grid->column('create_time'); - $grid->column('update_time'); - $grid->column('status'); - $grid->column('annual_session'); - $grid->column('payment_data'); - $grid->column('source'); - $grid->column('source_orders_num'); - $grid->column('dormitory_price'); - $grid->column('source_pay_time'); - $grid->column('msg'); - + $grid->column('pay_type')->display(function(){ + $msg = "未知"; + if($this->pay_type == Order::PAY_TYPE_WECHAT) $msg = "微信支付"; + return $msg; + }); + $grid->column('pay_time')->display(function (){ + $time_msg = "未支付"; + if(!empty($this->pay_time)) $time_msg = date("Y-m-d H:i:s", $this->pay_time); + return $time_msg; + }); + $grid->column('status')->display(function(){ + if($this->status == Order::STATUS_UNPAID) return "未支付"; + if($this->status == Order::STATUS_PAID) return "已支付"; + if($this->status == Order::STATUS_CANCEL) return "已取消"; + }); + $grid->column('is_new_student_order')->display(function(){ + if($this->is_new_student_order == Order::IS_NEW_STUDENT_ORDER_NEW) return "新生订单"; + if($this->is_new_student_order == Order::IS_NEW_STUDENT_ORDER_NO) return "老生订单"; + }); + + + $grid->column("payment_data")->display('缴费项目')->modal( function (){ + $resultData = []; + $nameData = []; + + $data = json_decode($this->payment_data, true); + $payKeys = array_keys($data); + $payMentList = PaymentList::query()->where([ + "unique_number" => $this->unique_number, + "annual_session" => $this->annual_session + ])->whereIn("project_code", $payKeys)->get()->toArray(); + + if(!empty($payMentList)){ + $payMentList = array_column($payMentList, null, "project_code"); + + foreach($data as $key => $item){ + array_push($resultData, $item); + array_push($nameData, $payMentList[$key]['project_name']); + } + } + + return Table::make($nameData, [$resultData]); + }); + + $grid->column('msg')->limit(10); + $grid->filter(function (Grid\Filter $filter) { $filter->equal('id'); - + $filter->where("unique_number", function ($query) { + $unique_number = ""; + $userInfo = UsersMember::query()->where('mobile', $this->input)->orWhere('idcard', $this->input)->orWhere('name', $this->input)->first(['unique_number']); + if(!empty($userInfo)){ + $unique_number = $userInfo->unique_number; + } + $query->where('unique_number', $unique_number); + }, '手机号/身份证/姓名'); + $filter->equal('annual_session'); + $filter->equal('is_new_student_order')->select(function (){ + return [ + Order::IS_NEW_STUDENT_ORDER_NEW => "新生", + Order::IS_NEW_STUDENT_ORDER_NO => "老生" + ]; + }); + $filter->equal('status')->select(function (){ + return [ + Order::STATUS_UNPAID => "未支付", + Order::STATUS_PAID => "已支付", + Order::STATUS_CANCEL => "已取消" + ]; + }); + $filter->between('pay_time')->datetime()->toTimestamp(); }); + + // 禁用创建按钮 + $grid->disableCreateButton(); + // 禁用删除按钮 + $grid->disableDeleteButton(); + //禁用批量操作按钮 + $grid->disableBatchDelete(); + // 禁用详情按钮 + $grid->disableViewButton(); }); } diff --git a/app/Admin/Controllers/UsersMemberController.php b/app/Admin/Controllers/UsersMemberController.php index 216df39..d36f9ca 100644 --- a/app/Admin/Controllers/UsersMemberController.php +++ b/app/Admin/Controllers/UsersMemberController.php @@ -6,8 +6,6 @@ namespace App\Admin\Controllers; use App\Admin\Extensions\Exporter\StudentExporter; use App\Admin\Metrics\Examples\NewUsers; use App\Admin\Metrics\Examples\TotalUsers; -use App\Admin\Renderable\OnLineStepTable; -use App\Admin\Renderable\UserFamilyInfoTable; use App\Admin\Renderable\UserFamilyMeberTable; use App\Admin\Renderable\UserFamilyTable; use App\Models\AdmissionNewStudents; @@ -18,6 +16,7 @@ use App\Models\SecondaryCollege; use App\Models\Speciality; use App\Models\Step; use App\Models\UsersMember; +use App\Services\PublicServices; use Dcat\Admin\Form; use Dcat\Admin\Grid; use Dcat\Admin\Layout\Content; @@ -58,6 +57,10 @@ class UsersMemberController extends AdminController $grid->export(new StudentExporter()); $grid->column('id')->sortable(); + $grid->column('identity')->display(function () { + $iden = PublicServices::getInstance()->checkIsNewOldStudent($this->idcard); + return $iden == 1 ? "新生" : "老生"; + }); $grid->column('mobile'); $grid->column('unique_number'); $grid->column('name'); @@ -152,6 +155,31 @@ class UsersMemberController extends AdminController $filter->equal('name'); $filter->equal('idcard'); $filter->equal('status')->select([1 => "正常", 2 => "禁用"]); + $filter->where("identity", function ($query){ + $studentsIds = AdmissionNewStudents::query()->where([ + "is_new_student" => $this->input + ])->get()->toArray(); + if(!empty($studentsIds)){ + $studentsIds = array_column($studentsIds,"idCard"); + } + + $query->whereIn('idcard', $studentsIds); + })->select([ + "1" => "新生", + "2" => "老生" + ]); + $filter->where("secondary_college_id", function ($query) { + + $specialityIds = Speciality::query()->where("secondary_college_id", $this->input)->get()->toArray(); + if(!empty($specialityIds)){ + $specialityIds = array_column($specialityIds, "id"); + } + + $query->whereIn('speciality_id', $specialityIds); + + })->select(function(){ + return SecondaryCollege::query()->pluck("name", "id"); + }); $filter->equal('speciality_id')->select(function (){ $list = Speciality::query()->where("status", Speciality::STATUS_YES)->get()->toArray(); if(empty($list)){ diff --git a/app/Admin/CustomButton/CompletedOffLineStepButton.php b/app/Admin/CustomButton/CompletedOffLineStepButton.php new file mode 100644 index 0000000..34914b4 --- /dev/null +++ b/app/Admin/CustomButton/CompletedOffLineStepButton.php @@ -0,0 +1,43 @@ +getKey()}"; + // 返回自定义按钮的HTML代码 + return << + + +HTML; + } + + + /** + * @param Model|Authenticatable|HasPermissions|null $user + * + * @return bool + */ + protected function authorize($user): bool + { + return true; + } + + /** + * @return array + */ + protected function parameters() + { + return []; + } +} diff --git a/app/Admin/CustomButton/CompletedOnLineStepButton.php b/app/Admin/CustomButton/CompletedOnLineStepButton.php new file mode 100644 index 0000000..748642a --- /dev/null +++ b/app/Admin/CustomButton/CompletedOnLineStepButton.php @@ -0,0 +1,44 @@ +getKey()}"; + // 返回自定义按钮的HTML代码 + return << + + +HTML; + } + + + /** + * @param Model|Authenticatable|HasPermissions|null $user + * + * @return bool + */ + protected function authorize($user): bool + { + return true; + } + + /** + * @return array + */ + protected function parameters() + { + return []; + } +} diff --git a/app/Admin/CustomButton/UserBaseInfoButton.php b/app/Admin/CustomButton/UserBaseInfoButton.php new file mode 100644 index 0000000..0b5af75 --- /dev/null +++ b/app/Admin/CustomButton/UserBaseInfoButton.php @@ -0,0 +1,44 @@ +getKey()}"; + // 返回自定义按钮的HTML代码 + return << + + +HTML; + } + + + /** + * @param Model|Authenticatable|HasPermissions|null $user + * + * @return bool + */ + protected function authorize($user): bool + { + return true; + } + + /** + * @return array + */ + protected function parameters() + { + return []; + } +} diff --git a/app/Admin/Extensions/Exporter/ImportBedExporter.php b/app/Admin/Extensions/Exporter/ImportBedExporter.php index 51c6e40..5aef95f 100644 --- a/app/Admin/Extensions/Exporter/ImportBedExporter.php +++ b/app/Admin/Extensions/Exporter/ImportBedExporter.php @@ -50,6 +50,7 @@ class ImportBedExporter extends AbstractExporter implements WithMapping, WithHea "mobile" => "手机号", "idcard" => "身份证" ]; + parent::__construct(); } @@ -66,8 +67,6 @@ class ImportBedExporter extends AbstractExporter implements WithMapping, WithHea // return collect($this->buildData()); - //取出床位详细信息 -// $dormitoryBed = AllocationDormitoryBed::query()->where("id", $id)->first(); //宿舍类型 $dormitoryTypeInfo = DormitoryType::query()->get()->toArray(); @@ -119,6 +118,8 @@ class ImportBedExporter extends AbstractExporter implements WithMapping, WithHea if(!empty($selectList)){ $selectListIds = array_column($selectList, null, "allocation_dormitory_id"); + $userList = UsersMember::query()->whereIn("unique_number", array_column($selectList, "unique_number"))->get()->toArray(); + $userList = array_column($userList, null, "unique_number"); } $chunk_list = array_chunk($this->buildData(), 1000); @@ -134,10 +135,11 @@ class ImportBedExporter extends AbstractExporter implements WithMapping, WithHea if(!empty($selectListIds)){ if(array_key_exists($item["id"], $selectListIds)){ - $userInfo = UsersMember::query()->where("unique_number", $selectListIds[$item["id"]]["unique_number"])->first(); - $mobile = $userInfo->mobile; - $name = $userInfo->name; - $idcard = $userInfo->idcard; + if(array_key_exists($selectListIds[$item["id"]]["unique_number"], $userList)){ + $mobile = $userList[$selectListIds[$item["id"]]["unique_number"]]["mobile"]; + $name = $userList[$selectListIds[$item["id"]]["unique_number"]]["name"]; + $idcard = $userList[$selectListIds[$item["id"]]["unique_number"]]["idcard"]; + } } } diff --git a/app/Admin/Extensions/Exporter/ImportCompletedOfflineStep.php b/app/Admin/Extensions/Exporter/ImportCompletedOfflineStep.php new file mode 100644 index 0000000..0d1d574 --- /dev/null +++ b/app/Admin/Extensions/Exporter/ImportCompletedOfflineStep.php @@ -0,0 +1,143 @@ +fileName = $this->fileName.'_'.time().'.xlsx';//拼接下载文件名称 + $this->titles = [ + "name" => '姓名', + "mobile" => '手机', + "idcard" => '身份证', + "sex" => '性别', + "zb" => '招办签到', + "xy" => '二级学院签到', + "sg" => '宿管办签到', + "speciality_name" => '专业', + "conllege_name" => '二级学院', + "annual_session" => '年份', + ]; + parent::__construct(); + } + + public function export() + { + // TODO: Implement export() method. + $this->download($this->fileName)->prepare(request())->send(); + exit; + } + + public function collection() + { + // TODO: Implement collection() method. +// return collect($this->buildData()); + + //取出当前年份 + $config = Config::query()->where([ + "unique_identification" => "annual_session" + ])->first(); + + $list = CompletedOfflineStep::query()->where([ + "annual_session" => $config->data, + ])->get()->toArray(); + if(!empty($list)){ + //专业信息 + $specialityList = Speciality::query()->get()->toArray(); + $specialityList = array_column($specialityList, null,"id"); + + //二级学院 + $secondary_college = SecondaryCollege::query()->get()->toArray(); + $secondary_college = array_column($secondary_college, null,"id"); + + $numberList = array_unique(array_column($list, "unique_number")); + + $userList = UsersMember::query()->whereIn("unique_number", $numberList)->get()->toArray(); + $userList = array_column($userList, null, "unique_number"); + + $data = []; + + foreach($list as $item){ + if(array_key_exists($item["unique_number"], $data)){ + if(!in_array($item["step_id"], $data[$item["unique_number"]])){ + array_push($data[$item["unique_number"]], $item["step_id"]); + } + }else{ + $data[$item["unique_number"]][] = $item["step_id"]; + } + } + + $addList = []; + + foreach($data as $key => $item){ + + $zb = "否"; + $xy = "否"; + $sg = "否"; + + if(in_array(2, $item)) $zb = "是"; + if(in_array(3, $item)) $xy = "是"; + if(in_array(4, $item)) $sg = "是"; + + $add = [ + "name" => $userList[$key]["name"], + "mobile" => $userList[$key]["mobile"], + "idcard" => $userList[$key]["idcard"], + "sex" => $userList[$key]["sex"] == 1 ? "男" : "女", + "zb" => $zb, + "xy" => $xy, + "sg" => $sg, + "speciality_name" => $specialityList[$userList[$key]["speciality_id"]]["speciality_name"], + "conllege_name" => $secondary_college[$specialityList[$userList[$key]["speciality_id"]]['secondary_college_id']]['name'], + "annual_session" => $config->data, + ]; + + array_push($addList, $add); + } + + return collect($addList); + } + + } + + public function headings(): array + { + // TODO: Implement headings() method. + return $this->titles(); + } + + public function map($row): array + { + // TODO: Implement map() method. + return [ + $row["name"], + $row["mobile"], + "'".$row['idcard'].'', + $row["sex"], + $row["zb"], + $row["xy"], + $row["sg"], + $row["speciality_name"], + $row["conllege_name"], + $row["annual_session"], + ]; + } +} diff --git a/app/Admin/Extensions/Exporter/ImportCompletedOnLineStepView.php b/app/Admin/Extensions/Exporter/ImportCompletedOnLineStepView.php new file mode 100644 index 0000000..e0649cf --- /dev/null +++ b/app/Admin/Extensions/Exporter/ImportCompletedOnLineStepView.php @@ -0,0 +1,79 @@ +fileName = $this->fileName.'_'.time().'.xlsx';//拼接下载文件名称 + $this->titles = [ + 'name'=> '姓名', + 'mobile'=> '手机', + 'idcard'=> '身份证', + 'sex'=> '性别', + 'speciality_name'=> '专业', + 'conllege_name'=> '二级学院', + 'annual_session'=> '年份', + ]; + parent::__construct(); + } + + public function export() + { + // TODO: Implement export() method. + $this->download($this->fileName)->prepare(request())->send(); + exit; + } + + public function collection() + { + // TODO: Implement collection() method. +// return collect($this->buildData()); + + //取出当前年份 + $config = Config::query()->where([ + "unique_identification" => "annual_session" + ])->first(); + + $list = CompletedOnLineStepView::query()->where([ + "annual_session" => $config->data, + ])->get()->toArray(); + + return collect($list); + } + + public function headings(): array + { + // TODO: Implement headings() method. + return $this->titles(); + } + + public function map($row): array + { + // TODO: Implement map() method. + return [ + $row["name"], + $row["mobile"], + "'".$row['idcard'].'', + $row["sex"], + $row["speciality_name"], + $row["conllege_name"], + $row["annual_session"], + ]; + } +} diff --git a/app/Admin/Extensions/Exporter/ImportLoanExporter.php b/app/Admin/Extensions/Exporter/ImportLoanExporter.php new file mode 100644 index 0000000..93855c0 --- /dev/null +++ b/app/Admin/Extensions/Exporter/ImportLoanExporter.php @@ -0,0 +1,87 @@ +fileName = $this->fileName.'_'.time().'.xlsx';//拼接下载文件名称 + $this->titles = [ + 'sfzh'=>'身份证', + 'xh'=>'学号', + 'xm'=>'姓名', + 'annual_session'=>'年份', + 'fylx'=>'费用类型', + 'total'=>'贷款总额', + 'xfje'=>'抵扣学费金额', + 'zsje'=>'抵扣住宿费金额', + 'is_push'=>'是否已推送', + 'is_five_year'=>'是否为五年制一贯制', + "create_time" => "导入时间", + ]; + parent::__construct(); + } + + public function export() + { + // TODO: Implement export() method. + $this->download($this->fileName)->prepare(request())->send(); + exit; + } + + public function collection() + { + // TODO: Implement collection() method. + + return collect($this->buildData()); + } + + public function headings(): array + { + // TODO: Implement headings() method. + return $this->titles(); + } + + public function map($row): array + { + + $fylx = "贷款计划"; + if($row['fylx'] == LoanStudentsList::FYLX_DZ) $fylx = "贷款到账"; + + $is_push = "未推送"; + if($row['is_push'] == LoanStudentsList::IS_PUSH_YES) $is_push = "已推送"; + + $is_five_year = "否"; + if($row['is_five_year'] == LoanStudentsList::IS_FIVE_YEAR_YES) $is_five_year = "是"; + + // TODO: Implement map() method. + return [ + "'".$row['sfzh'].'', + $row["xh"], + $row["xm"], + $row["annual_session"], + $fylx, + $row["total"], + $row["xfje"], + $row["zsje"], + $is_push, + $is_five_year, + date("Y-m-d H:i:s", $row['create_time']), + ]; + } + +} diff --git a/app/Admin/Extensions/Exporter/ImportOrder.php b/app/Admin/Extensions/Exporter/ImportOrder.php new file mode 100644 index 0000000..e8ffe48 --- /dev/null +++ b/app/Admin/Extensions/Exporter/ImportOrder.php @@ -0,0 +1,153 @@ +fileName = $this->fileName.'_'.time().'.xlsx';//拼接下载文件名称 + $this->titles = [ + 'id'=> '订单ID', + 'orders_num'=> '订单号', + 'price'=> '实付金额', + 'transaction_id'=> '流水单号', + 'pay_time'=> '支付时间', + 'status'=> '状态', + 'annual_session'=> '年份', + 'is_new_student_order'=> '新老生订单', + 'payment_data'=> '缴费项目', + 'msg'=> '订单备注', + 'name'=> '姓名', + 'mobile'=> '手机', + 'idcard'=> '身份证', + 'sex'=> '性别', + 'speciality_name'=> '专业', + 'conllege_name'=> '二级学院', + ]; + parent::__construct(); + } + + public function export() + { + // TODO: Implement export() method. + $this->download($this->fileName)->prepare(request())->send(); + exit; + } + + public function collection() + { + // TODO: Implement collection() method. + + $payMentList = DB::select('SELECT DISTINCT(project_code),project_name FROM payment_list'); + $payMentListInfo = []; + + foreach($payMentList as $item){ + $payMentListInfo[$item->project_code] = $item->project_name; + } + + $orderList = $this->buildData(); + + //专业信息 + $specialityList = Speciality::query()->get()->toArray(); + $specialityList = array_column($specialityList, null,"id"); + + //二级学院 + $secondary_college = SecondaryCollege::query()->get()->toArray(); + $secondary_college = array_column($secondary_college, null,"id"); + + $numberList = array_unique(array_column($orderList, "unique_number")); + + $userList = UsersMember::query()->whereIn("unique_number", $numberList)->get()->toArray(); + $userList = array_column($userList, null, "unique_number"); + + $addList = []; + foreach($orderList as $item){ + $status = "未支付"; + if($item["status"] == Order::STATUS_PAID) $status = "已支付"; + if($item["status"] == Order::STATUS_CANCEL) $status = "已取消"; + + $is_new_student_order = "新生订单"; + if($item['is_new_student_order'] == Order::IS_NEW_STUDENT_ORDER_NO) $is_new_student_order = "老生订单"; + + $sex = "男"; + if($userList[$item["unique_number"]]['sex'] == 2) $sex = "女"; + + $payment_data = ""; + foreach(json_decode($item["payment_data"]) as $k => $v){ + $payment_data .= $payMentListInfo[$k].":".$v."|"; + } + + $arr = [ + 'id'=> $item['id'], + 'orders_num'=> $item['orders_num'], + 'price'=> $item['price'], + 'transaction_id'=> $item['transaction_id'], + 'pay_time'=> date("Y-m-d H:i:s", $item['pay_time']), + 'status'=> $status, + 'annual_session'=> $item['annual_session'], + 'is_new_student_order'=> $is_new_student_order, + 'payment_data' => rtrim($payment_data, "|"), + 'msg'=> $item["msg"], + 'name'=> $userList[$item["unique_number"]]['name'], + 'mobile'=> $userList[$item["unique_number"]]['mobile'], + 'idcard'=> $userList[$item["unique_number"]]['idcard'], + 'sex'=> $sex, + 'speciality_name'=> $specialityList[$userList[$item["unique_number"]]["speciality_id"]]["speciality_name"], + 'conllege_name'=> $secondary_college[$specialityList[$userList[$item["unique_number"]]["speciality_id"]]['secondary_college_id']]['name'], + ]; + array_push($addList, $arr); + } + + return collect($addList); + } + + public function headings(): array + { + // TODO: Implement headings() method. + return $this->titles(); + } + + public function map($row): array + { + // TODO: Implement map() method. + return [ + $row["id"], + $row["orders_num"], + $row["price"], + $row["transaction_id"], + $row["pay_time"], + $row["status"], + $row["annual_session"], + $row["is_new_student_order"], + $row["payment_data"], + $row["msg"], + $row["name"], + $row["mobile"], + "'".$row['idcard'].'', + $row["sex"], + $row["speciality_name"], + $row["conllege_name"], + ]; + } + +} diff --git a/app/Admin/Extensions/Exporter/ImportStudentExporter.php b/app/Admin/Extensions/Exporter/ImportStudentExporter.php index daf8499..8468db9 100644 --- a/app/Admin/Extensions/Exporter/ImportStudentExporter.php +++ b/app/Admin/Extensions/Exporter/ImportStudentExporter.php @@ -4,9 +4,6 @@ namespace App\Admin\Extensions\Exporter; -use App\Models\CompletedOfflineStep; -use App\Models\Speciality; -use App\Models\UsersMember; use Dcat\Admin\Grid\Exporters\AbstractExporter; use Maatwebsite\Excel\Concerns\Exportable; use Maatwebsite\Excel\Concerns\FromCollection; @@ -27,16 +24,31 @@ class ImportStudentExporter extends AbstractExporter implements WithMapping, Wit 'name'=>'姓名', 'idCard'=>'身份证', 'sex' => "性别", - "admission_code" => "录取编码", + "admission_code" => "录取编码(学号)", "admission_college" => "二级学院", "admitted_major" => "录取专业", - "resuming_school" => "复学类型", + "status" => "状态", + "is_register" => "是否已注册", "annual_session" => "年份", + "is_test" => "测试账号", + "nj" => "年级", + "xydm" => "学院代码", + "zydm" => "专业代码", + "bjdm" => "班级代码", + "xz" => "学制代码", + "xslbdm" => "学生类别代码", + "xjztdm" => "学籍状态代码", + "sfzx" => "是否在校代码", + "is_push" => "是否已推送", + "is_five_year" => "是否为五年制一贯制", + "is_equivalent" => "考生类型", + "is_four_type" => "考生分类", + "province" => "招生省份", + "is_new_student" => "是否为新生", + "old_student_bed_info" => "老生床位信息", + "day_student" => "是否为走读生", "create_time" => "导入时间", - "zhaoshengban" => "招生办报到", - "erjixueyuan" => "二级学院报到", - "suguan" => "宿管办报到", - "is_test" => "测试账号" + ]; parent::__construct(); } @@ -52,56 +64,7 @@ class ImportStudentExporter extends AbstractExporter implements WithMapping, Wit { // TODO: Implement collection() method. -// return collect($this->buildData()); - $chunk_list = array_chunk($this->buildData(), 1000); - $newList = []; - - $userList = UsersMember::query()->get()->toArray(); - $userList = array_column($userList, null, "idcard"); - - foreach($chunk_list as $value){ - foreach ($value as $item){ - $resuming_school = "普通学生"; - if($item["resuming_school"] == 1) $resuming_school = "退伍复学"; - if($item["resuming_school"] == 2) $resuming_school = "普通复学"; - $is_test = "否"; - if($item["is_test"] == 2) $is_test = "是"; - - $zhaoshengban = "否"; - $erjixueyuan = "否"; - $suguan = "否"; - - if(array_key_exists($item["idCard"], $userList)){ - $step = CompletedOfflineStep::query()->where("unique_number", $userList[$item["idCard"]]["unique_number"])->get()->toArray(); - if(!empty($step)){ - $step = array_column($step, null, "step_id"); - if(array_key_exists(2, $step)) $zhaoshengban = "是"; - if(array_key_exists(3, $step)) $erjixueyuan = "是"; - if(array_key_exists(4, $step)) $suguan = "是"; - } - } - - $arr = [ - "sex" => $item['sex'] == 1 ? "男" : "女", - "resuming_school" => $resuming_school, - "is_test" => $is_test, - "zhaoshengban" => $zhaoshengban, - "erjixueyuan" => $erjixueyuan, - "suguan" => $suguan, - "mobile" => $item["mobile"], - "name" => $item["name"], - "idCard" => $item["idCard"], - "admission_code" => $item["admission_code"], - "admission_college" => $item["admission_college"], - "admitted_major" => $item["admitted_major"], - "annual_session" => $item["annual_session"], - "create_time" => date("Y-m-d H:i:s", $item['create_time']), - ]; - array_push($newList, $arr); - } - } - - return collect($newList); + return collect($this->buildData()); } public function headings(): array @@ -112,38 +75,64 @@ class ImportStudentExporter extends AbstractExporter implements WithMapping, Wit public function map($row): array { + $sex = "女"; + if($row['sex'] == 1) $sex = "男"; + $status = "正常"; + if($row['status'] == 2) $status = "禁用"; + $is_register = "未注册"; + if($row['is_register'] == 2) $status = "已注册"; + $is_test = "否"; + if($row['is_test'] == 2) $status = "是"; + $sfzx = "否"; + if($row['sfzx'] == 1) $sfzx = "是"; + $is_push = "未推送"; + if($row['is_push'] == 2) $is_push = "已推送"; + $is_five_year = "否"; + if($row['is_five_year'] == 2) $is_five_year = "是"; + $is_equivalent = "统招生"; + if($row['is_equivalent'] == 2) $is_equivalent = "单招生"; + + $is_four_type = ""; + if($row['is_four_type'] == 1) $is_four_type = "高职本科3+2"; + if($row['is_four_type'] == 2) $is_four_type = "四类人员"; + if($row['is_four_type'] == 3) $is_four_type = "普通考生"; + if($row['is_four_type'] == 4) $is_four_type = "中职3+2"; + $is_new_student = "新生"; + if($row['is_new_student'] == 2) $is_new_student = "老生"; + $day_student = "否"; + if($row['day_student'] == 2) $day_student = "是"; // TODO: Implement map() method. return [ $row['mobile'], $row['name'], "'".$row['idCard'].'', - $row['sex'], + $sex, $row['admission_code'], $row['admission_college'], $row['admitted_major'], - $row['resuming_school'], + $status, + $is_register, $row['annual_session'], - $row['create_time'], - $row["zhaoshengban"], - $row["erjixueyuan"], - $row["suguan"], - $row["is_test"], + $is_test, + $row['nj'], + $row['xydm'], + $row['zydm'], + $row['bjdm'], + $row['xz'], + $row['xslbdm'], + $row['xjztdm'], + $sfzx, + $is_push, + $is_five_year, + $is_equivalent, + $is_four_type, + $row['province'], + $is_new_student, + $row['old_student_bed_info'], + $day_student, + date("Y-m-d H:i:s", $row['create_time']), ]; } - public function getSpecialityAndCollegeNameById($id) - { - $nameInfo = Speciality::query()->where("speciality.id", $id)->leftJoin("secondary_college as b", "speciality.secondary_college_id", "=", "b.id")->first(); - - if(empty($nameInfo)){ - return [ - "name" => "", - "speciality_name" => "" - ]; - } - - return $nameInfo->toArray(); - } - } diff --git a/app/Admin/Extensions/Exporter/ImportUserBaseInfo.php b/app/Admin/Extensions/Exporter/ImportUserBaseInfo.php new file mode 100644 index 0000000..7c82a81 --- /dev/null +++ b/app/Admin/Extensions/Exporter/ImportUserBaseInfo.php @@ -0,0 +1,156 @@ +fileName = $this->fileName.'_'.time().'.xlsx';//拼接下载文件名称 + $this->titles = [ + "family_name" => '联系人', + "family_mobile" => '联系号码', + "relationship" => '关系', + "address" => '家庭住址', + "postal_code" => '邮政编码', + "native" => '籍贯', + "email" => '邮箱', + "name" => '学生姓名', + "mobile" => '学生号码', + "idcard" => '学生身份证', + "sex" => '学生性别', + "speciality_name" => '专业', + "conllege_name" => '二级学院', + "annual_session" => '年份', + ]; + parent::__construct(); + } + + public function export() + { + // TODO: Implement export() method. + $this->download($this->fileName)->prepare(request())->send(); + exit; + } + + public function collection() + { + // TODO: Implement collection() method. + //取出当前年份 + $config = Config::query()->where([ + "unique_identification" => "annual_session" + ])->first(); + + //专业信息 + $specialityList = Speciality::query()->get()->toArray(); + $specialityList = array_column($specialityList, null,"id"); + + //二级学院 + $secondary_college = SecondaryCollege::query()->get()->toArray(); + $secondary_college = array_column($secondary_college, null,"id"); + + $studentsList = AdmissionNewStudents::query()->where([ + "annual_session" => $config->data, + "is_new_student" => AdmissionNewStudents::IS_NEW_STUDENT_YES + ])->get()->toArray(); + + $userList = UsersMember::query()->whereIn("idcard", array_column($studentsList, "idCard"))->get()->toArray(); + $userList = array_column($userList, null, "unique_number"); + + $basicFamilyInfoList = BasicFamilyInformation::query()->whereIn("unique_number", array_column($userList, "unique_number"))->get()->toArray(); + if(empty($basicFamilyInfoList)){ + return collect([]); + } + + $userBasicInfoList = UserBasicInfo::query()->whereIn("unique_number", array_column($userList, "unique_number"))->get()->toArray(); + if(empty($userBasicInfoList)){ + return collect([]); + } + $userBasicInfoList = array_column($userBasicInfoList, null, "unique_number"); + + $addList = []; + foreach($basicFamilyInfoList as $item){ + $address = ""; + $postal_code = ""; + $native = ""; + $email = ""; + + if(array_key_exists($item["unique_number"], $userBasicInfoList)){ + $address = $userBasicInfoList[$item["unique_number"]]['province_city_area'].'--'.$userBasicInfoList[$item["unique_number"]]['address']; + $postal_code = $userBasicInfoList[$item["unique_number"]]['postal_code']; + $native = $userBasicInfoList[$item["unique_number"]]['native']; + $email = $userBasicInfoList[$item["unique_number"]]['email']; + } + + $arr = [ + "family_name" => $item["name"], + "family_mobile" => $item["mobile"], + "relationship" => $item["relationship"], + "address" => $address, + "postal_code" => $postal_code, + "native" => $native, + "email" => $email, + "name" => $userList[$item["unique_number"]]["name"], + "mobile" => $userList[$item["unique_number"]]["mobile"], + "idcard" => $userList[$item["unique_number"]]["idcard"], + "sex" => $userList[$item["unique_number"]]["sex"] == 1 ? "男" : "女", + "speciality_name" => $specialityList[$userList[$item["unique_number"]]["speciality_id"]]["speciality_name"], + "conllege_name" => $secondary_college[$specialityList[$userList[$item["unique_number"]]["speciality_id"]]['secondary_college_id']]['name'], + "annual_session" => $config->data, + ]; + + array_push($addList, $arr); + } + + return collect($addList); + } + + public function headings(): array + { + // TODO: Implement headings() method. + return $this->titles(); + } + + public function map($row): array + { + // TODO: Implement map() method. + return [ + $row["family_name"], + $row["family_mobile"], + $row["relationship"], + $row["address"], + $row["postal_code"], + $row["native"], + $row["email"], + $row["name"], + $row["mobile"], + "'".$row['idcard'].'', + $row["sex"], + $row["speciality_name"], + $row["conllege_name"], + $row["annual_session"], + ]; + } + +} diff --git a/app/Admin/Metrics/Examples/AdmissionExcelUsers.php b/app/Admin/Metrics/Examples/AdmissionExcelUsers.php index 827f4d7..4a39238 100644 --- a/app/Admin/Metrics/Examples/AdmissionExcelUsers.php +++ b/app/Admin/Metrics/Examples/AdmissionExcelUsers.php @@ -43,7 +43,7 @@ class AdmissionExcelUsers extends Card "unique_identification" => "annual_session" ])->first(); - //注册总人数 + //总人数 $allCount = AdmissionNewStudents::query()->where([ "annual_session" => $config->data, ])->count(); @@ -66,7 +66,7 @@ class AdmissionExcelUsers extends Card public function up($percent) { return $this->footer( - " {$percent}人 为当前年份已导入人数" + " {$percent}人 为当前年份已导入新老生人数" ); } diff --git a/app/Admin/Metrics/Examples/AdmissionOnLineUser.php b/app/Admin/Metrics/Examples/AdmissionOnLineUser.php new file mode 100644 index 0000000..2603d38 --- /dev/null +++ b/app/Admin/Metrics/Examples/AdmissionOnLineUser.php @@ -0,0 +1,142 @@ +title('线上报到人数'); + //取出线上步骤 + $stepList = Step::query()->pluck("title", "id"); + $downList = []; + foreach($stepList as $key => $item){ + $downList[$key] = $item; + } + + $this->dropdown($downList); + } + + /** + * 处理请求. + * + * @param Request $request + * + * @return void + */ + public function handle(Request $request) + { + $stepId = $request->get('option'); + + //取出当前年份 + $config = Config::query()->where([ + "unique_identification" => "annual_session" + ])->first(); + + $where = [ + "annual_session" => $config->data, + ]; + if(!empty($stepId)){ + $where["step_id"] = $stepId; + } + + //缴费总人数 + $allCount = CompletedStep::query() + ->where($where)->distinct("unique_number")->count(); + + $this->content($allCount); + + if($allCount > 0){ + $this->up($allCount); + }else{ + $this->down($allCount); + } + + } + + /** + * @param int $percent + * + * @return $this + */ + public function up($percent) + { + return $this->footer( + " {$percent}人 为当前年份线上报到人数" + ); + } + + /** + * @param int $percent + * + * @return $this + */ + public function down($percent) + { + return $this->footer( + " {$percent}人 为当前年份线上报到人数" + ); + } + + /** + * 设置卡片底部内容. + * + * @param string|Renderable|\Closure $footer + * + * @return $this + */ + public function footer($footer) + { + $this->footer = $footer; + + return $this; + } + + /** + * 渲染卡片内容. + * + * @return string + */ + public function renderContent() + { + $content = parent::renderContent(); + + return << +

{$content}

+ +
+ {$this->renderFooter()} +
+HTML; + } + + /** + * 渲染卡片底部内容. + * + * @return string + */ + public function renderFooter() + { + return $this->toString($this->footer); + } +} diff --git a/app/Admin/Metrics/Examples/AdmissionRegisterUsers.php b/app/Admin/Metrics/Examples/AdmissionRegisterUsers.php index 5060598..cce2df5 100644 --- a/app/Admin/Metrics/Examples/AdmissionRegisterUsers.php +++ b/app/Admin/Metrics/Examples/AdmissionRegisterUsers.php @@ -67,7 +67,7 @@ class AdmissionRegisterUsers extends Card public function up($percent) { return $this->footer( - " {$percent}人 为当前年份已注册人数" + " {$percent}人 为当前年份已注册新老生人数" ); } diff --git a/app/Admin/Metrics/Examples/AdmissionStepUsers.php b/app/Admin/Metrics/Examples/AdmissionStepUsers.php index d9a9c83..e829548 100644 --- a/app/Admin/Metrics/Examples/AdmissionStepUsers.php +++ b/app/Admin/Metrics/Examples/AdmissionStepUsers.php @@ -2,10 +2,9 @@ namespace App\Admin\Metrics\Examples; -use App\Models\AdmissionNewStudents; use App\Models\CompletedOfflineStep; use App\Models\Config; -use App\Models\Order; +use App\Models\OfflineStep; use Dcat\Admin\Widgets\Metrics\Card; use Illuminate\Contracts\Support\Renderable; use Illuminate\Http\Request; @@ -26,8 +25,15 @@ class AdmissionStepUsers extends Card { parent::init(); - $this->title('报到人数'); + $this->title('线下报到人数'); + //取出线下步骤 + $stepList = OfflineStep::query()->pluck("title", "id"); + $downList = []; + foreach($stepList as $key => $item){ + $downList[$key] = $item; + } + $this->dropdown($downList); } /** @@ -39,14 +45,22 @@ class AdmissionStepUsers extends Card */ public function handle(Request $request) { + $stepId = $request->get('option'); //取出当前年份 - /*$config = Config::query()->where([ + $config = Config::query()->where([ "unique_identification" => "annual_session" - ])->first();*/ + ])->first(); + + $where = [ + "annual_session" => $config->data, + ]; + if(!empty($stepId)){ + $where["step_id"] = $stepId; + } //报到总人数 - $allCount = CompletedOfflineStep::query() + $allCount = CompletedOfflineStep::query()->where($where) ->distinct("unique_number")->count(); $this->content($allCount); @@ -67,7 +81,7 @@ class AdmissionStepUsers extends Card public function up($percent) { return $this->footer( - " {$percent}人 为当前年份已报到人数" + " {$percent}人 为当前年份线下报到人数" ); } @@ -79,7 +93,7 @@ class AdmissionStepUsers extends Card public function down($percent) { return $this->footer( - " {$percent}人 为当前年份已报到人数" + " {$percent}人 为当前年份线下报到人数" ); } diff --git a/app/Admin/Renderable/StudentInfoTable.php b/app/Admin/Renderable/StudentInfoTable.php new file mode 100644 index 0000000..3cbdd62 --- /dev/null +++ b/app/Admin/Renderable/StudentInfoTable.php @@ -0,0 +1,64 @@ +payload['id'] ?? null; + if (!empty($id)) { + $grid->model()->where('id', $id); + } + + $grid->column('nj', "年级"); + $grid->column('xydm', "学院代码"); + $grid->column('zydm',"专业代码"); + $grid->column('bjdm', "班级代码"); + $grid->column('xz', "学制代码"); + $grid->column('xslbdm', "学生类别代码"); + $grid->column('xjztdm', "学籍状态代码"); + $grid->column('sfzx', "是否在校代码")->display(function(){ + if($this->sfzx == 0) return "否"; + if($this->sfzx == 1) return "是"; + }); + $grid->column('is_five_year', "是否为五年制一贯制")->display(function(){ + if($this->is_five_year == 1) return "否"; + if($this->is_five_year == 2) return "是"; + }); + $grid->column('is_equivalent', "考生类型")->display(function(){ + if($this->is_equivalent == 1) return "统招生"; + if($this->is_equivalent == 2) return "单招生"; + }); + $grid->column('is_four_type', "考生分类")->display(function(){ + if($this->is_four_type == 1) return "高职本科3+2"; + if($this->is_four_type == 2) return "四类人员"; + if($this->is_four_type == 3) return "普通考生"; + if($this->is_four_type == 4) return "中职3+2"; + }); + $grid->column('province', "招生省份"); + $grid->column('old_student_bed_info', "床位信息(老生)"); + + //禁用批量操作按钮 + $grid->disableBatchDelete(); + //禁用创建按钮 + $grid->disableCreateButton(); + //禁用操作按钮 + $grid->disableActions(); + //禁用刷新按钮 + $grid->disableRefreshButton(); + + $grid->paginate(10); + }); + } +} diff --git a/app/Admin/routes.php b/app/Admin/routes.php index f29743c..ac6a804 100644 --- a/app/Admin/routes.php +++ b/app/Admin/routes.php @@ -37,4 +37,5 @@ Route::group([ $router->resource("/wechat_app", "WechatAppController"); $router->resource("/wechat_app_config", "WechatAppConfigController"); $router->resource("/security_user", "SecurityUserController"); + $router->resource("/loan_students_list", "LoanStudentsListController"); }); diff --git a/app/Imports/FirstSheetImport.php b/app/Imports/FirstSheetImport.php index a0baa17..863b9ed 100644 --- a/app/Imports/FirstSheetImport.php +++ b/app/Imports/FirstSheetImport.php @@ -70,6 +70,19 @@ class FirstSheetImport implements ToCollection, WithBatchInserts, WithChunkReadi "idCard" => trim($item["身份证"]), "admission_college" => trim($item["录取学院"]), "admitted_major" => trim($item["录取专业"]), + "admission_code" => trim($item["学号"]), + "nj" => trim($item["年级"]), + "xydm" => trim($item["学院代码"]), + "zydm" => trim($item["专业代码"]), + "bjdm" => trim($item["班级代码"]), + "xz" => trim($item["学制代码"]), + "xslbdm" => trim($item["学生类别代码"]), + "xjztdm" => trim($item["学籍状态代码"]), + "sfzx" => trim($item["是否在校代码"]), + "is_five_year" => trim($item["是否五年一贯制"]), + "is_equivalent" => trim($item["考生类型"]), + "is_four_type" => trim($item["考生分类"]), + "province" => trim($item["省份"]), "create_time" => time(), "annual_session" => $config->data ]; @@ -80,14 +93,6 @@ class FirstSheetImport implements ToCollection, WithBatchInserts, WithChunkReadi $arr["sex"] = 2; } - if(!empty($item["复学类型"])){ - if(trim($item["复学类型"]) == "退伍复学"){ - $arr["resuming_school"] = 1; - }else if(trim($item["复学类型"]) == "普通复学"){ - $arr["resuming_school"] = 2; - } - } - //检测专业 //取出所有二级学院 $secondaryCollegeList = SecondaryCollege::query()->where([ @@ -130,12 +135,23 @@ class FirstSheetImport implements ToCollection, WithBatchInserts, WithChunkReadi foreach ($chunk_list as $new_list) { $add = AdmissionNewStudents::query()->insert($new_list); - if($add != count($insertData)){ + if($add != count($new_list)){ throw new \Exception("导入数据失败,请重试"); } } DB::commit(); + }catch (\PDOException $e){ + DB::rollBack(); + if ($e->getCode() === '23000') { + // 唯一性约束错误处理逻辑 + $errorMessage = "导入表格中存在已入库学生信息,请勿重复导入"; + // 可以根据需要进行相关处理 + throw new \Exception($errorMessage); + } else { + // 其他类型的错误处理逻辑 + throw new \Exception("导入数据失败,请重试"); + } }catch (\Exception $e){ DB::rollBack(); throw new \Exception("导入数据失败,请重试"); diff --git a/app/Imports/LoanDataExcel.php b/app/Imports/LoanDataExcel.php new file mode 100644 index 0000000..f8395a1 --- /dev/null +++ b/app/Imports/LoanDataExcel.php @@ -0,0 +1,25 @@ +round = $round; + } + + public function sheets(): array + { + return [ + new LoanFirstSheetImport($this->round), + ]; + + } +} diff --git a/app/Imports/LoanFirstSheetImport.php b/app/Imports/LoanFirstSheetImport.php new file mode 100644 index 0000000..a866453 --- /dev/null +++ b/app/Imports/LoanFirstSheetImport.php @@ -0,0 +1,120 @@ +round = $round; + } + + + /** + * @param array $row + * + * @return Model|Model[]|null + */ + public function model(array $row) + { + + // // 数据库对应的字段 + return null; + } + + public function collection(Collection $rows) + { + //导入的表格所有数据都在此处显示 + $list = $rows->toArray(); + if(empty($list)){ + throw new \Exception("请勿上传空文件"); + } + + //取出当前年份 + $config = Config::query()->where([ + "unique_identification" => "annual_session" + ])->first(); + if(empty($config)){ + throw new \Exception("相关配置信息不能为空"); + } + + + //入库 + $insertData = []; + + foreach($list as $key => $item){ + + $arr = [ + "sfzh" => trim($item["身份证"]), + "xh" => trim($item["学号"]), + "xm" => trim($item["姓名"]), + "fylx" => trim($item["费用类型"]), + "total" => trim($item["贷款总金额"]), + "is_five_year" => trim($item["五年一贯制"]), + "create_time" => time(), + "annual_session" => $config->data + ]; + array_push($insertData, $arr); + } + + DB::beginTransaction(); + try { + + $chunk_list = array_chunk($insertData, 1000); + + foreach ($chunk_list as $new_list) { + $add = LoanStudentsList::query()->insert($new_list); + if($add != count($new_list)){ + throw new \Exception("导入数据失败,请重试"); + } + } + + + DB::commit(); + }catch (\PDOException $e){ + DB::rollBack(); + if ($e->getCode() === '23000') { + // 唯一性约束错误处理逻辑 + $errorMessage = "导入表格中存在已入库学生贷款信息,请勿重复导入"; + // 可以根据需要进行相关处理 + throw new \Exception($errorMessage); + } else { + // 其他类型的错误处理逻辑 + throw new \Exception("导入数据失败,请重试"); + } + }catch (\Exception $e){ + DB::rollBack(); + throw new \Exception("导入数据失败,请重试"); + } + + } + + + //批量导入1000条 + public function batchSize(): int + { + return 1000; + } + + //以1000条数据基准切割数据 + public function chunkSize(): int + { + return 1000; + } +} diff --git a/app/Imports/OldStudentDataExcel.php b/app/Imports/OldStudentDataExcel.php new file mode 100644 index 0000000..d4d9b23 --- /dev/null +++ b/app/Imports/OldStudentDataExcel.php @@ -0,0 +1,25 @@ +round = $round; + } + + public function sheets(): array + { + return [ + new OldStudentFirstSheetImport($this->round), + ]; + + } +} diff --git a/app/Imports/OldStudentFirstSheetImport.php b/app/Imports/OldStudentFirstSheetImport.php new file mode 100644 index 0000000..4b91863 --- /dev/null +++ b/app/Imports/OldStudentFirstSheetImport.php @@ -0,0 +1,165 @@ +round = $round; + } + + + /** + * @param array $row + * + * @return Model|Model[]|null + */ + public function model(array $row) + { + + //写导入的逻辑关系 +// $user = Orderuser::where('phone', '=', $row['电话'])->where('name', '=',$row['姓名'])->first(); + +// dd($row); + // // 数据库对应的字段 + return null; + } + + public function collection(Collection $rows) + { + //导入的表格所有数据都在此处显示 + $list = $rows->toArray(); + if(empty($list)){ + throw new \Exception("请勿上传空文件"); + } + + //入库 + $insertData = []; + + foreach($list as $key => $item){ + $arr = [ + "mobile" => trim($item["手机号"]), + "name" => trim($item["姓名"]), + "idCard" => trim($item["身份证"]), + "admission_college" => trim($item["录取学院"]), + "admitted_major" => trim($item["录取专业"]), + "admission_code" => trim($item["学号"]), + "is_five_year" => trim($item["是否五年一贯制"]), + "create_time" => time(), + "annual_session" => trim($item["学年"]), + "is_new_student" => AdmissionNewStudents::IS_NEW_STUDENT_NO, + "old_student_bed_info" => trim($item["床位信息"]), + "is_push" => AdmissionNewStudents::IS_PUSH_YES, //老生标记已推送 + "is_register" => AdmissionNewStudents::REGISTER_YES, //老生标记已注册 + ]; + + //检测必有字段是否为空 + if(empty($arr["annual_session"]) || empty($arr["old_student_bed_info"])){ + throw new \Exception("学年及床位信息字段不能为空"); + } + + //检测性别 + if(trim($item["性别"]) == "男"){ + $arr["sex"] = 1; + }else if(trim($item["性别"]) == "女"){ + $arr["sex"] = 2; + } + + //检测专业 + //取出所有二级学院 + $secondaryCollegeList = SecondaryCollege::query()->where([ + "status" => SecondaryCollege::STATUS_YES + ])->get()->toArray(); + if(empty($secondaryCollegeList)){ + throw new \Exception("识别失败,二级学院信息为空"); + } + + //以学院名作为键 + $secondaryCollegeList = array_column($secondaryCollegeList, null, "name"); + + //初识化专业id + $speciality_id = 0; + + //取出指定学院下面的专业 + $specialityInfo = Speciality::query()->where([ + "secondary_college_id" => $secondaryCollegeList[trim($item["录取学院"])]["id"], + "speciality_name" => trim($item["录取专业"]), + "status" => Speciality::STATUS_YES + ])->first(); + if(!empty($specialityInfo)){ + $speciality_id = $specialityInfo->id; + } + + //专业ID为空时提示 + if(empty($speciality_id)){ + throw new \Exception("识别失败,请检查二级学院或专业名称是否和后台录入的一致"); + } + + $arr["speciality_id"] = $speciality_id; + + array_push($insertData, $arr); + } + + DB::beginTransaction(); + try { + + $chunk_list = array_chunk($insertData, 1000); + + foreach ($chunk_list as $new_list) { + $add = AdmissionNewStudents::query()->insert($new_list); + if($add != count($new_list)){ + throw new \Exception("导入数据失败,请重试"); + } + } + + DB::commit(); + }catch (\PDOException $e){ + DB::rollBack(); + if ($e->getCode() === '23000') { + // 唯一性约束错误处理逻辑 + $errorMessage = "导入表格中存在已入库学生信息,请勿重复导入"; + // 可以根据需要进行相关处理 + throw new \Exception($errorMessage); + } else { + // 其他类型的错误处理逻辑 + throw new \Exception("导入数据失败,请重试"); + } + }catch (\Exception $e){ + DB::rollBack(); + throw new \Exception("导入数据失败,请重试"); + } + + } + + + //批量导入1000条 + public function batchSize(): int + { + return 1000; + } + + //以1000条数据基准切割数据 + public function chunkSize(): int + { + return 1000; + } +} diff --git a/app/Models/AdmissionNewStudents.php b/app/Models/AdmissionNewStudents.php index a367119..426cb6c 100644 --- a/app/Models/AdmissionNewStudents.php +++ b/app/Models/AdmissionNewStudents.php @@ -19,4 +19,10 @@ class AdmissionNewStudents extends Model const RESUMING_SCHOOL_ZERO = 0; const RESUMING_SCHOOL_ONE = 1; const RESUMING_SCHOOL_TWO = 2; + + const IS_NEW_STUDENT_YES = 1; //是否为新生 1是 + const IS_NEW_STUDENT_NO = 2; //2老生 + + const IS_PUSH_NO = 1; //未推送 + const IS_PUSH_YES = 2; //已推送 } diff --git a/app/Models/CompletedOnLineStepView.php b/app/Models/CompletedOnLineStepView.php new file mode 100644 index 0000000..a7f6e4b --- /dev/null +++ b/app/Models/CompletedOnLineStepView.php @@ -0,0 +1,15 @@ +where([ + "idCard" => $idcard + ])->count(); + //出现两条数据以上时必为老生 + if($count > 1){ + return AdmissionNewStudents::IS_NEW_STUDENT_NO; + } + + //为一条数据时检测是否为老生 + $studentInfo = AdmissionNewStudents::query()->where([ + "idCard" => $idcard + ])->first(); + return $studentInfo->is_new_student; + } +} diff --git a/config/admin.php b/config/admin.php index 08f8182..0f39262 100644 --- a/config/admin.php +++ b/config/admin.php @@ -201,7 +201,7 @@ return [ |-------------------------------------------------------------------------- */ 'helpers' => [ - 'enable' => false, + 'enable' => true, ], /* diff --git a/dcat_admin_ide_helper.php b/dcat_admin_ide_helper.php index 58cbd11..0a194a2 100644 --- a/dcat_admin_ide_helper.php +++ b/dcat_admin_ide_helper.php @@ -11,65 +11,80 @@ namespace Dcat\Admin { use Illuminate\Support\Collection; /** + * @property Grid\Column|Collection created_at + * @property Grid\Column|Collection detail * @property Grid\Column|Collection id * @property Grid\Column|Collection name * @property Grid\Column|Collection type - * @property Grid\Column|Collection version - * @property Grid\Column|Collection detail - * @property Grid\Column|Collection created_at * @property Grid\Column|Collection updated_at + * @property Grid\Column|Collection version * @property Grid\Column|Collection is_enabled - * @property Grid\Column|Collection parent_id - * @property Grid\Column|Collection order + * @property Grid\Column|Collection extension * @property Grid\Column|Collection icon + * @property Grid\Column|Collection order + * @property Grid\Column|Collection parent_id * @property Grid\Column|Collection uri - * @property Grid\Column|Collection extension - * @property Grid\Column|Collection permission - * @property Grid\Column|Collection user_id - * @property Grid\Column|Collection path - * @property Grid\Column|Collection method - * @property Grid\Column|Collection ip * @property Grid\Column|Collection input - * @property Grid\Column|Collection permission_id + * @property Grid\Column|Collection ip + * @property Grid\Column|Collection method + * @property Grid\Column|Collection path + * @property Grid\Column|Collection user_id * @property Grid\Column|Collection menu_id - * @property Grid\Column|Collection slug + * @property Grid\Column|Collection permission_id * @property Grid\Column|Collection http_method * @property Grid\Column|Collection http_path + * @property Grid\Column|Collection slug * @property Grid\Column|Collection role_id * @property Grid\Column|Collection value - * @property Grid\Column|Collection username - * @property Grid\Column|Collection password * @property Grid\Column|Collection avatar + * @property Grid\Column|Collection password * @property Grid\Column|Collection remember_token - * @property Grid\Column|Collection unique_number - * @property Grid\Column|Collection idCard + * @property Grid\Column|Collection username * @property Grid\Column|Collection admission_code * @property Grid\Column|Collection admission_college * @property Grid\Column|Collection admitted_major - * @property Grid\Column|Collection status - * @property Grid\Column|Collection refuse_msg * @property Grid\Column|Collection create_time + * @property Grid\Column|Collection idCard + * @property Grid\Column|Collection refuse_msg + * @property Grid\Column|Collection status + * @property Grid\Column|Collection unique_number * @property Grid\Column|Collection update_time - * @property Grid\Column|Collection step_id * @property Grid\Column|Collection content * @property Grid\Column|Collection msg + * @property Grid\Column|Collection step_id + * @property Grid\Column|Collection annual_session + * @property Grid\Column|Collection bjdm + * @property Grid\Column|Collection day_student + * @property Grid\Column|Collection is_equivalent + * @property Grid\Column|Collection is_five_year + * @property Grid\Column|Collection is_four_type + * @property Grid\Column|Collection is_new_student + * @property Grid\Column|Collection is_push + * @property Grid\Column|Collection is_register + * @property Grid\Column|Collection is_test * @property Grid\Column|Collection mobile + * @property Grid\Column|Collection nj + * @property Grid\Column|Collection old_student_bed_info + * @property Grid\Column|Collection province * @property Grid\Column|Collection sex - * @property Grid\Column|Collection is_register + * @property Grid\Column|Collection sfzx * @property Grid\Column|Collection speciality_id - * @property Grid\Column|Collection annual_session - * @property Grid\Column|Collection is_test - * @property Grid\Column|Collection dormitory_type - * @property Grid\Column|Collection multiple_worlds - * @property Grid\Column|Collection living_area + * @property Grid\Column|Collection xjztdm + * @property Grid\Column|Collection xslbdm + * @property Grid\Column|Collection xydm + * @property Grid\Column|Collection xz + * @property Grid\Column|Collection zydm + * @property Grid\Column|Collection bed_id * @property Grid\Column|Collection building_id - * @property Grid\Column|Collection floor_id * @property Grid\Column|Collection dormitory_number - * @property Grid\Column|Collection bed_id - * @property Grid\Column|Collection apply_price - * @property Grid\Column|Collection apply_images + * @property Grid\Column|Collection dormitory_type + * @property Grid\Column|Collection floor_id + * @property Grid\Column|Collection living_area + * @property Grid\Column|Collection multiple_worlds * @property Grid\Column|Collection apply_id + * @property Grid\Column|Collection apply_images * @property Grid\Column|Collection apply_msg + * @property Grid\Column|Collection apply_price * @property Grid\Column|Collection fail_msg * @property Grid\Column|Collection order_id * @property Grid\Column|Collection supplementary_time @@ -78,176 +93,224 @@ namespace Dcat\Admin { * @property Grid\Column|Collection bed_number * @property Grid\Column|Collection building_title * @property Grid\Column|Collection teacher_id - * @property Grid\Column|Collection unique_identification * @property Grid\Column|Collection data * @property Grid\Column|Collection remark - * @property Grid\Column|Collection price + * @property Grid\Column|Collection unique_identification + * @property Grid\Column|Collection eight + * @property Grid\Column|Collection eleven + * @property Grid\Column|Collection fifteen + * @property Grid\Column|Collection five + * @property Grid\Column|Collection four + * @property Grid\Column|Collection fourteen + * @property Grid\Column|Collection nine + * @property Grid\Column|Collection one + * @property Grid\Column|Collection seven + * @property Grid\Column|Collection six + * @property Grid\Column|Collection ten + * @property Grid\Column|Collection thirteen + * @property Grid\Column|Collection three + * @property Grid\Column|Collection twelve + * @property Grid\Column|Collection two + * @property Grid\Column|Collection discount_amount_id + * @property Grid\Column|Collection project_identify + * @property Grid\Column|Collection project_name + * @property Grid\Column|Collection sort * @property Grid\Column|Collection images + * @property Grid\Column|Collection price * @property Grid\Column|Collection reason + * @property Grid\Column|Collection type_id * @property Grid\Column|Collection dormitory - * @property Grid\Column|Collection uuid * @property Grid\Column|Collection connection - * @property Grid\Column|Collection queue - * @property Grid\Column|Collection payload * @property Grid\Column|Collection exception * @property Grid\Column|Collection failed_at + * @property Grid\Column|Collection payload + * @property Grid\Column|Collection queue + * @property Grid\Column|Collection uuid * @property Grid\Column|Collection floor_title - * @property Grid\Column|Collection people + * @property Grid\Column|Collection fylx + * @property Grid\Column|Collection sfzh + * @property Grid\Column|Collection total + * @property Grid\Column|Collection xfje + * @property Grid\Column|Collection xh + * @property Grid\Column|Collection xm + * @property Grid\Column|Collection zsje * @property Grid\Column|Collection dormitory_type_id - * @property Grid\Column|Collection sort - * @property Grid\Column|Collection is_must - * @property Grid\Column|Collection products_name - * @property Grid\Column|Collection orders_num - * @property Grid\Column|Collection amounts_price - * @property Grid\Column|Collection transaction_id - * @property Grid\Column|Collection pay_type - * @property Grid\Column|Collection pay_time - * @property Grid\Column|Collection is_pay - * @property Grid\Column|Collection full_amount + * @property Grid\Column|Collection people * @property Grid\Column|Collection dormitory_id + * @property Grid\Column|Collection idcard * @property Grid\Column|Collection multiple_id - * @property Grid\Column|Collection payment_id + * @property Grid\Column|Collection is_must + * @property Grid\Column|Collection amounts_price + * @property Grid\Column|Collection dormitory_price * @property Grid\Column|Collection expire_time + * @property Grid\Column|Collection full_amount + * @property Grid\Column|Collection is_find_test + * @property Grid\Column|Collection is_new_student_order + * @property Grid\Column|Collection is_pay + * @property Grid\Column|Collection is_query + * @property Grid\Column|Collection orders_num + * @property Grid\Column|Collection pay_time + * @property Grid\Column|Collection pay_type * @property Grid\Column|Collection payment_data + * @property Grid\Column|Collection payment_id + * @property Grid\Column|Collection products_name * @property Grid\Column|Collection selected_dormitory_id * @property Grid\Column|Collection source * @property Grid\Column|Collection source_orders_num - * @property Grid\Column|Collection dormitory_price * @property Grid\Column|Collection source_pay_time - * @property Grid\Column|Collection is_query - * @property Grid\Column|Collection is_find_test + * @property Grid\Column|Collection transaction_id * @property Grid\Column|Collection email * @property Grid\Column|Collection token + * @property Grid\Column|Collection amount + * @property Grid\Column|Collection details * @property Grid\Column|Collection project_code - * @property Grid\Column|Collection project_name * @property Grid\Column|Collection standard - * @property Grid\Column|Collection amount - * @property Grid\Column|Collection tokenable_type - * @property Grid\Column|Collection tokenable_id * @property Grid\Column|Collection abilities * @property Grid\Column|Collection last_used_at - * @property Grid\Column|Collection idcard + * @property Grid\Column|Collection tokenable_id + * @property Grid\Column|Collection tokenable_type + * @property Grid\Column|Collection available_amount + * @property Grid\Column|Collection discount_amount + * @property Grid\Column|Collection preferential_type_id + * @property Grid\Column|Collection admin_id + * @property Grid\Column|Collection is_create_order + * @property Grid\Column|Collection level * @property Grid\Column|Collection pay_details * @property Grid\Column|Collection push_data - * @property Grid\Column|Collection level - * @property Grid\Column|Collection is_create_order - * @property Grid\Column|Collection admin_id * @property Grid\Column|Collection this_orders_num - * @property Grid\Column|Collection this_transaction_id * @property Grid\Column|Collection this_pay_time + * @property Grid\Column|Collection this_transaction_id * @property Grid\Column|Collection bed_info - * @property Grid\Column|Collection submit_time - * @property Grid\Column|Collection total_fee * @property Grid\Column|Collection code + * @property Grid\Column|Collection push_info * @property Grid\Column|Collection response + * @property Grid\Column|Collection submit_time + * @property Grid\Column|Collection total_fee * @property Grid\Column|Collection orders_info + * @property Grid\Column|Collection loan_info + * @property Grid\Column|Collection student_info + * @property Grid\Column|Collection all_price_msg + * @property Grid\Column|Collection bed_name * @property Grid\Column|Collection college_name + * @property Grid\Column|Collection delay_price * @property Grid\Column|Collection major_name - * @property Grid\Column|Collection bed_name * @property Grid\Column|Collection pay - * @property Grid\Column|Collection delay_price - * @property Grid\Column|Collection all_price_msg * @property Grid\Column|Collection url - * @property Grid\Column|Collection start_time * @property Grid\Column|Collection end_time - * @property Grid\Column|Collection security_name - * @property Grid\Column|Collection screct_key + * @property Grid\Column|Collection start_time * @property Grid\Column|Collection public_key + * @property Grid\Column|Collection screct_key + * @property Grid\Column|Collection security_name * @property Grid\Column|Collection allocation_dormitory_id * @property Grid\Column|Collection allocation_dormitory_name - * @property Grid\Column|Collection titleKey - * @property Grid\Column|Collection config_msg * @property Grid\Column|Collection config + * @property Grid\Column|Collection config_msg + * @property Grid\Column|Collection titleKey * @property Grid\Column|Collection sms_id - * @property Grid\Column|Collection speciality_name * @property Grid\Column|Collection secondary_college_id - * @property Grid\Column|Collection uid + * @property Grid\Column|Collection speciality_name * @property Grid\Column|Collection login_ip + * @property Grid\Column|Collection uid * @property Grid\Column|Collection belongto * @property Grid\Column|Collection is_authority * @property Grid\Column|Collection open_number_id - * @property Grid\Column|Collection is_required * @property Grid\Column|Collection identify - * @property Grid\Column|Collection province_city_area + * @property Grid\Column|Collection is_required * @property Grid\Column|Collection address - * @property Grid\Column|Collection postal_code * @property Grid\Column|Collection native + * @property Grid\Column|Collection postal_code + * @property Grid\Column|Collection province_city_area * @property Grid\Column|Collection email_verified_at - * @property Grid\Column|Collection unique_number_bcrypt - * @property Grid\Column|Collection last_time * @property Grid\Column|Collection last_ip + * @property Grid\Column|Collection last_time * @property Grid\Column|Collection openId + * @property Grid\Column|Collection unique_number_bcrypt * @property Grid\Column|Collection app_id * @property Grid\Column|Collection app_secret + * @property Grid\Column|Collection cert_pem * @property Grid\Column|Collection desc - * @property Grid\Column|Collection mch_id + * @property Grid\Column|Collection is_delete * @property Grid\Column|Collection key - * @property Grid\Column|Collection cert_pem * @property Grid\Column|Collection key_pem - * @property Grid\Column|Collection is_delete - * @property Grid\Column|Collection miniapp_id + * @property Grid\Column|Collection mch_id * @property Grid\Column|Collection appid + * @property Grid\Column|Collection miniapp_id * @property Grid\Column|Collection notify_url * + * @method Grid\Column|Collection created_at(string $label = null) + * @method Grid\Column|Collection detail(string $label = null) * @method Grid\Column|Collection id(string $label = null) * @method Grid\Column|Collection name(string $label = null) * @method Grid\Column|Collection type(string $label = null) - * @method Grid\Column|Collection version(string $label = null) - * @method Grid\Column|Collection detail(string $label = null) - * @method Grid\Column|Collection created_at(string $label = null) * @method Grid\Column|Collection updated_at(string $label = null) + * @method Grid\Column|Collection version(string $label = null) * @method Grid\Column|Collection is_enabled(string $label = null) - * @method Grid\Column|Collection parent_id(string $label = null) - * @method Grid\Column|Collection order(string $label = null) + * @method Grid\Column|Collection extension(string $label = null) * @method Grid\Column|Collection icon(string $label = null) + * @method Grid\Column|Collection order(string $label = null) + * @method Grid\Column|Collection parent_id(string $label = null) * @method Grid\Column|Collection uri(string $label = null) - * @method Grid\Column|Collection extension(string $label = null) - * @method Grid\Column|Collection permission(string $label = null) - * @method Grid\Column|Collection user_id(string $label = null) - * @method Grid\Column|Collection path(string $label = null) - * @method Grid\Column|Collection method(string $label = null) - * @method Grid\Column|Collection ip(string $label = null) * @method Grid\Column|Collection input(string $label = null) - * @method Grid\Column|Collection permission_id(string $label = null) + * @method Grid\Column|Collection ip(string $label = null) + * @method Grid\Column|Collection method(string $label = null) + * @method Grid\Column|Collection path(string $label = null) + * @method Grid\Column|Collection user_id(string $label = null) * @method Grid\Column|Collection menu_id(string $label = null) - * @method Grid\Column|Collection slug(string $label = null) + * @method Grid\Column|Collection permission_id(string $label = null) * @method Grid\Column|Collection http_method(string $label = null) * @method Grid\Column|Collection http_path(string $label = null) + * @method Grid\Column|Collection slug(string $label = null) * @method Grid\Column|Collection role_id(string $label = null) * @method Grid\Column|Collection value(string $label = null) - * @method Grid\Column|Collection username(string $label = null) - * @method Grid\Column|Collection password(string $label = null) * @method Grid\Column|Collection avatar(string $label = null) + * @method Grid\Column|Collection password(string $label = null) * @method Grid\Column|Collection remember_token(string $label = null) - * @method Grid\Column|Collection unique_number(string $label = null) - * @method Grid\Column|Collection idCard(string $label = null) + * @method Grid\Column|Collection username(string $label = null) * @method Grid\Column|Collection admission_code(string $label = null) * @method Grid\Column|Collection admission_college(string $label = null) * @method Grid\Column|Collection admitted_major(string $label = null) - * @method Grid\Column|Collection status(string $label = null) - * @method Grid\Column|Collection refuse_msg(string $label = null) * @method Grid\Column|Collection create_time(string $label = null) + * @method Grid\Column|Collection idCard(string $label = null) + * @method Grid\Column|Collection refuse_msg(string $label = null) + * @method Grid\Column|Collection status(string $label = null) + * @method Grid\Column|Collection unique_number(string $label = null) * @method Grid\Column|Collection update_time(string $label = null) - * @method Grid\Column|Collection step_id(string $label = null) * @method Grid\Column|Collection content(string $label = null) * @method Grid\Column|Collection msg(string $label = null) + * @method Grid\Column|Collection step_id(string $label = null) + * @method Grid\Column|Collection annual_session(string $label = null) + * @method Grid\Column|Collection bjdm(string $label = null) + * @method Grid\Column|Collection day_student(string $label = null) + * @method Grid\Column|Collection is_equivalent(string $label = null) + * @method Grid\Column|Collection is_five_year(string $label = null) + * @method Grid\Column|Collection is_four_type(string $label = null) + * @method Grid\Column|Collection is_new_student(string $label = null) + * @method Grid\Column|Collection is_push(string $label = null) + * @method Grid\Column|Collection is_register(string $label = null) + * @method Grid\Column|Collection is_test(string $label = null) * @method Grid\Column|Collection mobile(string $label = null) + * @method Grid\Column|Collection nj(string $label = null) + * @method Grid\Column|Collection old_student_bed_info(string $label = null) + * @method Grid\Column|Collection province(string $label = null) * @method Grid\Column|Collection sex(string $label = null) - * @method Grid\Column|Collection is_register(string $label = null) + * @method Grid\Column|Collection sfzx(string $label = null) * @method Grid\Column|Collection speciality_id(string $label = null) - * @method Grid\Column|Collection annual_session(string $label = null) - * @method Grid\Column|Collection is_test(string $label = null) - * @method Grid\Column|Collection dormitory_type(string $label = null) - * @method Grid\Column|Collection multiple_worlds(string $label = null) - * @method Grid\Column|Collection living_area(string $label = null) + * @method Grid\Column|Collection xjztdm(string $label = null) + * @method Grid\Column|Collection xslbdm(string $label = null) + * @method Grid\Column|Collection xydm(string $label = null) + * @method Grid\Column|Collection xz(string $label = null) + * @method Grid\Column|Collection zydm(string $label = null) + * @method Grid\Column|Collection bed_id(string $label = null) * @method Grid\Column|Collection building_id(string $label = null) - * @method Grid\Column|Collection floor_id(string $label = null) * @method Grid\Column|Collection dormitory_number(string $label = null) - * @method Grid\Column|Collection bed_id(string $label = null) - * @method Grid\Column|Collection apply_price(string $label = null) - * @method Grid\Column|Collection apply_images(string $label = null) + * @method Grid\Column|Collection dormitory_type(string $label = null) + * @method Grid\Column|Collection floor_id(string $label = null) + * @method Grid\Column|Collection living_area(string $label = null) + * @method Grid\Column|Collection multiple_worlds(string $label = null) * @method Grid\Column|Collection apply_id(string $label = null) + * @method Grid\Column|Collection apply_images(string $label = null) * @method Grid\Column|Collection apply_msg(string $label = null) + * @method Grid\Column|Collection apply_price(string $label = null) * @method Grid\Column|Collection fail_msg(string $label = null) * @method Grid\Column|Collection order_id(string $label = null) * @method Grid\Column|Collection supplementary_time(string $label = null) @@ -256,115 +319,148 @@ namespace Dcat\Admin { * @method Grid\Column|Collection bed_number(string $label = null) * @method Grid\Column|Collection building_title(string $label = null) * @method Grid\Column|Collection teacher_id(string $label = null) - * @method Grid\Column|Collection unique_identification(string $label = null) * @method Grid\Column|Collection data(string $label = null) * @method Grid\Column|Collection remark(string $label = null) - * @method Grid\Column|Collection price(string $label = null) + * @method Grid\Column|Collection unique_identification(string $label = null) + * @method Grid\Column|Collection eight(string $label = null) + * @method Grid\Column|Collection eleven(string $label = null) + * @method Grid\Column|Collection fifteen(string $label = null) + * @method Grid\Column|Collection five(string $label = null) + * @method Grid\Column|Collection four(string $label = null) + * @method Grid\Column|Collection fourteen(string $label = null) + * @method Grid\Column|Collection nine(string $label = null) + * @method Grid\Column|Collection one(string $label = null) + * @method Grid\Column|Collection seven(string $label = null) + * @method Grid\Column|Collection six(string $label = null) + * @method Grid\Column|Collection ten(string $label = null) + * @method Grid\Column|Collection thirteen(string $label = null) + * @method Grid\Column|Collection three(string $label = null) + * @method Grid\Column|Collection twelve(string $label = null) + * @method Grid\Column|Collection two(string $label = null) + * @method Grid\Column|Collection discount_amount_id(string $label = null) + * @method Grid\Column|Collection project_identify(string $label = null) + * @method Grid\Column|Collection project_name(string $label = null) + * @method Grid\Column|Collection sort(string $label = null) * @method Grid\Column|Collection images(string $label = null) + * @method Grid\Column|Collection price(string $label = null) * @method Grid\Column|Collection reason(string $label = null) + * @method Grid\Column|Collection type_id(string $label = null) * @method Grid\Column|Collection dormitory(string $label = null) - * @method Grid\Column|Collection uuid(string $label = null) * @method Grid\Column|Collection connection(string $label = null) - * @method Grid\Column|Collection queue(string $label = null) - * @method Grid\Column|Collection payload(string $label = null) * @method Grid\Column|Collection exception(string $label = null) * @method Grid\Column|Collection failed_at(string $label = null) + * @method Grid\Column|Collection payload(string $label = null) + * @method Grid\Column|Collection queue(string $label = null) + * @method Grid\Column|Collection uuid(string $label = null) * @method Grid\Column|Collection floor_title(string $label = null) - * @method Grid\Column|Collection people(string $label = null) + * @method Grid\Column|Collection fylx(string $label = null) + * @method Grid\Column|Collection sfzh(string $label = null) + * @method Grid\Column|Collection total(string $label = null) + * @method Grid\Column|Collection xfje(string $label = null) + * @method Grid\Column|Collection xh(string $label = null) + * @method Grid\Column|Collection xm(string $label = null) + * @method Grid\Column|Collection zsje(string $label = null) * @method Grid\Column|Collection dormitory_type_id(string $label = null) - * @method Grid\Column|Collection sort(string $label = null) - * @method Grid\Column|Collection is_must(string $label = null) - * @method Grid\Column|Collection products_name(string $label = null) - * @method Grid\Column|Collection orders_num(string $label = null) - * @method Grid\Column|Collection amounts_price(string $label = null) - * @method Grid\Column|Collection transaction_id(string $label = null) - * @method Grid\Column|Collection pay_type(string $label = null) - * @method Grid\Column|Collection pay_time(string $label = null) - * @method Grid\Column|Collection is_pay(string $label = null) - * @method Grid\Column|Collection full_amount(string $label = null) + * @method Grid\Column|Collection people(string $label = null) * @method Grid\Column|Collection dormitory_id(string $label = null) + * @method Grid\Column|Collection idcard(string $label = null) * @method Grid\Column|Collection multiple_id(string $label = null) - * @method Grid\Column|Collection payment_id(string $label = null) + * @method Grid\Column|Collection is_must(string $label = null) + * @method Grid\Column|Collection amounts_price(string $label = null) + * @method Grid\Column|Collection dormitory_price(string $label = null) * @method Grid\Column|Collection expire_time(string $label = null) + * @method Grid\Column|Collection full_amount(string $label = null) + * @method Grid\Column|Collection is_find_test(string $label = null) + * @method Grid\Column|Collection is_new_student_order(string $label = null) + * @method Grid\Column|Collection is_pay(string $label = null) + * @method Grid\Column|Collection is_query(string $label = null) + * @method Grid\Column|Collection orders_num(string $label = null) + * @method Grid\Column|Collection pay_time(string $label = null) + * @method Grid\Column|Collection pay_type(string $label = null) * @method Grid\Column|Collection payment_data(string $label = null) + * @method Grid\Column|Collection payment_id(string $label = null) + * @method Grid\Column|Collection products_name(string $label = null) * @method Grid\Column|Collection selected_dormitory_id(string $label = null) * @method Grid\Column|Collection source(string $label = null) * @method Grid\Column|Collection source_orders_num(string $label = null) - * @method Grid\Column|Collection dormitory_price(string $label = null) * @method Grid\Column|Collection source_pay_time(string $label = null) - * @method Grid\Column|Collection is_query(string $label = null) - * @method Grid\Column|Collection is_find_test(string $label = null) + * @method Grid\Column|Collection transaction_id(string $label = null) * @method Grid\Column|Collection email(string $label = null) * @method Grid\Column|Collection token(string $label = null) + * @method Grid\Column|Collection amount(string $label = null) + * @method Grid\Column|Collection details(string $label = null) * @method Grid\Column|Collection project_code(string $label = null) - * @method Grid\Column|Collection project_name(string $label = null) * @method Grid\Column|Collection standard(string $label = null) - * @method Grid\Column|Collection amount(string $label = null) - * @method Grid\Column|Collection tokenable_type(string $label = null) - * @method Grid\Column|Collection tokenable_id(string $label = null) * @method Grid\Column|Collection abilities(string $label = null) * @method Grid\Column|Collection last_used_at(string $label = null) - * @method Grid\Column|Collection idcard(string $label = null) + * @method Grid\Column|Collection tokenable_id(string $label = null) + * @method Grid\Column|Collection tokenable_type(string $label = null) + * @method Grid\Column|Collection available_amount(string $label = null) + * @method Grid\Column|Collection discount_amount(string $label = null) + * @method Grid\Column|Collection preferential_type_id(string $label = null) + * @method Grid\Column|Collection admin_id(string $label = null) + * @method Grid\Column|Collection is_create_order(string $label = null) + * @method Grid\Column|Collection level(string $label = null) * @method Grid\Column|Collection pay_details(string $label = null) * @method Grid\Column|Collection push_data(string $label = null) - * @method Grid\Column|Collection level(string $label = null) - * @method Grid\Column|Collection is_create_order(string $label = null) - * @method Grid\Column|Collection admin_id(string $label = null) * @method Grid\Column|Collection this_orders_num(string $label = null) - * @method Grid\Column|Collection this_transaction_id(string $label = null) * @method Grid\Column|Collection this_pay_time(string $label = null) + * @method Grid\Column|Collection this_transaction_id(string $label = null) * @method Grid\Column|Collection bed_info(string $label = null) - * @method Grid\Column|Collection submit_time(string $label = null) - * @method Grid\Column|Collection total_fee(string $label = null) * @method Grid\Column|Collection code(string $label = null) + * @method Grid\Column|Collection push_info(string $label = null) * @method Grid\Column|Collection response(string $label = null) + * @method Grid\Column|Collection submit_time(string $label = null) + * @method Grid\Column|Collection total_fee(string $label = null) * @method Grid\Column|Collection orders_info(string $label = null) + * @method Grid\Column|Collection loan_info(string $label = null) + * @method Grid\Column|Collection student_info(string $label = null) + * @method Grid\Column|Collection all_price_msg(string $label = null) + * @method Grid\Column|Collection bed_name(string $label = null) * @method Grid\Column|Collection college_name(string $label = null) + * @method Grid\Column|Collection delay_price(string $label = null) * @method Grid\Column|Collection major_name(string $label = null) - * @method Grid\Column|Collection bed_name(string $label = null) * @method Grid\Column|Collection pay(string $label = null) - * @method Grid\Column|Collection delay_price(string $label = null) - * @method Grid\Column|Collection all_price_msg(string $label = null) * @method Grid\Column|Collection url(string $label = null) - * @method Grid\Column|Collection start_time(string $label = null) * @method Grid\Column|Collection end_time(string $label = null) - * @method Grid\Column|Collection security_name(string $label = null) - * @method Grid\Column|Collection screct_key(string $label = null) + * @method Grid\Column|Collection start_time(string $label = null) * @method Grid\Column|Collection public_key(string $label = null) + * @method Grid\Column|Collection screct_key(string $label = null) + * @method Grid\Column|Collection security_name(string $label = null) * @method Grid\Column|Collection allocation_dormitory_id(string $label = null) * @method Grid\Column|Collection allocation_dormitory_name(string $label = null) - * @method Grid\Column|Collection titleKey(string $label = null) - * @method Grid\Column|Collection config_msg(string $label = null) * @method Grid\Column|Collection config(string $label = null) + * @method Grid\Column|Collection config_msg(string $label = null) + * @method Grid\Column|Collection titleKey(string $label = null) * @method Grid\Column|Collection sms_id(string $label = null) - * @method Grid\Column|Collection speciality_name(string $label = null) * @method Grid\Column|Collection secondary_college_id(string $label = null) - * @method Grid\Column|Collection uid(string $label = null) + * @method Grid\Column|Collection speciality_name(string $label = null) * @method Grid\Column|Collection login_ip(string $label = null) + * @method Grid\Column|Collection uid(string $label = null) * @method Grid\Column|Collection belongto(string $label = null) * @method Grid\Column|Collection is_authority(string $label = null) * @method Grid\Column|Collection open_number_id(string $label = null) - * @method Grid\Column|Collection is_required(string $label = null) * @method Grid\Column|Collection identify(string $label = null) - * @method Grid\Column|Collection province_city_area(string $label = null) + * @method Grid\Column|Collection is_required(string $label = null) * @method Grid\Column|Collection address(string $label = null) - * @method Grid\Column|Collection postal_code(string $label = null) * @method Grid\Column|Collection native(string $label = null) + * @method Grid\Column|Collection postal_code(string $label = null) + * @method Grid\Column|Collection province_city_area(string $label = null) * @method Grid\Column|Collection email_verified_at(string $label = null) - * @method Grid\Column|Collection unique_number_bcrypt(string $label = null) - * @method Grid\Column|Collection last_time(string $label = null) * @method Grid\Column|Collection last_ip(string $label = null) + * @method Grid\Column|Collection last_time(string $label = null) * @method Grid\Column|Collection openId(string $label = null) + * @method Grid\Column|Collection unique_number_bcrypt(string $label = null) * @method Grid\Column|Collection app_id(string $label = null) * @method Grid\Column|Collection app_secret(string $label = null) + * @method Grid\Column|Collection cert_pem(string $label = null) * @method Grid\Column|Collection desc(string $label = null) - * @method Grid\Column|Collection mch_id(string $label = null) + * @method Grid\Column|Collection is_delete(string $label = null) * @method Grid\Column|Collection key(string $label = null) - * @method Grid\Column|Collection cert_pem(string $label = null) * @method Grid\Column|Collection key_pem(string $label = null) - * @method Grid\Column|Collection is_delete(string $label = null) - * @method Grid\Column|Collection miniapp_id(string $label = null) + * @method Grid\Column|Collection mch_id(string $label = null) * @method Grid\Column|Collection appid(string $label = null) + * @method Grid\Column|Collection miniapp_id(string $label = null) * @method Grid\Column|Collection notify_url(string $label = null) */ class Grid {} @@ -372,65 +468,80 @@ namespace Dcat\Admin { class MiniGrid extends Grid {} /** + * @property Show\Field|Collection created_at + * @property Show\Field|Collection detail * @property Show\Field|Collection id * @property Show\Field|Collection name * @property Show\Field|Collection type - * @property Show\Field|Collection version - * @property Show\Field|Collection detail - * @property Show\Field|Collection created_at * @property Show\Field|Collection updated_at + * @property Show\Field|Collection version * @property Show\Field|Collection is_enabled - * @property Show\Field|Collection parent_id - * @property Show\Field|Collection order + * @property Show\Field|Collection extension * @property Show\Field|Collection icon + * @property Show\Field|Collection order + * @property Show\Field|Collection parent_id * @property Show\Field|Collection uri - * @property Show\Field|Collection extension - * @property Show\Field|Collection permission - * @property Show\Field|Collection user_id - * @property Show\Field|Collection path - * @property Show\Field|Collection method - * @property Show\Field|Collection ip * @property Show\Field|Collection input - * @property Show\Field|Collection permission_id + * @property Show\Field|Collection ip + * @property Show\Field|Collection method + * @property Show\Field|Collection path + * @property Show\Field|Collection user_id * @property Show\Field|Collection menu_id - * @property Show\Field|Collection slug + * @property Show\Field|Collection permission_id * @property Show\Field|Collection http_method * @property Show\Field|Collection http_path + * @property Show\Field|Collection slug * @property Show\Field|Collection role_id * @property Show\Field|Collection value - * @property Show\Field|Collection username - * @property Show\Field|Collection password * @property Show\Field|Collection avatar + * @property Show\Field|Collection password * @property Show\Field|Collection remember_token - * @property Show\Field|Collection unique_number - * @property Show\Field|Collection idCard + * @property Show\Field|Collection username * @property Show\Field|Collection admission_code * @property Show\Field|Collection admission_college * @property Show\Field|Collection admitted_major - * @property Show\Field|Collection status - * @property Show\Field|Collection refuse_msg * @property Show\Field|Collection create_time + * @property Show\Field|Collection idCard + * @property Show\Field|Collection refuse_msg + * @property Show\Field|Collection status + * @property Show\Field|Collection unique_number * @property Show\Field|Collection update_time - * @property Show\Field|Collection step_id * @property Show\Field|Collection content * @property Show\Field|Collection msg + * @property Show\Field|Collection step_id + * @property Show\Field|Collection annual_session + * @property Show\Field|Collection bjdm + * @property Show\Field|Collection day_student + * @property Show\Field|Collection is_equivalent + * @property Show\Field|Collection is_five_year + * @property Show\Field|Collection is_four_type + * @property Show\Field|Collection is_new_student + * @property Show\Field|Collection is_push + * @property Show\Field|Collection is_register + * @property Show\Field|Collection is_test * @property Show\Field|Collection mobile + * @property Show\Field|Collection nj + * @property Show\Field|Collection old_student_bed_info + * @property Show\Field|Collection province * @property Show\Field|Collection sex - * @property Show\Field|Collection is_register + * @property Show\Field|Collection sfzx * @property Show\Field|Collection speciality_id - * @property Show\Field|Collection annual_session - * @property Show\Field|Collection is_test - * @property Show\Field|Collection dormitory_type - * @property Show\Field|Collection multiple_worlds - * @property Show\Field|Collection living_area + * @property Show\Field|Collection xjztdm + * @property Show\Field|Collection xslbdm + * @property Show\Field|Collection xydm + * @property Show\Field|Collection xz + * @property Show\Field|Collection zydm + * @property Show\Field|Collection bed_id * @property Show\Field|Collection building_id - * @property Show\Field|Collection floor_id * @property Show\Field|Collection dormitory_number - * @property Show\Field|Collection bed_id - * @property Show\Field|Collection apply_price - * @property Show\Field|Collection apply_images + * @property Show\Field|Collection dormitory_type + * @property Show\Field|Collection floor_id + * @property Show\Field|Collection living_area + * @property Show\Field|Collection multiple_worlds * @property Show\Field|Collection apply_id + * @property Show\Field|Collection apply_images * @property Show\Field|Collection apply_msg + * @property Show\Field|Collection apply_price * @property Show\Field|Collection fail_msg * @property Show\Field|Collection order_id * @property Show\Field|Collection supplementary_time @@ -439,176 +550,224 @@ namespace Dcat\Admin { * @property Show\Field|Collection bed_number * @property Show\Field|Collection building_title * @property Show\Field|Collection teacher_id - * @property Show\Field|Collection unique_identification * @property Show\Field|Collection data * @property Show\Field|Collection remark - * @property Show\Field|Collection price + * @property Show\Field|Collection unique_identification + * @property Show\Field|Collection eight + * @property Show\Field|Collection eleven + * @property Show\Field|Collection fifteen + * @property Show\Field|Collection five + * @property Show\Field|Collection four + * @property Show\Field|Collection fourteen + * @property Show\Field|Collection nine + * @property Show\Field|Collection one + * @property Show\Field|Collection seven + * @property Show\Field|Collection six + * @property Show\Field|Collection ten + * @property Show\Field|Collection thirteen + * @property Show\Field|Collection three + * @property Show\Field|Collection twelve + * @property Show\Field|Collection two + * @property Show\Field|Collection discount_amount_id + * @property Show\Field|Collection project_identify + * @property Show\Field|Collection project_name + * @property Show\Field|Collection sort * @property Show\Field|Collection images + * @property Show\Field|Collection price * @property Show\Field|Collection reason + * @property Show\Field|Collection type_id * @property Show\Field|Collection dormitory - * @property Show\Field|Collection uuid * @property Show\Field|Collection connection - * @property Show\Field|Collection queue - * @property Show\Field|Collection payload * @property Show\Field|Collection exception * @property Show\Field|Collection failed_at + * @property Show\Field|Collection payload + * @property Show\Field|Collection queue + * @property Show\Field|Collection uuid * @property Show\Field|Collection floor_title - * @property Show\Field|Collection people + * @property Show\Field|Collection fylx + * @property Show\Field|Collection sfzh + * @property Show\Field|Collection total + * @property Show\Field|Collection xfje + * @property Show\Field|Collection xh + * @property Show\Field|Collection xm + * @property Show\Field|Collection zsje * @property Show\Field|Collection dormitory_type_id - * @property Show\Field|Collection sort - * @property Show\Field|Collection is_must - * @property Show\Field|Collection products_name - * @property Show\Field|Collection orders_num - * @property Show\Field|Collection amounts_price - * @property Show\Field|Collection transaction_id - * @property Show\Field|Collection pay_type - * @property Show\Field|Collection pay_time - * @property Show\Field|Collection is_pay - * @property Show\Field|Collection full_amount + * @property Show\Field|Collection people * @property Show\Field|Collection dormitory_id + * @property Show\Field|Collection idcard * @property Show\Field|Collection multiple_id - * @property Show\Field|Collection payment_id + * @property Show\Field|Collection is_must + * @property Show\Field|Collection amounts_price + * @property Show\Field|Collection dormitory_price * @property Show\Field|Collection expire_time + * @property Show\Field|Collection full_amount + * @property Show\Field|Collection is_find_test + * @property Show\Field|Collection is_new_student_order + * @property Show\Field|Collection is_pay + * @property Show\Field|Collection is_query + * @property Show\Field|Collection orders_num + * @property Show\Field|Collection pay_time + * @property Show\Field|Collection pay_type * @property Show\Field|Collection payment_data + * @property Show\Field|Collection payment_id + * @property Show\Field|Collection products_name * @property Show\Field|Collection selected_dormitory_id * @property Show\Field|Collection source * @property Show\Field|Collection source_orders_num - * @property Show\Field|Collection dormitory_price * @property Show\Field|Collection source_pay_time - * @property Show\Field|Collection is_query - * @property Show\Field|Collection is_find_test + * @property Show\Field|Collection transaction_id * @property Show\Field|Collection email * @property Show\Field|Collection token + * @property Show\Field|Collection amount + * @property Show\Field|Collection details * @property Show\Field|Collection project_code - * @property Show\Field|Collection project_name * @property Show\Field|Collection standard - * @property Show\Field|Collection amount - * @property Show\Field|Collection tokenable_type - * @property Show\Field|Collection tokenable_id * @property Show\Field|Collection abilities * @property Show\Field|Collection last_used_at - * @property Show\Field|Collection idcard + * @property Show\Field|Collection tokenable_id + * @property Show\Field|Collection tokenable_type + * @property Show\Field|Collection available_amount + * @property Show\Field|Collection discount_amount + * @property Show\Field|Collection preferential_type_id + * @property Show\Field|Collection admin_id + * @property Show\Field|Collection is_create_order + * @property Show\Field|Collection level * @property Show\Field|Collection pay_details * @property Show\Field|Collection push_data - * @property Show\Field|Collection level - * @property Show\Field|Collection is_create_order - * @property Show\Field|Collection admin_id * @property Show\Field|Collection this_orders_num - * @property Show\Field|Collection this_transaction_id * @property Show\Field|Collection this_pay_time + * @property Show\Field|Collection this_transaction_id * @property Show\Field|Collection bed_info - * @property Show\Field|Collection submit_time - * @property Show\Field|Collection total_fee * @property Show\Field|Collection code + * @property Show\Field|Collection push_info * @property Show\Field|Collection response + * @property Show\Field|Collection submit_time + * @property Show\Field|Collection total_fee * @property Show\Field|Collection orders_info + * @property Show\Field|Collection loan_info + * @property Show\Field|Collection student_info + * @property Show\Field|Collection all_price_msg + * @property Show\Field|Collection bed_name * @property Show\Field|Collection college_name + * @property Show\Field|Collection delay_price * @property Show\Field|Collection major_name - * @property Show\Field|Collection bed_name * @property Show\Field|Collection pay - * @property Show\Field|Collection delay_price - * @property Show\Field|Collection all_price_msg * @property Show\Field|Collection url - * @property Show\Field|Collection start_time * @property Show\Field|Collection end_time - * @property Show\Field|Collection security_name - * @property Show\Field|Collection screct_key + * @property Show\Field|Collection start_time * @property Show\Field|Collection public_key + * @property Show\Field|Collection screct_key + * @property Show\Field|Collection security_name * @property Show\Field|Collection allocation_dormitory_id * @property Show\Field|Collection allocation_dormitory_name - * @property Show\Field|Collection titleKey - * @property Show\Field|Collection config_msg * @property Show\Field|Collection config + * @property Show\Field|Collection config_msg + * @property Show\Field|Collection titleKey * @property Show\Field|Collection sms_id - * @property Show\Field|Collection speciality_name * @property Show\Field|Collection secondary_college_id - * @property Show\Field|Collection uid + * @property Show\Field|Collection speciality_name * @property Show\Field|Collection login_ip + * @property Show\Field|Collection uid * @property Show\Field|Collection belongto * @property Show\Field|Collection is_authority * @property Show\Field|Collection open_number_id - * @property Show\Field|Collection is_required * @property Show\Field|Collection identify - * @property Show\Field|Collection province_city_area + * @property Show\Field|Collection is_required * @property Show\Field|Collection address - * @property Show\Field|Collection postal_code * @property Show\Field|Collection native + * @property Show\Field|Collection postal_code + * @property Show\Field|Collection province_city_area * @property Show\Field|Collection email_verified_at - * @property Show\Field|Collection unique_number_bcrypt - * @property Show\Field|Collection last_time * @property Show\Field|Collection last_ip + * @property Show\Field|Collection last_time * @property Show\Field|Collection openId + * @property Show\Field|Collection unique_number_bcrypt * @property Show\Field|Collection app_id * @property Show\Field|Collection app_secret + * @property Show\Field|Collection cert_pem * @property Show\Field|Collection desc - * @property Show\Field|Collection mch_id + * @property Show\Field|Collection is_delete * @property Show\Field|Collection key - * @property Show\Field|Collection cert_pem * @property Show\Field|Collection key_pem - * @property Show\Field|Collection is_delete - * @property Show\Field|Collection miniapp_id + * @property Show\Field|Collection mch_id * @property Show\Field|Collection appid + * @property Show\Field|Collection miniapp_id * @property Show\Field|Collection notify_url * + * @method Show\Field|Collection created_at(string $label = null) + * @method Show\Field|Collection detail(string $label = null) * @method Show\Field|Collection id(string $label = null) * @method Show\Field|Collection name(string $label = null) * @method Show\Field|Collection type(string $label = null) - * @method Show\Field|Collection version(string $label = null) - * @method Show\Field|Collection detail(string $label = null) - * @method Show\Field|Collection created_at(string $label = null) * @method Show\Field|Collection updated_at(string $label = null) + * @method Show\Field|Collection version(string $label = null) * @method Show\Field|Collection is_enabled(string $label = null) - * @method Show\Field|Collection parent_id(string $label = null) - * @method Show\Field|Collection order(string $label = null) + * @method Show\Field|Collection extension(string $label = null) * @method Show\Field|Collection icon(string $label = null) + * @method Show\Field|Collection order(string $label = null) + * @method Show\Field|Collection parent_id(string $label = null) * @method Show\Field|Collection uri(string $label = null) - * @method Show\Field|Collection extension(string $label = null) - * @method Show\Field|Collection permission(string $label = null) - * @method Show\Field|Collection user_id(string $label = null) - * @method Show\Field|Collection path(string $label = null) - * @method Show\Field|Collection method(string $label = null) - * @method Show\Field|Collection ip(string $label = null) * @method Show\Field|Collection input(string $label = null) - * @method Show\Field|Collection permission_id(string $label = null) + * @method Show\Field|Collection ip(string $label = null) + * @method Show\Field|Collection method(string $label = null) + * @method Show\Field|Collection path(string $label = null) + * @method Show\Field|Collection user_id(string $label = null) * @method Show\Field|Collection menu_id(string $label = null) - * @method Show\Field|Collection slug(string $label = null) + * @method Show\Field|Collection permission_id(string $label = null) * @method Show\Field|Collection http_method(string $label = null) * @method Show\Field|Collection http_path(string $label = null) + * @method Show\Field|Collection slug(string $label = null) * @method Show\Field|Collection role_id(string $label = null) * @method Show\Field|Collection value(string $label = null) - * @method Show\Field|Collection username(string $label = null) - * @method Show\Field|Collection password(string $label = null) * @method Show\Field|Collection avatar(string $label = null) + * @method Show\Field|Collection password(string $label = null) * @method Show\Field|Collection remember_token(string $label = null) - * @method Show\Field|Collection unique_number(string $label = null) - * @method Show\Field|Collection idCard(string $label = null) + * @method Show\Field|Collection username(string $label = null) * @method Show\Field|Collection admission_code(string $label = null) * @method Show\Field|Collection admission_college(string $label = null) * @method Show\Field|Collection admitted_major(string $label = null) - * @method Show\Field|Collection status(string $label = null) - * @method Show\Field|Collection refuse_msg(string $label = null) * @method Show\Field|Collection create_time(string $label = null) + * @method Show\Field|Collection idCard(string $label = null) + * @method Show\Field|Collection refuse_msg(string $label = null) + * @method Show\Field|Collection status(string $label = null) + * @method Show\Field|Collection unique_number(string $label = null) * @method Show\Field|Collection update_time(string $label = null) - * @method Show\Field|Collection step_id(string $label = null) * @method Show\Field|Collection content(string $label = null) * @method Show\Field|Collection msg(string $label = null) + * @method Show\Field|Collection step_id(string $label = null) + * @method Show\Field|Collection annual_session(string $label = null) + * @method Show\Field|Collection bjdm(string $label = null) + * @method Show\Field|Collection day_student(string $label = null) + * @method Show\Field|Collection is_equivalent(string $label = null) + * @method Show\Field|Collection is_five_year(string $label = null) + * @method Show\Field|Collection is_four_type(string $label = null) + * @method Show\Field|Collection is_new_student(string $label = null) + * @method Show\Field|Collection is_push(string $label = null) + * @method Show\Field|Collection is_register(string $label = null) + * @method Show\Field|Collection is_test(string $label = null) * @method Show\Field|Collection mobile(string $label = null) + * @method Show\Field|Collection nj(string $label = null) + * @method Show\Field|Collection old_student_bed_info(string $label = null) + * @method Show\Field|Collection province(string $label = null) * @method Show\Field|Collection sex(string $label = null) - * @method Show\Field|Collection is_register(string $label = null) + * @method Show\Field|Collection sfzx(string $label = null) * @method Show\Field|Collection speciality_id(string $label = null) - * @method Show\Field|Collection annual_session(string $label = null) - * @method Show\Field|Collection is_test(string $label = null) - * @method Show\Field|Collection dormitory_type(string $label = null) - * @method Show\Field|Collection multiple_worlds(string $label = null) - * @method Show\Field|Collection living_area(string $label = null) + * @method Show\Field|Collection xjztdm(string $label = null) + * @method Show\Field|Collection xslbdm(string $label = null) + * @method Show\Field|Collection xydm(string $label = null) + * @method Show\Field|Collection xz(string $label = null) + * @method Show\Field|Collection zydm(string $label = null) + * @method Show\Field|Collection bed_id(string $label = null) * @method Show\Field|Collection building_id(string $label = null) - * @method Show\Field|Collection floor_id(string $label = null) * @method Show\Field|Collection dormitory_number(string $label = null) - * @method Show\Field|Collection bed_id(string $label = null) - * @method Show\Field|Collection apply_price(string $label = null) - * @method Show\Field|Collection apply_images(string $label = null) + * @method Show\Field|Collection dormitory_type(string $label = null) + * @method Show\Field|Collection floor_id(string $label = null) + * @method Show\Field|Collection living_area(string $label = null) + * @method Show\Field|Collection multiple_worlds(string $label = null) * @method Show\Field|Collection apply_id(string $label = null) + * @method Show\Field|Collection apply_images(string $label = null) * @method Show\Field|Collection apply_msg(string $label = null) + * @method Show\Field|Collection apply_price(string $label = null) * @method Show\Field|Collection fail_msg(string $label = null) * @method Show\Field|Collection order_id(string $label = null) * @method Show\Field|Collection supplementary_time(string $label = null) @@ -617,115 +776,148 @@ namespace Dcat\Admin { * @method Show\Field|Collection bed_number(string $label = null) * @method Show\Field|Collection building_title(string $label = null) * @method Show\Field|Collection teacher_id(string $label = null) - * @method Show\Field|Collection unique_identification(string $label = null) * @method Show\Field|Collection data(string $label = null) * @method Show\Field|Collection remark(string $label = null) - * @method Show\Field|Collection price(string $label = null) + * @method Show\Field|Collection unique_identification(string $label = null) + * @method Show\Field|Collection eight(string $label = null) + * @method Show\Field|Collection eleven(string $label = null) + * @method Show\Field|Collection fifteen(string $label = null) + * @method Show\Field|Collection five(string $label = null) + * @method Show\Field|Collection four(string $label = null) + * @method Show\Field|Collection fourteen(string $label = null) + * @method Show\Field|Collection nine(string $label = null) + * @method Show\Field|Collection one(string $label = null) + * @method Show\Field|Collection seven(string $label = null) + * @method Show\Field|Collection six(string $label = null) + * @method Show\Field|Collection ten(string $label = null) + * @method Show\Field|Collection thirteen(string $label = null) + * @method Show\Field|Collection three(string $label = null) + * @method Show\Field|Collection twelve(string $label = null) + * @method Show\Field|Collection two(string $label = null) + * @method Show\Field|Collection discount_amount_id(string $label = null) + * @method Show\Field|Collection project_identify(string $label = null) + * @method Show\Field|Collection project_name(string $label = null) + * @method Show\Field|Collection sort(string $label = null) * @method Show\Field|Collection images(string $label = null) + * @method Show\Field|Collection price(string $label = null) * @method Show\Field|Collection reason(string $label = null) + * @method Show\Field|Collection type_id(string $label = null) * @method Show\Field|Collection dormitory(string $label = null) - * @method Show\Field|Collection uuid(string $label = null) * @method Show\Field|Collection connection(string $label = null) - * @method Show\Field|Collection queue(string $label = null) - * @method Show\Field|Collection payload(string $label = null) * @method Show\Field|Collection exception(string $label = null) * @method Show\Field|Collection failed_at(string $label = null) + * @method Show\Field|Collection payload(string $label = null) + * @method Show\Field|Collection queue(string $label = null) + * @method Show\Field|Collection uuid(string $label = null) * @method Show\Field|Collection floor_title(string $label = null) - * @method Show\Field|Collection people(string $label = null) + * @method Show\Field|Collection fylx(string $label = null) + * @method Show\Field|Collection sfzh(string $label = null) + * @method Show\Field|Collection total(string $label = null) + * @method Show\Field|Collection xfje(string $label = null) + * @method Show\Field|Collection xh(string $label = null) + * @method Show\Field|Collection xm(string $label = null) + * @method Show\Field|Collection zsje(string $label = null) * @method Show\Field|Collection dormitory_type_id(string $label = null) - * @method Show\Field|Collection sort(string $label = null) - * @method Show\Field|Collection is_must(string $label = null) - * @method Show\Field|Collection products_name(string $label = null) - * @method Show\Field|Collection orders_num(string $label = null) - * @method Show\Field|Collection amounts_price(string $label = null) - * @method Show\Field|Collection transaction_id(string $label = null) - * @method Show\Field|Collection pay_type(string $label = null) - * @method Show\Field|Collection pay_time(string $label = null) - * @method Show\Field|Collection is_pay(string $label = null) - * @method Show\Field|Collection full_amount(string $label = null) + * @method Show\Field|Collection people(string $label = null) * @method Show\Field|Collection dormitory_id(string $label = null) + * @method Show\Field|Collection idcard(string $label = null) * @method Show\Field|Collection multiple_id(string $label = null) - * @method Show\Field|Collection payment_id(string $label = null) + * @method Show\Field|Collection is_must(string $label = null) + * @method Show\Field|Collection amounts_price(string $label = null) + * @method Show\Field|Collection dormitory_price(string $label = null) * @method Show\Field|Collection expire_time(string $label = null) + * @method Show\Field|Collection full_amount(string $label = null) + * @method Show\Field|Collection is_find_test(string $label = null) + * @method Show\Field|Collection is_new_student_order(string $label = null) + * @method Show\Field|Collection is_pay(string $label = null) + * @method Show\Field|Collection is_query(string $label = null) + * @method Show\Field|Collection orders_num(string $label = null) + * @method Show\Field|Collection pay_time(string $label = null) + * @method Show\Field|Collection pay_type(string $label = null) * @method Show\Field|Collection payment_data(string $label = null) + * @method Show\Field|Collection payment_id(string $label = null) + * @method Show\Field|Collection products_name(string $label = null) * @method Show\Field|Collection selected_dormitory_id(string $label = null) * @method Show\Field|Collection source(string $label = null) * @method Show\Field|Collection source_orders_num(string $label = null) - * @method Show\Field|Collection dormitory_price(string $label = null) * @method Show\Field|Collection source_pay_time(string $label = null) - * @method Show\Field|Collection is_query(string $label = null) - * @method Show\Field|Collection is_find_test(string $label = null) + * @method Show\Field|Collection transaction_id(string $label = null) * @method Show\Field|Collection email(string $label = null) * @method Show\Field|Collection token(string $label = null) + * @method Show\Field|Collection amount(string $label = null) + * @method Show\Field|Collection details(string $label = null) * @method Show\Field|Collection project_code(string $label = null) - * @method Show\Field|Collection project_name(string $label = null) * @method Show\Field|Collection standard(string $label = null) - * @method Show\Field|Collection amount(string $label = null) - * @method Show\Field|Collection tokenable_type(string $label = null) - * @method Show\Field|Collection tokenable_id(string $label = null) * @method Show\Field|Collection abilities(string $label = null) * @method Show\Field|Collection last_used_at(string $label = null) - * @method Show\Field|Collection idcard(string $label = null) + * @method Show\Field|Collection tokenable_id(string $label = null) + * @method Show\Field|Collection tokenable_type(string $label = null) + * @method Show\Field|Collection available_amount(string $label = null) + * @method Show\Field|Collection discount_amount(string $label = null) + * @method Show\Field|Collection preferential_type_id(string $label = null) + * @method Show\Field|Collection admin_id(string $label = null) + * @method Show\Field|Collection is_create_order(string $label = null) + * @method Show\Field|Collection level(string $label = null) * @method Show\Field|Collection pay_details(string $label = null) * @method Show\Field|Collection push_data(string $label = null) - * @method Show\Field|Collection level(string $label = null) - * @method Show\Field|Collection is_create_order(string $label = null) - * @method Show\Field|Collection admin_id(string $label = null) * @method Show\Field|Collection this_orders_num(string $label = null) - * @method Show\Field|Collection this_transaction_id(string $label = null) * @method Show\Field|Collection this_pay_time(string $label = null) + * @method Show\Field|Collection this_transaction_id(string $label = null) * @method Show\Field|Collection bed_info(string $label = null) - * @method Show\Field|Collection submit_time(string $label = null) - * @method Show\Field|Collection total_fee(string $label = null) * @method Show\Field|Collection code(string $label = null) + * @method Show\Field|Collection push_info(string $label = null) * @method Show\Field|Collection response(string $label = null) + * @method Show\Field|Collection submit_time(string $label = null) + * @method Show\Field|Collection total_fee(string $label = null) * @method Show\Field|Collection orders_info(string $label = null) + * @method Show\Field|Collection loan_info(string $label = null) + * @method Show\Field|Collection student_info(string $label = null) + * @method Show\Field|Collection all_price_msg(string $label = null) + * @method Show\Field|Collection bed_name(string $label = null) * @method Show\Field|Collection college_name(string $label = null) + * @method Show\Field|Collection delay_price(string $label = null) * @method Show\Field|Collection major_name(string $label = null) - * @method Show\Field|Collection bed_name(string $label = null) * @method Show\Field|Collection pay(string $label = null) - * @method Show\Field|Collection delay_price(string $label = null) - * @method Show\Field|Collection all_price_msg(string $label = null) * @method Show\Field|Collection url(string $label = null) - * @method Show\Field|Collection start_time(string $label = null) * @method Show\Field|Collection end_time(string $label = null) - * @method Show\Field|Collection security_name(string $label = null) - * @method Show\Field|Collection screct_key(string $label = null) + * @method Show\Field|Collection start_time(string $label = null) * @method Show\Field|Collection public_key(string $label = null) + * @method Show\Field|Collection screct_key(string $label = null) + * @method Show\Field|Collection security_name(string $label = null) * @method Show\Field|Collection allocation_dormitory_id(string $label = null) * @method Show\Field|Collection allocation_dormitory_name(string $label = null) - * @method Show\Field|Collection titleKey(string $label = null) - * @method Show\Field|Collection config_msg(string $label = null) * @method Show\Field|Collection config(string $label = null) + * @method Show\Field|Collection config_msg(string $label = null) + * @method Show\Field|Collection titleKey(string $label = null) * @method Show\Field|Collection sms_id(string $label = null) - * @method Show\Field|Collection speciality_name(string $label = null) * @method Show\Field|Collection secondary_college_id(string $label = null) - * @method Show\Field|Collection uid(string $label = null) + * @method Show\Field|Collection speciality_name(string $label = null) * @method Show\Field|Collection login_ip(string $label = null) + * @method Show\Field|Collection uid(string $label = null) * @method Show\Field|Collection belongto(string $label = null) * @method Show\Field|Collection is_authority(string $label = null) * @method Show\Field|Collection open_number_id(string $label = null) - * @method Show\Field|Collection is_required(string $label = null) * @method Show\Field|Collection identify(string $label = null) - * @method Show\Field|Collection province_city_area(string $label = null) + * @method Show\Field|Collection is_required(string $label = null) * @method Show\Field|Collection address(string $label = null) - * @method Show\Field|Collection postal_code(string $label = null) * @method Show\Field|Collection native(string $label = null) + * @method Show\Field|Collection postal_code(string $label = null) + * @method Show\Field|Collection province_city_area(string $label = null) * @method Show\Field|Collection email_verified_at(string $label = null) - * @method Show\Field|Collection unique_number_bcrypt(string $label = null) - * @method Show\Field|Collection last_time(string $label = null) * @method Show\Field|Collection last_ip(string $label = null) + * @method Show\Field|Collection last_time(string $label = null) * @method Show\Field|Collection openId(string $label = null) + * @method Show\Field|Collection unique_number_bcrypt(string $label = null) * @method Show\Field|Collection app_id(string $label = null) * @method Show\Field|Collection app_secret(string $label = null) + * @method Show\Field|Collection cert_pem(string $label = null) * @method Show\Field|Collection desc(string $label = null) - * @method Show\Field|Collection mch_id(string $label = null) + * @method Show\Field|Collection is_delete(string $label = null) * @method Show\Field|Collection key(string $label = null) - * @method Show\Field|Collection cert_pem(string $label = null) * @method Show\Field|Collection key_pem(string $label = null) - * @method Show\Field|Collection is_delete(string $label = null) - * @method Show\Field|Collection miniapp_id(string $label = null) + * @method Show\Field|Collection mch_id(string $label = null) * @method Show\Field|Collection appid(string $label = null) + * @method Show\Field|Collection miniapp_id(string $label = null) * @method Show\Field|Collection notify_url(string $label = null) */ class Show {} diff --git a/resources/lang/zh_CN/admission-new-student.php b/resources/lang/zh_CN/admission-new-student.php index aa3b0ce..ea0d01f 100644 --- a/resources/lang/zh_CN/admission-new-student.php +++ b/resources/lang/zh_CN/admission-new-student.php @@ -19,7 +19,11 @@ return [ 'speciality_id' => '入库专业', 'secondary_college_id' => '入库学院', 'is_test' => '测试账号', - 'resuming_school' => '复学类型', + 'is_new_student' => '学生身份', + 'day_student' => '是否为走读生', + 'annual_session' => '学年', + 'student_info' => '详细信息', + 'is_push' => '是否推送', ], 'options' => [ ], diff --git a/resources/lang/zh_CN/loan-students-list.php b/resources/lang/zh_CN/loan-students-list.php new file mode 100644 index 0000000..1740ebe --- /dev/null +++ b/resources/lang/zh_CN/loan-students-list.php @@ -0,0 +1,23 @@ + [ + 'LoanStudentsList' => '贷款名单', + 'loan-students-list' => '贷款名单', + ], + 'fields' => [ + 'sfzh' => '身份证号', + 'xh' => '学号', + 'xm' => '姓名', + 'annual_session' => '年份', + 'fylx' => '费用类型', + 'total' => '贷款总额', + 'xfje' => '抵扣学费金额', + 'zsje' => '抵扣住宿费金额', + 'is_push' => '是否已推送', + 'create_time' => '创建时间', + 'update_time' => '修改时间', + 'is_five_year' => '是否为五年制一贯制', + ], + 'options' => [ + ], +]; diff --git a/resources/lang/zh_CN/order.php b/resources/lang/zh_CN/order.php index e631362..046e374 100644 --- a/resources/lang/zh_CN/order.php +++ b/resources/lang/zh_CN/order.php @@ -1,4 +1,4 @@ - [ 'Order' => '订单列表', @@ -13,16 +13,21 @@ return [ 'transaction_id' => '流水单号', 'pay_type' => '支付方式', 'pay_time' => '支付时间', - 'create_time' => 'create_time', - 'update_time' => 'update_time', + 'create_time' => '新增时间', + 'update_time' => '修改时间', 'status' => '状态', - 'annual_session' => '年届', + 'annual_session' => '年份', 'payment_data' => '缴纳项目', 'source' => '订单来源', 'source_orders_num' => '推送订单号', 'dormitory_price' => '宿舍费用', 'source_pay_time' => '推送支付时间', 'msg' => '订单备注', + 'idcard' => '身份证', + 'mobile' => '手机', + 'speciality_id' => '专业', + 'user_name' => '姓名', + 'is_new_student_order' => '学生身份', ], 'options' => [ ], diff --git a/resources/lang/zh_CN/users-member.php b/resources/lang/zh_CN/users-member.php index 9bce02a..5acc32b 100644 --- a/resources/lang/zh_CN/users-member.php +++ b/resources/lang/zh_CN/users-member.php @@ -19,6 +19,7 @@ return [ 'is_test' => '测试账号', 'family_address' => '家庭住址', 'family_member' => '家庭成员', + 'identity' => '学生身份', ], 'options' => [ ], diff --git a/routes/api.php b/routes/api.php index 9895f7a..c369b53 100644 --- a/routes/api.php +++ b/routes/api.php @@ -1,5 +1,8 @@ group(function(){ + Route::any("completedOnLineStep", [ImportCompletedOnLineStepView::class, "export"]); + Route::any("completedOffLineStep", [ImportCompletedOfflineStep::class, "export"]); + Route::any("userBaseInfoExcel", [ImportUserBaseInfo::class, "export"]); +}); +