优化数据库连接关闭打开插入已阅代码

This commit is contained in:
zhal 2023-10-30 14:42:40 +08:00
parent d571cad4a3
commit 935a169cb0

View File

@ -745,12 +745,11 @@ public class TaskController {
}
// 用户打开阅览界面日志
//setUserLog(processInstId, me.getUID(), "3");
setUserLog(processInstId, me.getUID(), "3",conn);
long have_time = System.currentTimeMillis();
System.out.println("com.yili_process_page耗时时间>>>>>>>>>>>>"+(have_time-start_time)/ 1000 + "");
DBSql.close(conn);
// }
} catch (Exception e) {
e.printStackTrace();
@ -1446,7 +1445,7 @@ public class TaskController {
}
System.out.println("插入待阅日志开始========================");
// 用户打开阅览界面日志
//setUserLog(processInstId, me.getUID(), "3");
setUserLog(processInstId, me.getUID(), "3",conn);
System.out.println("插入待阅日志结束========================");
/*
* 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 +
* "' where PROCESSID = '" + processInstId + "'"); }
*/
DBSql.close(conn);
} catch (Exception e) {
e.printStackTrace();
} finally {