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