调用方式
private List<NutMap> executeSql(Sql sql) {
sql.setCallback(Sqls.callback.maps());
baseService.dao().execute(sql);
return sql.getList(NutMap.class);
}
以下为日志
07-22 15:54:05.673 DEBUG - [Connection.http-apr-8081-exec-2] {conn-10010} pool-connect
07-22 15:54:05.673 DEBUG - [NutDaoExecutor.http-apr-8081-exec-2] select virusName, occurTimes, inHostNum from lastMonthNewVirusSum order by occurTimes desc
07-22 15:54:05.673 DEBUG - [Statement.http-apr-8081-exec-2] {conn-10010, stmt-20092} created
07-22 15:54:05.695 DEBUG - [Statement.http-apr-8081-exec-2] {conn-10010, stmt-20092, rs-50082} query executed. 20.887336 millis. select virusName, occurTimes, inHostNum from lastMonthNewVirusSum order by occurTimes desc
07-22 15:54:05.695 DEBUG - [ResultSet.http-apr-8081-exec-2] {conn-10010, stmt-20092, rs-50082} open
07-22 15:54:05.695 DEBUG - [ResultSet.http-apr-8081-exec-2] {conn-10010, stmt-20092, rs-50082} Header: [virusname, occurtimes, inhostnum]
07-22 15:54:05.695 DEBUG - [ResultSet.http-apr-8081-exec-2] {conn-10010, stmt-20092, rs-50082} Result: [virus.DD, 1, 1]
07-22 15:54:05.695 DEBUG - [ResultSet.http-apr-8081-exec-2] {conn-10010, stmt-20092, rs-50082} closed
07-22 15:54:05.695 DEBUG - [Statement.http-apr-8081-exec-2] {conn-10010, stmt-20092} closed
07-22 15:54:05.695 DEBUG - [Connection.http-apr-8081-exec-2] {conn-10010} pool-recycle
listA---------------->[{virusname=virus.DD, occurtimes=1, inhostnum=1}]
07-22 15:54:05.696 DEBUG - [Connection.http-apr-8081-exec-2] {conn-10010} pool-connect
07-22 15:54:05.696 DEBUG - [NutDaoExecutor.http-apr-8081-exec-2] select virusName, discoveryTime, deptName, deviceName, owner, ip, fullFileName, result, doWithInfo from lastMonthNewVirus order by virusName
07-22 15:54:05.696 DEBUG - [Statement.http-apr-8081-exec-2] {conn-10010, stmt-20093} created
07-22 15:54:05.699 DEBUG - [Statement.http-apr-8081-exec-2] {conn-10010, stmt-20093, rs-50083} query executed. 2.642631 millis. select virusName, discoveryTime, deptName, deviceName, owner, ip, fullFileName, result, doWithInfo from lastMonthNewVirus order by virusName
07-22 15:54:05.699 DEBUG - [ResultSet.http-apr-8081-exec-2] {conn-10010, stmt-20093, rs-50083} open
07-22 15:54:05.699 DEBUG - [ResultSet.http-apr-8081-exec-2] {conn-10010, stmt-20093, rs-50083} Header: [virusname, discoverytime, deptname, devicename, owner, ip, fullfilename, result, dowithinfo]
07-22 15:54:05.700 DEBUG - [ResultSet.http-apr-8081-exec-2] {conn-10010, stmt-20093, rs-50083} Result: [virus.DD, 2020-07-10 16:09:22.0, 党政办, D2111111, 党住你, 88.99.10.10, C:\new\new\创新改变世界.rar, 成功, null]
07-22 15:54:05.700 DEBUG - [ResultSet.http-apr-8081-exec-2] {conn-10010, stmt-20093, rs-50083} closed
07-22 15:54:05.701 DEBUG - [Statement.http-apr-8081-exec-2] {conn-10010, stmt-20093} closed
07-22 15:54:05.701 DEBUG - [Connection.http-apr-8081-exec-2] {conn-10010} pool-recycle
07-22 15:54:05.701 DEBUG - [Connection.http-apr-8081-exec-2] {conn-10010} pool-connect
07-22 15:54:05.701 DEBUG - [NutDaoExecutor.http-apr-8081-exec-2] select virusName, occurTimes, inHostNum, firstDiscoveryTime from lastMonthOldVirusSum order by occurTimes desc
07-22 15:54:05.701 DEBUG - [Statement.http-apr-8081-exec-2] {conn-10010, stmt-20094} created
07-22 15:54:05.708 DEBUG - [Statement.http-apr-8081-exec-2] {conn-10010, stmt-20094, rs-50084} query executed. 7.083828 millis. select virusName, occurTimes, inHostNum, firstDiscoveryTime from lastMonthOldVirusSum order by occurTimes desc
07-22 15:54:05.708 DEBUG - [ResultSet.http-apr-8081-exec-2] {conn-10010, stmt-20094, rs-50084} open
07-22 15:54:05.709 DEBUG - [ResultSet.http-apr-8081-exec-2] {conn-10010, stmt-20094, rs-50084} Header: [virusname, occurtimes, inhostnum, firstdiscoverytime]
07-22 15:54:05.709 DEBUG - [ResultSet.http-apr-8081-exec-2] {conn-10010, stmt-20094, rs-50084} Result: [hacker.EE, 1, 1, 2020-06-01 12:15:41.0]
07-22 15:54:05.709 DEBUG - [ResultSet.http-apr-8081-exec-2] {conn-10010, stmt-20094, rs-50084} Result: [trojan.AA, 1, 1, 2020-06-08 16:02:27.0]
07-22 15:54:05.709 DEBUG - [ResultSet.http-apr-8081-exec-2] {conn-10010, stmt-20094, rs-50084} closed
07-22 15:54:05.710 DEBUG - [Statement.http-apr-8081-exec-2] {conn-10010, stmt-20094} closed
07-22 15:54:05.710 DEBUG - [Connection.http-apr-8081-exec-2] {conn-10010} pool-recycle
listA1---------------->[{virusName=hacker.EE, occurTimes=1, inHostNum=1, firstDiscoveryTime=2020-06-01 12:15:41.0}, {virusName=trojan.AA, occurTimes=1, inHostNum=1, firstDiscoveryTime=2020-06-08 16:02:27.0}]
为什么有的大写,有的小写,语句方面我都是一样的写法,小写开头,遇到单词就驼峰