123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <?php
- namespace backend\synchouse;
- use common\models\House;
- use common\models\HouseDetail;
- use common\models\Syncrecord;
- class ParamsHandle{
-
- public function ExistsName($name)
- {
- if(!empty($name))
- {
- $h = House::find()->andWhere(['del'=>1])->andWhere(['name'=>$name])->one();
- if(!empty($h))
- {
- return $h;
- }
- }
- return false;
- }
-
- public function Existsunid($unid)
- {
- if(!empty($unid))
- {
- $un = new Syncrecord();
- $row = $un->FindByUnid($unid);
- $row = House::find()->andWhere(['del'=>1])->andWhere(['id'=>$row['hid']])->one();
- if(!empty($row))
- {
- return $row;
- }
- }
- return false;
- }
-
- public function HouseCreate()
- {
- }
-
- public function HouseEdit()
- {
- }
- }
|