Commit 4da9d3c6 by 赵增煜

新增诊断字段

parent 3ea584a1
...@@ -78,8 +78,8 @@ public function prescriptionList(Request $request) ...@@ -78,8 +78,8 @@ public function prescriptionList(Request $request)
public function detail(Request $request) public function detail(Request $request)
{ {
$c = $request->input('prescription_id'); $c = $request->input('prescription_id');
if (empty($prescription_id) || ! filter_var($prescription_id, FILTER_VALIDATE_INT)) { if (empty($prescription_id)) {
return $this->failed('ID不能为空且必须为整数'); return $this->failed('ID不能为空');
} }
$prescription = PrescriptionModel::query()->where('id', $prescription_id)->first(); $prescription = PrescriptionModel::query()->where('id', $prescription_id)->first();
......
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('diagnosis', function (Blueprint $table) {
$table->string('encoding')->comment('外部编码');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('diagnosis', function (Blueprint $table) {
//
});
}
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment