added POST /preorder Api

This commit is contained in:
Frank Schubert
2022-09-15 14:15:00 +02:00
parent 2cbdbf3813
commit 824f3a6ef2
6 changed files with 86 additions and 17 deletions
+10
View File
@@ -1,6 +1,7 @@
<?php
class PreorderModel {
public $ucode;
public $preordercampaign_id;
public $adb_hausnummer_id;
public $adb_wohneinheit_id;
@@ -26,6 +27,8 @@ class PreorderModel {
public $city;
public $phone;
public $email;
public $submit_type;
public $submit_request;
public $note;
@@ -155,6 +158,13 @@ class PreorderModel {
}
}
if(array_key_exists("ucode", $filter)) {
$ucode = FronkDB::singleton()->escape($filter['ucode']);
if($ucode) {
$where .= " AND ucode like '%$ucode%'";
}
}
//var_dump($filter, $where);exit;
return $where;