当前位置:首页>python>中篇Python(ODOO)篇 第四章 ODOO项目优化部分(四)预约模块增强 显示教练当日时间安排等

中篇Python(ODOO)篇 第四章 ODOO项目优化部分(四)预约模块增强 显示教练当日时间安排等

  • 2026-06-29 18:42:14
中篇Python(ODOO)篇 第四章 ODOO项目优化部分(四)预约模块增强 显示教练当日时间安排等

显示教练当日时间安排

我们可以用日历视图来显示该教练指定日当日预约列表。在预约的时候,通过观看该教练日程好安排学员培训时间,该部分请读者完成。
笔者在预约子模块中新增了几个字段,重排了预约子模块,新加了检查时间冲突按钮,读者可参考学员管理子模块,依照自己喜好重新布局。截图如下。
列表视图:
日历视图:

车辆TAB页签

本次收费信息页签

公司信息页签

检查时间冲突按钮

在学员选定教练和时间后,点击检查时间冲突按钮,我们分别在车辆保养表、教练休假表和预约表中检查时间是不是有冲突,如果有冲突,则提示。
按钮,支持的属性

string 按钮的显示文字

      type  值可以是 workflow, object action   默认是 workflow

      name  就是要触发的方法标识

      args  传递方法的参数

      content 上下文

      confirm  针对对话框的确认

      special="cancel" 用于向导

      states 可见的状态

      classname 加载的类名(常用 oe_highlight)

其中workflow用于工作流,action用于直接调用某个模块,object用于执行方法。
1、在视图上定义一个按钮,在下插入按钮代码。
<header>    <buttonname="button_check_time"type="object"            string="检查时间冲突" class="oe_highlight"/></header>

代码截图:

