修改代码注释

This commit is contained in:
邹景立 2021-09-16 10:12:19 +08:00
parent fe3fb615b3
commit fff1fc3dd2
3 changed files with 6 additions and 17 deletions

View File

@ -12,12 +12,6 @@ use think\admin\Controller;
*/
class Message extends Controller
{
/**
* 绑定数据表
* @var string
*/
private $table = 'BaseUserMessage';
/**
* 系统通知管理
* @auth true

View File

@ -15,12 +15,6 @@ use think\admin\extend\CodeExtend;
*/
class Payment extends Controller
{
/**
* 绑定数据表
* @var string
*/
private $table = 'BaseUserPayment';
/**
* 支付通道类型
* @var array

View File

@ -25,16 +25,17 @@ class Company extends Controller
public function index()
{
$this->title = '快递公司管理';
$query = BasePostageCompany::mQuery();
// 加载对应数据
$this->type = $this->request->get('type', 'index');
if ($this->type === 'index') $query->where(['status' => 1]);
elseif ($this->type === 'recycle') $query->where(['status' => 0]);
$map = ['deleted' => 0];
$this->type = input('get.type', 'index');
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->where(['deleted' => 0])->order('sort desc,id desc')->page();
$query->where($map)->order('sort desc,id desc')->page();
}
/**