12345678910111213141516171819202122 |
- <?php
- namespace app\api\controller\v1;
- use app\api\controller\Base;
- use app\hander\HelpHander;
- use think\Db;
- class WorkLog extends Base
- {
- // 日常工作未读数量
- public function queryUnReadLog(){
- $applyNums = model('ApplyRecord')->unApplyNums($this->userId,$this->orgId);
- $logNums = model('WorkReport')->unReadNums($this->userId,$this->orgId);
- $data = [
- "logNums" => $logNums,//未读日志数量
- "applyNums" => $applyNums //待审批数量
- ];
- HelpHander::success($data);
- }
- }
|