优化数据库连接关闭打开插入已阅代码
This commit is contained in:
parent
d571cad4a3
commit
935a169cb0
@ -745,12 +745,11 @@ public class TaskController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 用户打开阅览界面日志
|
// 用户打开阅览界面日志
|
||||||
//setUserLog(processInstId, me.getUID(), "3");
|
setUserLog(processInstId, me.getUID(), "3",conn);
|
||||||
|
|
||||||
long have_time = System.currentTimeMillis();
|
long have_time = System.currentTimeMillis();
|
||||||
|
|
||||||
System.out.println("com.yili_process_page耗时时间>>>>>>>>>>>>"+(have_time-start_time)/ 1000 + "秒");
|
System.out.println("com.yili_process_page耗时时间>>>>>>>>>>>>"+(have_time-start_time)/ 1000 + "秒");
|
||||||
DBSql.close(conn);
|
|
||||||
// }
|
// }
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -1446,7 +1445,7 @@ public class TaskController {
|
|||||||
}
|
}
|
||||||
System.out.println("插入待阅日志开始========================");
|
System.out.println("插入待阅日志开始========================");
|
||||||
// 用户打开阅览界面日志
|
// 用户打开阅览界面日志
|
||||||
//setUserLog(processInstId, me.getUID(), "3");
|
setUserLog(processInstId, me.getUID(), "3",conn);
|
||||||
System.out.println("插入待阅日志结束========================");
|
System.out.println("插入待阅日志结束========================");
|
||||||
/*
|
/*
|
||||||
* JSONObject jsonObject = new JSONObject(); SimpleDateFormat sdf = new
|
* JSONObject jsonObject = new JSONObject(); SimpleDateFormat sdf = new
|
||||||
@ -1491,7 +1490,6 @@ public class TaskController {
|
|||||||
* DBSql.update("update BO_EU_PAL_READ_LOG set READNUM = '" + read_num +
|
* DBSql.update("update BO_EU_PAL_READ_LOG set READNUM = '" + read_num +
|
||||||
* "' where PROCESSID = '" + processInstId + "'"); }
|
* "' where PROCESSID = '" + processInstId + "'"); }
|
||||||
*/
|
*/
|
||||||
DBSql.close(conn);
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user