|
|
|
@ -52,7 +52,7 @@ public class NoSqlPack {
|
|
|
|
|
public static Bson packMongoBySysLogException(SysLogException sysLogException) {
|
|
|
|
|
Bson bson = new BasicDBObject();
|
|
|
|
|
|
|
|
|
|
bson = BsonPackTool.getNumEqualPack(sysLogException.getExcModule(), "excModule", bson);
|
|
|
|
|
bson = BsonPackTool.getNumEqualPack(sysLogException.getSoftType(), "softType", bson);
|
|
|
|
|
bson = BsonPackTool.getStringLikerPack(sysLogException.getExcMessage(), "excMessage", bson);
|
|
|
|
|
bson = BsonPackTool.timeBuilder("createDatetime", bson, sysLogException.getCreateDateTimeStart(),sysLogException.getCreateDateTimeEnd());
|
|
|
|
|
|
|
|
|
@ -62,7 +62,7 @@ public class NoSqlPack {
|
|
|
|
|
public static ElasticSearchPack packEsSysLogException(SysLogException bean) {
|
|
|
|
|
ElasticSearchPack result = packElasticSearchPack(bean);
|
|
|
|
|
|
|
|
|
|
result.andTextEquals("excModule",bean.getExcModule());
|
|
|
|
|
result.andNumberEquals("softType",bean.getSoftType());
|
|
|
|
|
result.andKeywordLike("excMessage",bean.getExcMessage());
|
|
|
|
|
result.andKeywordDateTimeBetween("createDatetime",bean.getCreateDateTimeStart(),bean.getCreateDateTimeEnd());
|
|
|
|
|
|
|
|
|
@ -80,7 +80,7 @@ public class NoSqlPack {
|
|
|
|
|
|
|
|
|
|
bson = BsonPackTool.getNumEqualPack(logOperate.getId(), "id", bson);
|
|
|
|
|
bson = BsonPackTool.getNumEqualPack(logOperate.getOperateType(), "operateType", bson);
|
|
|
|
|
bson = BsonPackTool.getNumEqualPack(logOperate.getOperateModule(), "operateModule", bson);
|
|
|
|
|
bson = BsonPackTool.getNumEqualPack(logOperate.getSoftType(), "softType", bson);
|
|
|
|
|
bson = BsonPackTool.timeBuilder("createDatetime", bson, logOperate.getCreateDateTimeStart(),logOperate.getCreateDateTimeEnd());
|
|
|
|
|
bson = BsonPackTool.getStringLikerPack(logOperate.getRemoteIp(), "remoteIp", bson);
|
|
|
|
|
bson = BsonPackTool.getStringLikerPack(logOperate.getOperateMessage(), "operateMessage", bson);
|
|
|
|
@ -94,7 +94,7 @@ public class NoSqlPack {
|
|
|
|
|
|
|
|
|
|
result.andKeywordEquals("id",bean.getId());
|
|
|
|
|
result.andKeywordEquals("operateType",bean.getOperateType());
|
|
|
|
|
result.andKeywordEquals("operateModule",bean.getOperateModule());
|
|
|
|
|
result.andNumberEquals("softType",bean.getSoftType());
|
|
|
|
|
result.andStringEquals("remoteIp",bean.getRemoteIp());
|
|
|
|
|
result.andStringEquals("createUser",bean.getCreateUser());
|
|
|
|
|
result.andStringLike("operateMessage",bean.getOperateMessage());
|
|
|
|
@ -114,7 +114,7 @@ public class NoSqlPack {
|
|
|
|
|
|
|
|
|
|
bson = BsonPackTool.getNumEqualPack(logSystem.getId(), "id", bson);
|
|
|
|
|
bson = BsonPackTool.getNumEqualPack(logSystem.getLogLevel(), "logLevel", bson);
|
|
|
|
|
bson = BsonPackTool.getNumEqualPack(logSystem.getLogModuleId(), "logModuleId", bson);
|
|
|
|
|
bson = BsonPackTool.getNumEqualPack(logSystem.getSoftType(), "softType", bson);
|
|
|
|
|
bson = BsonPackTool.timeBuilder("createDatetime", bson, logSystem.getCreateDateTimeStart(),logSystem.getCreateDateTimeEnd());
|
|
|
|
|
bson = BsonPackTool.getStringLikerPack(logSystem.getRemoteIp(), "remoteIp", bson);
|
|
|
|
|
bson = BsonPackTool.getStringLikerPack(logSystem.getRequestUrl(), "requestUrl", bson);
|
|
|
|
@ -128,7 +128,7 @@ public class NoSqlPack {
|
|
|
|
|
|
|
|
|
|
result.andTextEquals("id",bean.getId());
|
|
|
|
|
result.andTextEquals("logLevel",bean.getLogLevel());
|
|
|
|
|
result.andTextEquals("logModuleId",bean.getLogModuleId());
|
|
|
|
|
result.andNumberEquals("softType",bean.getSoftType());
|
|
|
|
|
result.andStringEquals("remoteIp",bean.getRemoteIp());
|
|
|
|
|
result.andTextLike("requestUrl",bean.getRequestUrl());
|
|
|
|
|
result.andKeywordDateTimeBetween("createDatetime",bean.getCreateDateTimeStart(),bean.getCreateDateTimeEnd());
|
|
|
|
@ -168,7 +168,7 @@ public class NoSqlPack {
|
|
|
|
|
public static ElasticSearchPack packEsSysLogConsole(SysLogConsole bean) {
|
|
|
|
|
ElasticSearchPack result = packElasticSearchPack(bean);
|
|
|
|
|
|
|
|
|
|
result.andStringEquals("softType",bean.getSoftType());
|
|
|
|
|
result.andNumberEquals("softType",bean.getSoftType());
|
|
|
|
|
result.andStringLeftLike("logHost",bean.getLogHost());
|
|
|
|
|
result.andStringLike("userLoginName",bean.getUserLoginName());
|
|
|
|
|
result.andStringEquals("logLevel",bean.getLogLevel());
|
|
|
|
|