Added PreorderStatusflag to Preorder/Index
This commit is contained in:
@@ -5,8 +5,6 @@ class PreorderStatusflagValueModel {
|
||||
public $preorder_id;
|
||||
public $flag_id;
|
||||
public $value;
|
||||
public $old_value;
|
||||
public $new_value;
|
||||
public $create_by;
|
||||
public $edit_by;
|
||||
public $create;
|
||||
@@ -42,7 +40,8 @@ class PreorderStatusflagValueModel {
|
||||
$db = FronkDB::singleton();
|
||||
|
||||
$where = self::getSqlFilter($filter);
|
||||
$res = $db->select("PreorderStatusflagValue", "*", "$where ORDER BY statusflag_id LIMIT 1");
|
||||
|
||||
$res = $db->select("PreorderStatusflagValue", "*", "$where ORDER BY flag_id LIMIT 1");
|
||||
if ($db->num_rows($res)) {
|
||||
$data = $db->fetch_object($res);
|
||||
$item = new PreorderStatusflagValue($data);
|
||||
@@ -60,7 +59,7 @@ class PreorderStatusflagValueModel {
|
||||
|
||||
$db = FronkDB::singleton();
|
||||
|
||||
$res = $db->select("PreorderStatusflagValue", "*", "1=1 ORDER BY statusflag_id");
|
||||
$res = $db->select("PreorderStatusflagValue", "*", "1=1 ORDER BY flag_id");
|
||||
if ($db->num_rows($res)) {
|
||||
while ($data = $db->fetch_object($res)) {
|
||||
$items[] = new PreorderStatusflagValue($data);
|
||||
@@ -92,7 +91,7 @@ class PreorderStatusflagValueModel {
|
||||
$where = self::getSqlFilter($filter);
|
||||
$sql = "SELECT * FROM PreorderStatusflagValue
|
||||
WHERE $where
|
||||
ORDER BY statusflag_id";
|
||||
ORDER BY flag_id";
|
||||
|
||||
mfLoghandler::singleton()->debug($sql);
|
||||
if (is_array($limit) && count($limit)) {
|
||||
@@ -116,7 +115,6 @@ class PreorderStatusflagValueModel {
|
||||
$where = "1=1 ";
|
||||
|
||||
|
||||
|
||||
if (array_key_exists("preorder_id", $filter)) {
|
||||
$preorder_id = $filter['preorder_id'];
|
||||
if (is_numeric($preorder_id)) {
|
||||
|
||||
Reference in New Issue
Block a user