57 行
1.3 KiB
PHP
可执行文件
57 行
1.3 KiB
PHP
可执行文件
<?php
|
|
|
|
namespace Super\Model;
|
|
|
|
use Common\Model\BaseModel;
|
|
//[1.8.50]
|
|
/**
|
|
* 第三方Erp路径配置模型
|
|
* Class ThirdErpSetModel
|
|
* @package Super\Model
|
|
*/
|
|
class ThirdErpSetModel extends BaseModel
|
|
{
|
|
protected $tableName = 'third_erp_set';
|
|
protected $fields = array(
|
|
'id',
|
|
'type',//1登录
|
|
'route_url',//接口路径
|
|
'update_time',//更新时间
|
|
'status',//0禁用 1开启
|
|
'identification',//插件标识
|
|
'route_name'//接口名称
|
|
);
|
|
|
|
|
|
/**
|
|
* 商户的接口链接列表
|
|
* @param $where
|
|
* @param $fields
|
|
* @return mixed
|
|
*/
|
|
public function merchantThirdSet($where, $fields)
|
|
{
|
|
$list = $this->alias('t')
|
|
->join('ls_merchant_third_erp_set as m on t.id=m.third_id', 'LEFT')
|
|
->where($where)
|
|
->field($fields)
|
|
->select();
|
|
return $list;
|
|
}
|
|
|
|
|
|
/**
|
|
* 商户的接口链接信息
|
|
* @param $where
|
|
* @param $fields
|
|
* @return mixed
|
|
*/
|
|
public function ThirdSetInfo($where, $fields)
|
|
{
|
|
$url = $this->alias('t')
|
|
->join('ls_merchant_third_erp_set as m on t.id=m.third_id')
|
|
->where($where)
|
|
->getField($fields);
|
|
return $url;
|
|
}
|
|
} |