100], [['poiId', 'shopId', 'shopLat', 'shopLong', 'shopProvince', 'shopCity', 'shopDist', 'shopAddress', 'telephone'], 'string', 'max' => 20], [['introduction'], 'string', 'max' => 800], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => 'ID', 'businessName' => 'Business Name', 'branchName' => 'Branch Name', 'merchantId' => 'Merchant ID', 'poiId' => 'Poi ID', 'shopId' => 'Shop ID', 'shopLat' => 'Shop Lat', 'shopLong' => 'Shop Long', 'shopProvince' => 'Shop Province', 'shopCity' => 'Shop City', 'shopDist' => 'Shop Dist', 'shopAddress' => 'Shop Address', 'telephone' => 'Telephone', 'introduction' => 'Introduction', 'status' => 'Shop Status', 'addTime' => 'Add Time', 'createTime' => 'Create Time', 'updateTime' => 'Update Time', ]; } public static function updateByPoiId($poiId, $data){ $cond = ['poiId' => $poiId]; return self::updateByCondition($cond, $data); } public static function getByPoiId($poiId) { $condition = ['poiId' => $poiId]; return self::find()->where($condition)->asArray()->one(); } }