diff --git a/app/Controllers/ValueSet.php b/app/Controllers/ValueSet.php index 529f5ad..145e7fa 100644 --- a/app/Controllers/ValueSet.php +++ b/app/Controllers/ValueSet.php @@ -17,9 +17,13 @@ class ValueSet extends Controller { } public function index() { - $rows = $this->db->table('valueset') - ->select("*") - ->get()->getResultArray(); + $builder = $this->db->table('valueset')->select("*"); + $param = $this->request->getVar('param'); + if ($param !== null) { + $builder->like('VValue', $param, 'both'); + $builder->orlike('VDesc', $param, 'both'); + } + $rows = $builder->get()->getResultArray(); if (empty($rows)) { return $this->respond([ diff --git a/app/Controllers/ValueSetDef.php b/app/Controllers/ValueSetDef.php index f3b7ec3..1bf8b93 100644 --- a/app/Controllers/ValueSetDef.php +++ b/app/Controllers/ValueSetDef.php @@ -17,10 +17,14 @@ class ValueSetDef extends Controller { } public function index() { - $rows = $this->db->table('valuesetdef') - ->select("*") - ->get()->getResultArray(); - + $builder = $this->db->table('valuesetdef')->select("*"); + $param = $this->request->getVar('param'); + if ($param !== null) { + $builder->like('VSName', $param, 'both'); + $builder->orlike('VSDesc', $param, 'both'); + } + $rows = $builder->get()->getResultArray(); + if (empty($rows)) { return $this->respond([ 'status' => 'success', diff --git a/public/clqms01.sql.gz b/public/clqms01.sql.gz new file mode 100644 index 0000000..8e65911 Binary files /dev/null and b/public/clqms01.sql.gz differ diff --git a/public/upload/meow.jpg b/public/upload/meow.jpg new file mode 100644 index 0000000..f28151a Binary files /dev/null and b/public/upload/meow.jpg differ diff --git a/public/upload/panda.jpg b/public/upload/panda.jpg new file mode 100644 index 0000000..000b33c Binary files /dev/null and b/public/upload/panda.jpg differ