123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <?php
- /**
- * Created by PhpStorm.
- * User: xiaofeng
- * Date: 2018/7/30
- * Time: 下午3:09
- * 处理楼盘所有的参数对比
- */
- 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()
- {
- }
- }
|