master
cody 3 months ago
parent 072fcb7d98
commit 2db5f6b4c0

@ -806,7 +806,7 @@ class CourseSign extends SoftDeletesModel
// 条件2user.type 包含「人才」的用户
$courseSigns2 = $courseSignsQuery->whereHas('user', function ($q) {
$q->where('type', 'like', '%人才%');
$q->where('type', 'like', '%人才%')->orWhere('talent_tags', 'like', '%人才%');
})->with(['user.company'])->get();
// 合并两个条件的结果(或关系),并去重 user_id

@ -19,7 +19,7 @@ return new class extends Migration {
$table->string('name')->nullable()->comment('名字');
$table->date('start_date')->nullable()->comment('开始日期');
$table->date('end_date')->nullable()->comment('结束日期');
$table->integer('total')->default(0)->comment('加减数据(正数表示加,负数表示减)');
$table->unsignedInteger('total')->default(1)->comment('数量必须为正数默认1');
$table->text('remark')->nullable()->comment('备注');
$table->timestamps();
$table->softDeletes();

Loading…
Cancel
Save