跳到内容
当前位置:首页>下载方法>如何从给定日期获取每周/月/季度/年度的开始日期和结束日期(期间)(包括上一个和下一个)

如何从给定日期获取每周/月/季度/年度的开始日期和结束日期(期间)(包括上一个和下一个)

  • 2026-11-30 02:15:05
如何从给定日期获取每周/月/季度/年度的开始日期和结束日期(期间)(包括上一个和下一个)

Dynamics 365 商务中心

大家好,读者们。今天我想分享另一个关于 Business Central 的建议。在开发过程中,有时你需要从某一日期获取每周/月/季度/年度的起始日期和结束日期(包括最后和下一个)。我们怎么才能快点完成?在这篇文章中,我将简要总结,希望能给你一些帮助。

这次我们用的是CalcDate方法。

计算日期方法:基于日期表达式和参考日期计算新日期。

语法:NewDate := System.CalcDate(DateExpression: 字符串 [, Date: Date])

参数:

DateExpression类型:文本date表达式可以是任意长度。字符串从左到右解释,每次只用一个子表达式。以下规则描述了日期表达式的有效语法:

  • DateExpression = [<子表达式>][<子表达式>][<子表达式>]
  • <子表达式> = [<符号>] <项>- <符号> = + |–
  • <Term> = <Number><Unit> |<单位><编号> |<前缀><单位>
  • <Number> = 正整数
  • <单位> = D |WD |W |M |问 |Y(D=日,WD=工作日,W=周,M=月,Q=季度,Y=年)
  • <前缀>= C(C=当前)这些生成规则表明日期表达式由零、一、二或三个子表达式组成。每个子表达式由一个可选符号和一个项组成。以下是一些典型的术语示例:
  • 30D(30天;对应<编号><单位>)
  • WD2(工作日编号2;对应<单位><编号>)
  • CW(本周;对应<前缀><单位>)内部日历从周一开始,周日结束。这意味着周一是工作日1,周日是工作日7。如果DateExpression的语法不正确,就会发生运行时错误。

让我们看看更多细节。为了简单测试,我用销售订单上的过账日期作为给定的日期。

  1. 本周、上周和下周
  2. 这个月、上个月和下个月
  3. 本季度、上季度和下季度
  4. 今年、去年和明年

本周、上周和下周

关键代码:

        //This Week        ThisWeekStartDate := CalcDate('<-CW>', GivenDate);        ThisWeekEndDate := CalcDate('<CW>', GivenDate);        //Last Week        LastWeekStartDate := CalcDate('<-CW-1W>', GivenDate);        LastWeekEndDate := CalcDate('<CW-1W>', GivenDate);        //Next Week        NextWeekStartDate := CalcDate('<-CW+1W>', GivenDate);        NextWeekEndDate := CalcDate('<CW+1W>', GivenDate);

这个月、上个月和下个月

关键代码:

        //This Month        ThisMonthStartDate := CalcDate('<-CM>', GivenDate);        ThisMonthEndDate := CalcDate('<CM>', GivenDate);        //Last Month        LastMonthStartDate := CalcDate('<-CM-1M>', GivenDate);        LastMonthEndDate := CalcDate('<CM>', LastMonthStartDate);        //Next Month        NextMonthStartDate := CalcDate('<-CM+1M>', GivenDate);        NextMonthEndDate := CalcDate('<CM>', NextMonthStartDate);

本季度、上季度和下季度

关键代码:

        //This Quarter        ThisQuarterStartDate := CalcDate('<-CQ>', GivenDate);        ThisQuarterEndDate := CalcDate('<CQ>', GivenDate);        //Last Quarter        LastQuarterStartDate := CalcDate('<-CQ-1Q>', GivenDate);        LastQuarterEndDate := CalcDate('<CQ>', LastQuarterStartDate);        //Next Quarter        NextQuarterStartDate := CalcDate('<-CQ+1Q>', GivenDate);        NextQuarterEndDate := CalcDate('<CQ>', NextQuarterStartDate);

今年、去年和明年

关键代码:

        //This Year        ThisYearStartDate := CalcDate('<-CY>', GivenDate);        ThisYearEndDate := CalcDate('<CY>', GivenDate);        //Last Year        LastYearStartDate := CalcDate('<-CY-1Y>', GivenDate);        LastYearEndDate := CalcDate('<CY-1Y>', GivenDate);        //Next Year        NextYearStartDate := CalcDate('<-CY+1Y>', GivenDate);        NextYearEndDate := CalcDate('<CY+1Y>', GivenDate);

测试视频:

源代码:Github(请注意,源代码仅供参考,您可以根据需要进行改进)

