mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
修改代码注释
This commit is contained in:
parent
fe3fb615b3
commit
fff1fc3dd2
@ -12,12 +12,6 @@ use think\admin\Controller;
|
|||||||
*/
|
*/
|
||||||
class Message extends Controller
|
class Message extends Controller
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* 绑定数据表
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private $table = 'BaseUserMessage';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 系统通知管理
|
* 系统通知管理
|
||||||
* @auth true
|
* @auth true
|
||||||
|
@ -15,12 +15,6 @@ use think\admin\extend\CodeExtend;
|
|||||||
*/
|
*/
|
||||||
class Payment extends Controller
|
class Payment extends Controller
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* 绑定数据表
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private $table = 'BaseUserPayment';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 支付通道类型
|
* 支付通道类型
|
||||||
* @var array
|
* @var array
|
||||||
|
@ -25,16 +25,17 @@ class Company extends Controller
|
|||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
$this->title = '快递公司管理';
|
$this->title = '快递公司管理';
|
||||||
$query = BasePostageCompany::mQuery();
|
|
||||||
|
|
||||||
// 加载对应数据
|
// 加载对应数据
|
||||||
$this->type = $this->request->get('type', 'index');
|
$map = ['deleted' => 0];
|
||||||
if ($this->type === 'index') $query->where(['status' => 1]);
|
$this->type = input('get.type', 'index');
|
||||||
elseif ($this->type === 'recycle') $query->where(['status' => 0]);
|
if ($this->type === 'index') $map['status'] = 1;
|
||||||
|
if ($this->type === 'recycle') $map['status'] = 0;
|
||||||
|
|
||||||
// 列表显示分页
|
// 列表显示分页
|
||||||
|
$query = BasePostageCompany::mQuery();
|
||||||
$query->like('name,code')->equal('status')->dateBetween('craete_at');
|
$query->like('name,code')->equal('status')->dateBetween('craete_at');
|
||||||
$query->where(['deleted' => 0])->order('sort desc,id desc')->page();
|
$query->where($map)->order('sort desc,id desc')->page();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user