123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <?php
- namespace app\api\controller\v1;
- use app\api\controller\Base;
- use app\hander\HelpHander;
- use think\Db;
- class WorkReport extends Base
- {
- // 新增
- public function save(){
- model('WorkReport')->add();
- HelpHander::success([],'操作成功');
- }
- // 详情
- public function detail(){
- $id = input('id/d',0);
- $ret = model('WorkReport')->info($id);
- HelpHander::success($ret);
- }
- // 我收到的汇报详情
- public function rdetail(){
- $id = input('id/d',0);
- $ret = model('WorkReport')->receiveInfo($id);
- HelpHander::success($ret);
- }
- // 我提交的汇报列表
- public function list(){
- $page = input('page/d',1);
- $size = input('size/d',10);
- $ret = model('WorkReport')->lists($page,$size,$this->userId,$this->orgId);
- HelpHander::success($ret);
- }
- // 我提交的汇报列表
- public function receiveList(){
- $page = input('page/d',1);
- $size = input('size/d',10);
- $ret = model('WorkReport')->receiveList($page,$size,$this->userId,$this->orgId);
- HelpHander::success($ret);
- }
- // 我的接收人
- public function receiver(){
- $ret = model('WorkReport')->myReceiver($this->userId,$this->orgId);
- HelpHander::success($ret);
- }
- }
|