fix table name ValueSet to valueset

This commit is contained in:
mahdahar 2025-10-15 13:40:21 +07:00
parent 11dca70c70
commit 8fc9541063
2 changed files with 5 additions and 5 deletions

View File

@ -21,8 +21,8 @@ class ContainerDefModel extends BaseModel {
protected $afterUpdate = ['convertDatesToUTCISO'];
public function getContainer($ConDefID) {
$rows = $this->select('containerdef.*, ValueSet.VValue as ColorTxt')
->join('ValueSet', 'ValueSet.VID=containerdef.Color', 'left')
$rows = $this->select('containerdef.*, valueset.VValue as ColorTxt')
->join('valueset', 'valueset.VID=containerdef.Color', 'left')
->where('ConDefID', $ConDefID)->get()->getResultArray();
return $rows;
}

View File

@ -2,7 +2,7 @@
namespace App\Models\ValueSet;
use App\Models\BaseUtcModel;
use App\Models\BaseModel;
class ValueSetDefModel extends BaseModel {
protected $table = 'valuesetdef';
@ -14,13 +14,13 @@ class ValueSetDefModel extends BaseModel {
protected $updatedField = '';
protected $useSoftDeletes = true;
protected $deletedField = 'EndDate';
/*
protected $beforeInsert = ['normalizeDatesToUTC'];
protected $beforeUpdate = ['normalizeDatesToUTC'];
protected $afterFind = ['convertDatesToUTCISO'];
protected $afterInsert = ['convertDatesToUTCISO'];
protected $afterUpdate = ['convertDatesToUTCISO'];
*/
public function getValueSetDefs($param = null) {
if ($param !== null) {
$builder = $this->builder();