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