Commit 1b6fa3c7 by lujunyi

格式化

parent da37c3ec
......@@ -34,7 +34,7 @@ public function PharmacyList(Request $request)
if ($limit_test_id) {
$limit_ids = explode(',', $limit_test_id);
}
$query = PharmacyModel::query()->whereNotIn('id',$limit_ids);
$query = PharmacyModel::query()->whereNotIn('id', $limit_ids);
if ($search_input) {
$query->where('name', 'like', "%{$search_input}%");
// ->orWhere('address','like',"%{$search_input}%");
......
......@@ -13,7 +13,6 @@ class DiagnosiModel extends Model
use HasDateTimeFormatter;
use SoftDeletes;
const DIAGNOSI_TYPE_WM = 0;
const DIAGNOSI_TYPE_TCM = 1;
......@@ -23,6 +22,7 @@ class DiagnosiModel extends Model
self::DIAGNOSI_TYPE_WM => '西医',
self::DIAGNOSI_TYPE_TCM => '中医',
];
protected $table = 'diagnosis';
public function setNameAttribute($value)
......
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