Init Repo

This commit is contained in:
root
2019-09-06 23:53:10 +08:00
commit f0ef89dfbb
7905 changed files with 914138 additions and 0 deletions

View File

@ -0,0 +1,48 @@
<?php
namespace wstmart\home\controller;
use wstmart\common\model\Invoices as M;
/**
* ============================================================================
* 发票信息控制器
*/
class Invoices extends Base{
/**
*
*/
public function index(){
$m = new M();
$data = $m->pageQuery();
$this->assign('invoiceId',(int)input('invoiceId'));
$this->assign('isInvoice',(int)input('isInvoice'));
$this->assign('data',$data);
return $this->fetch('invoices');
}
/**
* 查询
*/
public function pageQuery(){
$m = new M();
return $m->pageQuery();
}
/**
* 新增
*/
public function add(){
$m = new M();
return $m->add();
}
/**
* 修改
*/
public function edit(){
$m = new M();
return $m->edit();
}
/**
* 删除
*/
public function del(){
$m = new M();
return $m->del();
}
}