问答 / 0 / 3 / 创建于 2年前
比如学生信息,去年1年级,今年二年级,这个年级字段怎么更新。定时任务每年更新一次?时间判断?或者有其他的更好的办法或者思路
保存入学时间 然后计算年级
Schema::create('student_grade', function (Blueprint $table) { $table->bigIncrements('id'); $table->bigInteger('student_id')->comment('学生编号'); $table->string('grade')->comment('学生年级'); $table->string('class')->comment('学生班级'); $table->date('year')->comment('报道学年'); $table->tinyInteger('is_finish', '是否修完'); $table->timestamps(); });
我们是我每年跑一次脚本 :joy:
我要举报该,理由是:
保存入学时间 然后计算年级
如果用户的入学年级表是一个单独的表会怎么样?
如果特殊情况呢?
我们是我每年跑一次脚本 :joy: