WorkLog.php 553 B

12345678910111213141516171819202122
  1. <?php
  2. namespace app\api\controller\v1;
  3. use app\api\controller\Base;
  4. use app\hander\HelpHander;
  5. use think\Db;
  6. class WorkLog extends Base
  7. {
  8. // 日常工作未读数量
  9. public function queryUnReadLog(){
  10. $applyNums = model('ApplyRecord')->unApplyNums($this->userId,$this->orgId);
  11. $logNums = model('WorkReport')->unReadNums($this->userId,$this->orgId);
  12. $data = [
  13. "logNums" => $logNums,//未读日志数量
  14. "applyNums" => $applyNums //待审批数量
  15. ];
  16. HelpHander::success($data);
  17. }
  18. }