老师,还是要您帮忙看看。
刚还以为是日期函数的原因,修正后还是报这个错误错误代码:130000218
报告: '未命名-120240618135847-1610' 数据集: '售后利润报表' 组件: '图表1' 执行用户: 'admin'
异常: 执行SampleQuery失败,原因是报告: '未命名-120240618135847-1610' 数据集: '售后利润报表' 组件: '图表1' 执行用户: 'admin'
原因: 执行SQL失败:“VooltDB exception, code: 43, host: 127.0.0.1, port: 8749; Code: 43. DB::Exception: Second argument for function dateDiff must be Date, Date32, DateTime or DateTime64: While processing `维修工单号`, `工单状态`, `创建时间`, `利润生成时间`, `到店时间`, `派工时间`, `上工时间`, `自检时间`, `互检时间`, `终检时间`, `维修完成时间`, `结算申请时间`, `收款时间`, `开票时间`, `收款状态`, `反结算时间`, `网点编码`, `网点名称`, `网点类别`, `网点所属区域`, `省份`, `城市`, `维修技师`, `服务代表名称`, `VIN码`, `车牌号`, `订单标签`, `车主姓名`, `送修人姓名`, `车系名称`, `车型名称`, `行驶里程`, `增程器里程`, `实际里程`, `项目类别`, `项目编码`, `项目内容`, `出库关联单号`, `是否特殊备件`, `维修类型`, `付费类型`, `维修项目状态`, `结算审核通过日期`, `结算完成日期`, `收款完成日期`, `反审核时间`, `应收费用`, `委外成本`, `实收费用`, `含税成本总金额`, `权益鉴定单状态`, `权益单号`, `权益编码`, `权益名称`, `结算单号`, `权益结算费用`, `保修鉴定单状态`, `保修鉴定单号`, `服务活动编码`, `服务活动名称`, `结算单号0`, `保修结算费用`, `财务收款流水号`, `实收费用` / `应收费用`, (`实收费用` - `委外成本`) - `含税成本总金额`, ((`实收费用` - `委外成本`) - `含税成本总金额`) / `实收费用`, dateDiff('hour', `到店时间`, `结算审核通过日期`), dateDiff('hour', `上工时间`, `终检时间`). (ILLEGAL_TYPE_OF_ARGUMENT) (version 22.8.5.4)
”
at g5.gqry.SampleQry.transform(SampleQry.java:241)
at g5.db.RTDashboard.transform(RTDashboard.java:5408)
at g5.db.qry.EQuery.getQuery0(EQuery.java:721)
at g5.db.qry.DataEQuery.getQuery0(DataEQuery.java:70)
at g5.db.qry.EQuery.getQuery(EQuery.java:665)
at g5.db.qry.EQuery.getQuery(EQuery.java:658)
at g5.sv.db.req.HandleBindReq.createBindDTModel(HandleBindReq.java:119)
at g5.sv.db.req.HandleBindReq.createBindDTModel(HandleBindReq.java:385)
at g5.sv.db.req.HandleBindReq.build(HandleBindReq.java:497)
at g5.sv.db.req.HandleBindReq.refreshQInfo(HandleBindReq.java:2486)
at g5.sv.db.req.HandleBindReq.postProcess(HandleBindReq.java:2340)
at g5.sv.db.req.HandleElemReq.setProperties(HandleElemReq.java:455)
at g5.sv.db.req.HandleElemReq.setProperties(HandleElemReq.java:207)
at g5.sv.db.req.HandleElemReq.process0(HandleElemReq.java:133)
at g5.sv.db.req.HandleBindReq.process0(HandleBindReq.java:485)
at g5.sv.Req.process(Req.java:57)
at g5.sv.db.DBServiceImpl.process(DBServiceImpl.java:1380)
at g5.sv.db.DBProc.procReq(DBProc.java:1770)
at g5.sv.db.DBProc.service(DBProc.java:140)
at g5.sv.ServletHelper.service(ServletHelper.java:133)
at g5.sv.PortalServlet.service(PortalServlet.java:1551)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder$NotAsyncServlet.service(ServletHolder.java:1391)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:760)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1617)
at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:226)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:545)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:536)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1589)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1296)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:485)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1559)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1211)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:221)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at org.eclipse.jetty.server.Server.handle(Server.java:500)
at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:386)
at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:560)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:378)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:268)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:782)
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:914)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: 异常: 报告: '未命名-120240618135847-1610' 数据集: '售后利润报表' 组件: '图表1' 执行用户: 'admin'
原因: 执行SQL失败:“VooltDB exception, code: 43, host: 127.0.0.1, port: 8749; Code: 43. DB::Exception: Second argument for function dateDiff must be Date, Date32, DateTime or DateTime64: While processing `维修工单号`, `工单状态`, `创建时间`, `利润生成时间`, `到店时间`, `派工时间`, `上工时间`, `自检时间`, `互检时间`, `终检时间`, `维修完成时间`, `结算申请时间`, `收款时间`, `开票时间`, `收款状态`, `反结算时间`, `网点编码`, `网点名称`, `网点类别`, `网点所属区域`, `省份`, `城市`, `维修技师`, `服务代表名称`, `VIN码`, `车牌号`, `订单标签`, `车主姓名`, `送修人姓名`, `车系名称`, `车型名称`, `行驶里程`, `增程器里程`, `实际里程`, `项目类别`, `项目编码`, `项目内容`, `出库关联单号`, `是否特殊备件`, `维修类型`, `付费类型`, `维修项目状态`, `结算审核通过日期`, `结算完成日期`, `收款完成日期`, `反审核时间`, `应收费用`, `委外成本`, `实收费用`, `含税成本总金额`, `权益鉴定单状态`, `权益单号`, `权益编码`, `权益名称`, `结算单号`, `权益结算费用`, `保修鉴定单状态`, `保修鉴定单号`, `服务活动编码`, `服务活动名称`, `结算单号0`, `保修结算费用`, `财务收款流水号`, `实收费用` / `应收费用`, (`实收费用` - `委外成本`) - `含税成本总金额`, ((`实收费用` - `委外成本`) - `含税成本总金额`) / `实收费用`, dateDiff('hour', `到店时间`, `结算审核通过日期`), dateDiff('hour', `上工时间`, `终检时间`). (ILLEGAL_TYPE_OF_ARGUMENT) (version 22.8.5.4)
”
at g5.thread.ThreadUtil.getExceptionWarningEx(ThreadUtil.java:170)
at g5.qry.queryPool.QueryRunnable.run(QueryRunnable.java:92)
at g5.thread.ThreadPoolWithChecker$GThread.run0(ThreadPoolWithChecker.java:249)
at g5.thread.AbsThreadPool$PThread.run(AbsThreadPool.java:333)
|