fix table name ValueSet to valueset
This commit is contained in:
parent
11dca70c70
commit
8fc9541063
@ -21,8 +21,8 @@ class ContainerDefModel extends BaseModel {
|
|||||||
protected $afterUpdate = ['convertDatesToUTCISO'];
|
protected $afterUpdate = ['convertDatesToUTCISO'];
|
||||||
|
|
||||||
public function getContainer($ConDefID) {
|
public function getContainer($ConDefID) {
|
||||||
$rows = $this->select('containerdef.*, ValueSet.VValue as ColorTxt')
|
$rows = $this->select('containerdef.*, valueset.VValue as ColorTxt')
|
||||||
->join('ValueSet', 'ValueSet.VID=containerdef.Color', 'left')
|
->join('valueset', 'valueset.VID=containerdef.Color', 'left')
|
||||||
->where('ConDefID', $ConDefID)->get()->getResultArray();
|
->where('ConDefID', $ConDefID)->get()->getResultArray();
|
||||||
return $rows;
|
return $rows;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
namespace App\Models\ValueSet;
|
namespace App\Models\ValueSet;
|
||||||
|
|
||||||
use App\Models\BaseUtcModel;
|
use App\Models\BaseModel;
|
||||||
|
|
||||||
class ValueSetDefModel extends BaseModel {
|
class ValueSetDefModel extends BaseModel {
|
||||||
protected $table = 'valuesetdef';
|
protected $table = 'valuesetdef';
|
||||||
@ -14,13 +14,13 @@ class ValueSetDefModel extends BaseModel {
|
|||||||
protected $updatedField = '';
|
protected $updatedField = '';
|
||||||
protected $useSoftDeletes = true;
|
protected $useSoftDeletes = true;
|
||||||
protected $deletedField = 'EndDate';
|
protected $deletedField = 'EndDate';
|
||||||
|
/*
|
||||||
protected $beforeInsert = ['normalizeDatesToUTC'];
|
protected $beforeInsert = ['normalizeDatesToUTC'];
|
||||||
protected $beforeUpdate = ['normalizeDatesToUTC'];
|
protected $beforeUpdate = ['normalizeDatesToUTC'];
|
||||||
protected $afterFind = ['convertDatesToUTCISO'];
|
protected $afterFind = ['convertDatesToUTCISO'];
|
||||||
protected $afterInsert = ['convertDatesToUTCISO'];
|
protected $afterInsert = ['convertDatesToUTCISO'];
|
||||||
protected $afterUpdate = ['convertDatesToUTCISO'];
|
protected $afterUpdate = ['convertDatesToUTCISO'];
|
||||||
|
*/
|
||||||
public function getValueSetDefs($param = null) {
|
public function getValueSetDefs($param = null) {
|
||||||
if ($param !== null) {
|
if ($param !== null) {
|
||||||
$builder = $this->builder();
|
$builder = $this->builder();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user