文件
mashangyoujiu/Application/Common/Model/RetailPlugMerchantModel.class.php

40 行
1.3 KiB
PHP
可执行文件

此文件含有模棱两可的 Unicode 字符

此文件含有可能会与其他字符混淆的 Unicode 字符。 如果您是想特意这样的,可以安全地忽略该警告。 使用 Escape 按钮显示他们。

<?php
namespace Common\Model;
//[1.5.52]
/**
* 商户插件
* Class RetailPlugMerchantModel
* @package Common\Model
*/
class RetailPlugMerchantModel extends BaseModel
{
protected $tableName = 'plug_merchant';
const ID = 'id'; //int(10) unsigned NOT NULL AUTO_INCREMENT,
const PLUG_ID = 'plug_id'; //int(11) DEFAULT NULL COMMENT '插件id',
const ADD_TIME = 'addtime'; //int(11) DEFAULT NULL COMMENT '数据添加时间。',
const OPEN_TIME = 'opentime'; //int(11) DEFAULT NULL COMMENT '开启时间',
const MERCHANT_ID = 'merchant_id'; //int(11) DEFAULT NULL COMMENT '商户id',
const M_STATUS = 'm_status'; //tinyint(1) DEFAULT NULL COMMENT '状态:1,可用,2,不可用;',
const STATUS = 'status'; //tinyint(1) DEFAULT '1' COMMENT '商户是否开启插件 1:开启 2:关闭',
/**
* 查询商户是否拥有插件的权限
* @param $param
* [
* merchant_id
* identification_arr 插件唯一标识集合
* ]
* @return mixed
*/
public function plug_permissions($fields, $where)
{
$list = $this->alias('m')
->join('ls_plug as p on p.id=m.plug_id')
->field($fields)
->where($where)
->select();
return $list;
}
}