天翎MyApps技术社区 - 低代码平台 | 流程管理系统 | BPM软件

 找回密码
 注册成为天翎用户
查看: 775|回复: 5

[已解决] 首页显示问题

[复制链接]
金中软件 发表于 2013-9-29 17:19:00 | 显示全部楼层 |阅读模式
本帖最后由 bobo 于 2013-9-29 18:09 编辑


首页的脚本如下:
.......
style="clear:both">
<div id="menu_07_D1_1" style="padding:10px">
                <li style="border-bottom:1px #ccc dashed;margin-bottom:10px">
                        <img src="images/01.gif" alt="" width="16" height="16" />
                        <strong>超期未执行的计划</strong>:<br />
                        维修计划:<span style="font-size:16px; font-weight:bold; color:#FF0000"><%
           String applicationid="11e3-06d7-d027a08d-8238-ed5be03a8cb7";
           DocumentProcess process = null;
           process = (DocumentProcess) DocumentProcessBean.createMonitoProcess(applicationid);
           String sql = "select * from tlk_kf_maintenance_plan where Item_plan_type like '%维修%' and Item_plan_state like '%有效%' and convert(char(10),Item_next_maintenance,120)< convert(char(10),GETDATE(),120);";
           WebUser user = (WebUser) session.getAttribute("FRONT_USER");   //获取前台登陆用户的session,返回的是一个用户对象, FRONT_USER前台登录用户键名
           String domainid = user.getDomainid();   //获取前台用户session中存储的domainid.
                   System.out.println("domainid=="+domainid);
           //long count = process.countBySQL(sql,domainid);
          // int rowCount = (int)count;
                   System.out.println("rowCount=="+rowCount);
               %>
                   <%=rowCount%></span> 项   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 保养计划:
                        <span style="font-size:16px; font-weight:bold; color:#FF0000">3</span> 项
                </li>
.....

如果不将下列两句注释的话,首页报错,请问是什么原因?
//long count = process.countBySQL(sql,domainid);
          // int rowCount = (int)count;
 楼主| 金中软件 发表于 2013-9-29 17:24:09 | 显示全部楼层
123.jpg
kimi 发表于 2013-9-29 17:29:00 | 显示全部楼层
您好:麻烦您把注释掉的2段代码改为int rowCount=process.countBySQL(sql,domainid); 看是否还有问题,如果有问题麻烦您加下我Q:972284703,我远程帮您看下。
 楼主| 金中软件 发表于 2013-9-29 18:08:38 | 显示全部楼层
通过远程协助已解决问题,可闭帖
bobo 发表于 2013-9-29 18:09:27 | 显示全部楼层
本帖最后由 bobo 于 2013-10-10 22:38 编辑

嗯,好的,感谢您的反馈!帖子关闭!
通过远程发现是客户sql语句的问题。

本版积分规则

QQ|手机版|天翎MyApps技术社区 ( 粤ICP备11093750号 )

GMT+8, 2026-8-13 05:25

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表