2、在数据模型文件中写代码。
def button_check_time(self):        begin_date = self.appointment_begin_date        end_date = self.appointment_end_date        #  检查这个教练在预约表中有无冲突 检查车辆在预约表中有无冲突        domain = [('active''='True),                  ('complete''='False),                  ('id''!='self.id),  # 不是本预约单                  ('complete_begin_date''='False),                  '|', ('car_name''='self.car_name.id),  # |表示后面两个条件或                  ('teacher_name''='self.teacher_name.id)]        field_names = ['appointment_begin_date''appointment_end_date''name''teacher_name''car_name']        records = self.search_read(domain, field_names)        for rec in records:            if rec['name']:                check_begin_date = rec['appointment_begin_date']                check_end_date = rec['appointment_end_date']                if check_time_out(begin_date, end_date, check_begin_date, check_end_date):                    raise osv.except_osv(_('Warning!'), _('预约单时间冲突!单据号:' + rec['name']))        # 检查教练请假单        domain = [('active''='True),                  ('teacher_name''='self.teacher_name.id),  # 本教练的请假单                  ('actual_begin_date''='False)]        field_names = ['Holiday_begin_date''Holiday_end_date''name']        records = self.env['nebula.teacher.holiday'].search_read(domain, field_names)        for rec in records:            if rec['name']:                print('****nebula.teacher.holiday:', records)                check_begin_date = rec['Holiday_begin_date']                check_end_date = rec['Holiday_end_date']                if check_time_out(begin_date, end_date, check_begin_date, check_end_date):                    raise osv.except_osv(_('Warning!'), _('教练假期冲突!单据号:' + rec['name']))        # 检查车辆检验单        domain = [('active''='True),                  ('car_name''='self.car_name.id),  # 车辆                  ('actual_date_begin''='False)]        field_names = ['order_date_begin''order_date_end''name']        records = self.env['nebula.car.maintenance'].search_read(domain, field_names)        for rec in records:            if rec['name']:                print('****nebula.car.maintenance:', records)                check_begin_date = rec['order_date_begin']                check_end_date = rec['order_date_end']                if check_time_out(begin_date, end_date, check_begin_date, check_end_date):                    raise osv.except_osv(_('Warning!'), _('车辆保养冲突!单据号:' + rec['name']))        return {}# 比较时间是不是在里面,在里面就Truedef check_time_out(in_begin_time, in_end_time, check_begin_time, check_end_time):    if (check_begin_time <= in_begin_time) and (in_begin_time <= check_end_time):        re = True  # 传入开始时间在要检查的时间中间    elif (check_begin_time <= in_end_time) and (in_end_time <= check_end_time):        re = True  # 传入结束时间在要检查的时间中间    elif (in_begin_time <= check_begin_time) and (check_end_time <= in_end_time):        re = True  # 传入开始时间和传入结束时间跨越了要检查的时间段    else:        re = False    return re
代码截图
appointent.py
from .system_info import get_charge_hourfrom .neubla_tools import check_time_out, appointment_begin_datefrom odoo import fields, models, api, _from datetime import datetime, timedeltafrom odoo.osv import osvclass NebulaAppointment(models.Model):    _name = "nebula.appointment"    _description = "预约管理"    _order = 'name'    active = fields.Boolean('预约有效', default=True)    complete = fields.Boolean('预约完成', default=False)    name = fields.Char('预约简情', size=30,                       default=datetime.now().strftime('%Y-%m-%d %H:%M:%S'))    student_name = fields.Many2one('nebula.student', string='学员姓名',                                   index=True, size=8)    student_seq = fields.Char('学员编号', related='student_name.seq', store=True)    references_appointment = fields.Many2one('nebula.appointment',                                             string='参考预约单',                                             size=30, domain=[('active''='True)])    student_mobile = fields.Char('学员手机', related='student_name.mobile')    appointment_begin_date = fields.Datetime('预约起始时间', required=True,                                             index=True, default=appointment_begin_date(24))    appointment_hours = fields.Integer('预约小时数', required=True, default=3)    appointment_end_date = fields.Datetime('预约结束时间',                                           compute='_calc_appointment_end_date',                                           store=True)    complete_begin_date = fields.Datetime('实际起始时间', index=True)    complete_hours = fields.Integer('实际小时数')    complete_end_date = fields.Datetime('实际结束时间', compute='_calc_complete_end_date',                                        store=True)    auto_type_name = fields.Selection(selection='_select_auto_type', string='预约类型', required=True)    teacher_name = fields.Many2one('nebula.teacher', string='教练工号',                                   size=8, required=True,                                   domain=[('active''='True)])    teacher_full_name = fields.Char('教练姓名', related='teacher_name.full_name',                                    store=True)    teacher_mobile = fields.Char('教练手机', related='teacher_name.mobile')    car_name = fields.Many2one('nebula.car', string='车辆编号',                               size=8, domain=[('active''='True)])    license_plate = fields.Char('车辆牌照', related='car_name.license_plate',                                store=True)    car_type_name = fields.Selection(selection='_select_car_type', string='车型',                                     related='car_name.car_type_name')    car_auto_type_name = fields.Selection(selection='_select_auto_type',                                          string='排挡类', related='car_name.auto_type_name')    fee_type = fields.Many2one('nebula.system.info', string='费用标准', required=True,                               size=30, store=True, domain=[('active''='True)])    work_start_time = fields.Float('上班时间', digits=(42), related='fee_type.start_time',                                   store=True)    work_end_time = fields.Float('下班时间', digits=(42), related='fee_type.end_time',                                 store=True)    work_hours_hour = fields.Integer('每节课小时数', related='fee_type.hours_hour',                                     store=True)    work_charge_hour = fields.Integer('每小时收费', compute="_get_charge_hour",                                      store=True)    deposit = fields.Integer('学员缴费')    give_money = fields.Integer('赠送金额'help='充值送费')    pay = fields.Integer('本次支付费用')    balance = fields.Integer('余额', readonly=True)  # 计算字段,学员缴费之和-支付费用之和。    begin_address = fields.Text('上车地点')    end_address = fields.Text('下车地点', default='同上车地点')    user_id = fields.Many2one('res.users', string='创建人', index=True,                              readonly=True, default=lambda selfself.env.user)    date_docket = fields.Datetime('单据日期', required=True, readonly=True,                                  index=True, default=fields.Datetime.now)    note = fields.Text('备注')    @api.model    def _select_car_type(self):        records = self.env['nebula.car.type'].search([('active''='True)])        return [(r.name, r.name_type) for r in records]    def _select_auto_type(self):        records = self.env['nebula.auto.type'].search([])        return [(r.name, r.name_type) for r in records]    @api.depends('fee_type''car_auto_type_name')    def _get_charge_hour(self):        for order in self:            order_id = order.fee_type.id            auto_type = order.car_auto_type_name            order.work_charge_hour = get_charge_hour(order, order_id, auto_type)    @api.depends('appointment_begin_date''appointment_hours')    def _calc_appointment_end_date(self):        for order in self:            begin_date = order.appointment_begin_date            add_hours = order.appointment_hours            end_date = begin_date + timedelta(hours=add_hours)            end_date = end_date - timedelta(seconds=1)            order.appointment_end_date = end_date    @api.depends('complete_begin_date''complete_hours')    def _calc_complete_end_date(self):        for order in self:            if order.complete_begin_date:                begin_date = order.complete_begin_date                add_hours = order.complete_hours                begin_date += timedelta(hours=add_hours)                begin_date -= timedelta(seconds=1)                order.complete_end_date = begin_date    @api.onchange('appointment_hours')    def onchange_appointment_hours(self):        if self.appointment_hours <= 0:            self.appointment_hours = 1    @api.onchange('student_seq''deposit''give_money''pay')    def onchange_get_balance(self):        balance = 0        if self.student_seq:            if self.deposit:                balance += self.deposit            if self.give_money:                balance += self.give_money            if self.pay:                balance -= self.pay            domain = [('active''='True),                      ('student_seq''='self.student_seq),                      ('id''!='self.id.origin)]            field_names = ['deposit''give_money''pay']            records = self.search_read(domain, field_names)            for rec in records:                if rec['deposit']:                    balance += rec['deposit']                if rec['give_money']:                    balance += rec['give_money']                if rec['pay']:                    balance -= rec['pay']        self.balance = balance    @api.onchange('student_seq')    def _onchange_student_seq(self):        TODO: 如果是同一个学员,则不清空        self.references_appointment = None        if self.student_seq:            return {                'domain': {'references_appointment': [                    ('active''='True),                    ('student_seq''='self.student_seq)                ]}}        else:            return {'domain': {'references_appointment': [('active''='True)]}}    @api.onchange('references_appointment')    def _onchange_references_appointment(self):        if self.references_appointment:            domain = [('id''='self.references_appointment.id)]            field_names = ['auto_type_name''teacher_name''car_name',                           'begin_address''end_address''student_name''fee_type']            records = self.env['nebula.appointment'].search_read(domain, field_names)            for rec in records:                if rec['auto_type_name']:                    self.auto_type_name = rec['auto_type_name']                if rec['teacher_name']:                    self.teacher_name = rec['teacher_name']                if rec['car_name']:                    self.car_name = rec['car_name']                if rec['begin_address']:                    self.begin_address = rec['begin_address']                if rec['end_address']:                    self.end_address = rec['end_address']                    if rec['fee_type']:                        self.fee_type = rec['fee_type']                if not self.student_name and rec['student_name']:                    self.student_name = rec['student_name']    # 4.检查车辆在预约表中有无冲突    # 1.检查教练休息表有没有准备休息    # 2.检查车辆是不是需要检修    # 3.检查这个教练在预约表中有无冲突    def button_check_time(self):        begin_date = self.appointment_begin_date        end_date = self.appointment_end_date        #  检查这个教练在预约表中有无冲突 检查车辆在预约表中有无冲突        domain = [('active''='True),                  ('complete''='False),                  ('id''!='self.id),  # 不是本预约单                  ('complete_begin_date''='False),                  '|', ('car_name''='self.car_name.id),  # |表示后面两个条件或                  ('teacher_name''='self.teacher_name.id)]        field_names = ['appointment_begin_date''appointment_end_date''name''teacher_name''car_name']        records = self.search_read(domain, field_names)        for rec in records:            if rec['name']:                check_begin_date = rec['appointment_begin_date']                check_end_date = rec['appointment_end_date']                if check_time_out(begin_date, end_date, check_begin_date, check_end_date):                    raise osv.except_osv(_('Warning!'), _('预约单时间冲突!单据号:' + rec['name']))        # 检查教练请假单        domain = [('active''='True),                  ('teacher_name''='self.teacher_name.id),  # 本教练的请假单                  ('actual_begin_date''='False)]        field_names = ['Holiday_begin_date''Holiday_end_date''name']        records = self.env['nebula.teacher.holiday'].search_read(domain, field_names)        for rec in records:            if rec['name']:                check_begin_date = rec['Holiday_begin_date']                check_end_date = rec['Holiday_end_date']                if check_time_out(begin_date, end_date, check_begin_date, check_end_date):                    raise osv.except_osv(_('Warning!'), _('教练假期冲突!单据号:' + rec['name']))        # 检查车辆检验单        domain = [('active''='True),                  ('car_name''='self.car_name.id),  # 车辆                  ('actual_date_begin''='False)]        field_names = ['order_date_begin''order_date_end''name']        records = self.env['nebula.car.maintenance'].search_read(domain, field_names)        for rec in records:            if rec['name']:                check_begin_date = rec['order_date_begin']                check_end_date = rec['order_date_end']                if check_time_out(begin_date, end_date, check_begin_date, check_end_date):                    raise osv.except_osv(_('Warning!'), _('车辆保养冲突!单据号:' + rec['name']))        return {}

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-07-03 05:06:57 HTTP/2.0 GET : https://f.mffb.com.cn/a/500299.html
  2. 运行时间 : 0.185939s [ 吞吐率:5.38req/s ] 内存消耗:4,664.27kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=d73de77ee828d40df8c4a166f6d3e61c
  1. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/public/index.php ( 0.79 KB )
  2. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/autoload.php ( 0.17 KB )
  3. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/autoload_real.php ( 2.49 KB )
  4. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/platform_check.php ( 0.90 KB )
  5. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/ClassLoader.php ( 14.03 KB )
  6. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/autoload_static.php ( 4.90 KB )
  7. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper.php ( 8.34 KB )
  8. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-validate/src/helper.php ( 2.19 KB )
  9. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/helper.php ( 1.47 KB )
  10. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/stubs/load_stubs.php ( 0.16 KB )
  11. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Exception.php ( 1.69 KB )
  12. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-container/src/Facade.php ( 2.71 KB )
  13. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/deprecation-contracts/function.php ( 0.99 KB )
  14. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap.php ( 8.26 KB )
  15. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap80.php ( 9.78 KB )
  16. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/var-dumper/Resources/functions/dump.php ( 1.49 KB )
  17. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-dumper/src/helper.php ( 0.18 KB )
  18. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/var-dumper/VarDumper.php ( 4.30 KB )
  19. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/App.php ( 15.30 KB )
  20. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-container/src/Container.php ( 15.76 KB )
  21. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/container/src/ContainerInterface.php ( 1.02 KB )
  22. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/provider.php ( 0.19 KB )
  23. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Http.php ( 6.04 KB )
  24. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper/Str.php ( 7.29 KB )
  25. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Env.php ( 4.68 KB )
  26. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/common.php ( 0.03 KB )
  27. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/helper.php ( 18.78 KB )
  28. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Config.php ( 5.54 KB )
  29. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/app.php ( 0.95 KB )
  30. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/cache.php ( 0.78 KB )
  31. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/console.php ( 0.23 KB )
  32. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/cookie.php ( 0.56 KB )
  33. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/database.php ( 2.48 KB )
  34. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/Env.php ( 1.67 KB )
  35. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/filesystem.php ( 0.61 KB )
  36. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/lang.php ( 0.91 KB )
  37. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/log.php ( 1.35 KB )
  38. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/middleware.php ( 0.19 KB )
  39. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/route.php ( 1.89 KB )
  40. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/session.php ( 0.57 KB )
  41. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/trace.php ( 0.34 KB )
  42. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/view.php ( 0.82 KB )
  43. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/event.php ( 0.25 KB )
  44. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Event.php ( 7.67 KB )
  45. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/service.php ( 0.13 KB )
  46. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/AppService.php ( 0.26 KB )
  47. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Service.php ( 1.64 KB )
  48. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Lang.php ( 7.35 KB )
  49. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/lang/zh-cn.php ( 13.70 KB )
  50. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/Error.php ( 3.31 KB )
  51. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/RegisterService.php ( 1.33 KB )
  52. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/services.php ( 0.14 KB )
  53. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/PaginatorService.php ( 1.52 KB )
  54. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/ValidateService.php ( 0.99 KB )
  55. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/ModelService.php ( 2.04 KB )
  56. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/Service.php ( 0.77 KB )
  57. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Middleware.php ( 6.72 KB )
  58. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/BootService.php ( 0.77 KB )
  59. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/Paginator.php ( 11.86 KB )
  60. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-validate/src/Validate.php ( 63.20 KB )
  61. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/Model.php ( 23.55 KB )
  62. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Attribute.php ( 21.05 KB )
  63. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/AutoWriteData.php ( 4.21 KB )
  64. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Conversion.php ( 6.44 KB )
  65. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/DbConnect.php ( 5.16 KB )
  66. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/ModelEvent.php ( 2.33 KB )
  67. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/RelationShip.php ( 28.29 KB )
  68. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/contract/Arrayable.php ( 0.09 KB )
  69. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/contract/Jsonable.php ( 0.13 KB )
  70. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/contract/Modelable.php ( 0.09 KB )
  71. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Db.php ( 2.88 KB )
  72. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/DbManager.php ( 8.52 KB )
  73. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Log.php ( 6.28 KB )
  74. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Manager.php ( 3.92 KB )
  75. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/log/src/LoggerTrait.php ( 2.69 KB )
  76. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/log/src/LoggerInterface.php ( 2.71 KB )
  77. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Cache.php ( 4.92 KB )
  78. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/simple-cache/src/CacheInterface.php ( 4.71 KB )
  79. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper/Arr.php ( 16.63 KB )
  80. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/cache/driver/File.php ( 7.84 KB )
  81. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/cache/Driver.php ( 9.03 KB )
  82. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/CacheHandlerInterface.php ( 1.99 KB )
  83. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/Request.php ( 0.09 KB )
  84. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Request.php ( 55.78 KB )
  85. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/middleware.php ( 0.25 KB )
  86. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Pipeline.php ( 2.61 KB )
  87. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/TraceDebug.php ( 3.40 KB )
  88. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/middleware/SessionInit.php ( 1.94 KB )
  89. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Session.php ( 1.80 KB )
  90. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/session/driver/File.php ( 6.27 KB )
  91. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/SessionHandlerInterface.php ( 0.87 KB )
  92. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/session/Store.php ( 7.12 KB )
  93. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Route.php ( 23.73 KB )
  94. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleName.php ( 5.75 KB )
  95. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Domain.php ( 2.53 KB )
  96. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleGroup.php ( 22.43 KB )
  97. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Rule.php ( 26.95 KB )
  98. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleItem.php ( 9.78 KB )
  99. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/route/app.php ( 1.72 KB )
  100. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/Route.php ( 4.70 KB )
  101. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/dispatch/Controller.php ( 4.74 KB )
  102. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Dispatch.php ( 10.44 KB )
  103. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/controller/Index.php ( 4.81 KB )
  104. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/BaseController.php ( 2.05 KB )
  105. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/facade/Db.php ( 0.93 KB )
  106. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/connector/Mysql.php ( 5.44 KB )
  107. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/PDOConnection.php ( 52.47 KB )
  108. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Connection.php ( 8.39 KB )
  109. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/ConnectionInterface.php ( 4.57 KB )
  110. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/builder/Mysql.php ( 16.58 KB )
  111. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Builder.php ( 24.06 KB )
  112. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseBuilder.php ( 27.50 KB )
  113. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Query.php ( 15.71 KB )
  114. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseQuery.php ( 45.13 KB )
  115. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TimeFieldQuery.php ( 7.43 KB )
  116. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/AggregateQuery.php ( 3.26 KB )
  117. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ModelRelationQuery.php ( 20.07 KB )
  118. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ParamsBind.php ( 3.66 KB )
  119. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ResultOperation.php ( 7.01 KB )
  120. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/WhereQuery.php ( 19.37 KB )
  121. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/JoinAndViewQuery.php ( 7.11 KB )
  122. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TableFieldInfo.php ( 2.63 KB )
  123. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/Transaction.php ( 2.77 KB )
  124. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/log/driver/File.php ( 5.96 KB )
  125. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/LogHandlerInterface.php ( 0.86 KB )
  126. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/log/Channel.php ( 3.89 KB )
  127. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/event/LogRecord.php ( 1.02 KB )
  128. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/Collection.php ( 16.47 KB )
  129. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/View.php ( 1.70 KB )
  130. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/View.php ( 4.39 KB )
  131. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Response.php ( 8.81 KB )
  132. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/response/View.php ( 3.29 KB )
  133. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Cookie.php ( 6.06 KB )
  134. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-view/src/Think.php ( 8.38 KB )
  135. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/TemplateHandlerInterface.php ( 1.60 KB )
  136. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/Template.php ( 46.61 KB )
  137. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/template/driver/File.php ( 2.41 KB )
  138. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/template/contract/DriverInterface.php ( 0.86 KB )
  139. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/runtime/temp/067d451b9a0c665040f3f1bdd3293d68.php ( 11.98 KB )
  140. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/Html.php ( 4.42 KB )
  1. CONNECT:[ UseTime:0.000549s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.000759s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.018214s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.004322s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000751s ]
  6. SELECT * FROM `set` [ RunTime:0.001838s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.000746s ]
  8. SELECT * FROM `article` WHERE `id` = 500299 LIMIT 1 [ RunTime:0.008331s ]
  9. UPDATE `article` SET `lasttime` = 1783026417 WHERE `id` = 500299 [ RunTime:0.014866s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 66 LIMIT 1 [ RunTime:0.001489s ]
  11. SELECT * FROM `article` WHERE `id` < 500299 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.011941s ]
  12. SELECT * FROM `article` WHERE `id` > 500299 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.011013s ]
  13. SELECT * FROM `article` WHERE `id` < 500299 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.014181s ]
  14. SELECT * FROM `article` WHERE `id` < 500299 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.005338s ]
  15. SELECT * FROM `article` WHERE `id` < 500299 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.001342s ]
0.187367s