|
@@ -35,4 +35,32 @@ class Model_logic_order extends Lin_Model {
|
|
|
return [];
|
|
|
}
|
|
|
|
|
|
+ public function getInfoByType($table_type,$number){
|
|
|
+ if($table_type == 1){
|
|
|
+ $info = $this->fullorder->get_number($number);
|
|
|
+ }
|
|
|
+ if($table_type == 2){
|
|
|
+ $info = $this->fullordertt->get_number($number);
|
|
|
+ }
|
|
|
+ if($table_type == 3){
|
|
|
+ $info = $this->fullordersmt->get_number($number);
|
|
|
+ }
|
|
|
+ return $info;
|
|
|
+ }
|
|
|
+ public function getType($where){
|
|
|
+ $info = $this->fullorder->find($where,'id');
|
|
|
+ if(!empty($info)){
|
|
|
+ return 1;
|
|
|
+ }
|
|
|
+ $info = $this->fullordertt->find($where,'id');
|
|
|
+ if(!empty($info)){
|
|
|
+ return 2;
|
|
|
+ }
|
|
|
+ $info = $this->fullordersmt->find($where,'id');
|
|
|
+ if(!empty($info)){
|
|
|
+ return 3;
|
|
|
+ }
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+
|
|
|
}
|