pageextension 50204 SalesOrderExt extends "Sales Order"{    layout    {        modify("Posting Date")        {            trigger OnAfterValidate()            begin                GetWeekPeriodFromGivenDate(Rec."Posting Date");                GetMonthPeriodFromGivenDate(Rec."Posting Date");                GetQuarterPeriodFromGivenDate(Rec."Posting Date");                GetYearPeriodFromGivenDate(Rec."Posting Date");            end;        }    }    var        WeekMsg: Label 'This week: %1 ~ %2\Last week: %3 ~ %4\Next week: %5 ~ %6';        MonthMsg: Label 'This month: %1 ~ %2\Last month: %3 ~ %4\Next month: %5 ~ %6';        QuarterMsg: Label 'This quarter: %1 ~ %2\Last quarter: %3 ~ %4\Next quarter: %5 ~ %6';        YearMsg: Label 'This year: %1 ~ %2\Last year: %3 ~ %4\Next year: %5 ~ %6';    local procedure GetWeekPeriodFromGivenDate(GivenDate: Date)    var        ThisWeekStartDate: Date;        ThisWeekEndDate: Date;        LastWeekStartDate: Date;        LastWeekEndDate: Date;        NextWeekStartDate: Date;        NextWeekEndDate: Date;    begin        //This Week        ThisWeekStartDate := CalcDate('<-CW>', GivenDate);        ThisWeekEndDate := CalcDate('<CW>', GivenDate);        //Last Week        LastWeekStartDate := CalcDate('<-CW-1W>', GivenDate);        LastWeekEndDate := CalcDate('<CW-1W>', GivenDate);        //Next Week        NextWeekStartDate := CalcDate('<-CW+1W>', GivenDate);        NextWeekEndDate := CalcDate('<CW+1W>', GivenDate);        Message(WeekMsg, ThisWeekStartDate, ThisWeekEndDate, LastWeekStartDate, LastWeekEndDate, NextWeekStartDate, NextWeekEndDate);    end;    local procedure GetMonthPeriodFromGivenDate(GivenDate: Date)    var        ThisMonthStartDate: Date;        ThisMonthEndDate: Date;        LastMonthStartDate: Date;        LastMonthEndDate: Date;        NextMonthStartDate: Date;        NextMonthEndDate: Date;    begin        //This Month        ThisMonthStartDate := CalcDate('<-CM>', GivenDate);        ThisMonthEndDate := CalcDate('<CM>', GivenDate);        //Last Month        LastMonthStartDate := CalcDate('<-CM-1M>', GivenDate);        LastMonthEndDate := CalcDate('<CM>', LastMonthStartDate);        //Next Month        NextMonthStartDate := CalcDate('<-CM+1M>', GivenDate);        NextMonthEndDate := CalcDate('<CM>', NextMonthStartDate);        Message(MonthMsg, ThisMonthStartDate, ThisMonthEndDate, LastMonthStartDate, LastMonthEndDate, NextMonthStartDate, NextMonthEndDate);    end;    local procedure GetQuarterPeriodFromGivenDate(GivenDate: Date)    var        ThisQuarterStartDate: Date;        ThisQuarterEndDate: Date;        LastQuarterStartDate: Date;        LastQuarterEndDate: Date;        NextQuarterStartDate: Date;        NextQuarterEndDate: Date;    begin        //This Quarter        ThisQuarterStartDate := CalcDate('<-CQ>', GivenDate);        ThisQuarterEndDate := CalcDate('<CQ>', GivenDate);        //Last Quarter        LastQuarterStartDate := CalcDate('<-CQ-1Q>', GivenDate);        LastQuarterEndDate := CalcDate('<CQ>', LastQuarterStartDate);        //Next Quarter        NextQuarterStartDate := CalcDate('<-CQ+1Q>', GivenDate);        NextQuarterEndDate := CalcDate('<CQ>', NextQuarterStartDate);        Message(QuarterMsg, ThisQuarterStartDate, ThisQuarterEndDate, LastQuarterStartDate, LastQuarterEndDate, NextQuarterStartDate, NextQuarterEndDate);    end;    local procedure GetYearPeriodFromGivenDate(GivenDate: Date)    var        ThisYearStartDate: Date;        ThisYearEndDate: Date;        LastYearStartDate: Date;        LastYearEndDate: Date;        NextYearStartDate: Date;        NextYearEndDate: Date;    begin        //This Year        ThisYearStartDate := CalcDate('<-CY>', GivenDate);        ThisYearEndDate := CalcDate('<CY>', GivenDate);        //Last Year        LastYearStartDate := CalcDate('<-CY-1Y>', GivenDate);        LastYearEndDate := CalcDate('<CY-1Y>', GivenDate);        //Next Year        NextYearStartDate := CalcDate('<-CY+1Y>', GivenDate);        NextYearEndDate := CalcDate('<CY+1Y>', GivenDate);        Message(YearMsg, ThisYearStartDate, ThisYearEndDate, LastYearStartDate, LastYearEndDate, NextYearStartDate, NextYearEndDate);    end;}

结束

希望这些对你有帮助。

感谢阅读。

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