26 lines
470 B
PHP
26 lines
470 B
PHP
<?php
|
||
/**
|
||
* @date :2023年03月2日
|
||
* @author:刘孝全
|
||
* @email:q8197264@126.com
|
||
*
|
||
* @ 地区联动模型
|
||
*/
|
||
namespace app\api\model;
|
||
|
||
use think\model;
|
||
|
||
class GeoArea extends Model
|
||
{
|
||
protected $table = "fa_geo_area";
|
||
|
||
static function Get($pcode){
|
||
$list = self::where(['switch'=>1,'city_code'=>$pcode])
|
||
->field('area_id id,area_code code,area_name name')
|
||
->select();
|
||
|
||
return $list;
|
||
}
|
||
|
||
|
||
} |