ActionRecord.php 937B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | Description: 操作记录
  4. // +----------------------------------------------------------------------
  5. // | Author: Michael_xu | gengxiaoxu@5kcrm.com
  6. // +----------------------------------------------------------------------
  7. namespace app\bi\model;
  8. use think\Db;
  9. use app\admin\model\Common;
  10. use think\Request;
  11. use think\Validate;
  12. class ActionRecord extends Common
  13. {
  14. /**
  15. * 为了数据库的整洁,同时又不影响Model和Controller的名称
  16. * 我们约定每个模块的数据表都加上相同的前缀,比如CRM模块用crm作为数据表前缀
  17. */
  18. protected $name = 'admin_action_record';
  19. /**
  20. * [getDataList 获取列表]
  21. * @return [array]
  22. */
  23. public function getDataCount($request)
  24. {
  25. $dataCount = db('admin_action_record')->where($request)->count();
  26. return $dataCount;
  27. }
  28. }