# Conflicts:
#	modules/impp-framework-boot/src/main/java/cn/estsh/impp/framework/boot/aspect/LogServiceAspect.java
yun-zuoyi
yunhao.wang 7 years ago
parent 963c01c93b
commit 4421ab69ef

@ -24,9 +24,9 @@ import javax.persistence.Table;
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name="SYS_EXCEPTION")
@Table(name="SYS_LOG_EXCEPTION")
@Api(value="系统异常表",description = "记录系统出现的异常")
public class SysException extends BaseBean {
public class SysLogException extends BaseBean {
//CommonEnumUtil.SOFT_TYPE
@Column(name="EXC_MODULE_ID")

@ -1,7 +1,7 @@
package cn.estsh.i3plus.pojo.platform.repositorymongo;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseMongoRepository;
import cn.estsh.i3plus.pojo.platform.bean.SysException;
import cn.estsh.i3plus.pojo.platform.bean.SysLogException;
/**
* @Description : (使Mongodb)
@ -10,5 +10,5 @@ import cn.estsh.i3plus.pojo.platform.bean.SysException;
* @Date : 2018-11-8 12:03:00
* @Modify :
**/
public interface SysExceptionRepository extends BaseMongoRepository<SysException, Long> {
public interface SysLogExceptionRepository extends BaseMongoRepository<SysLogException, Long> {
}

@ -1,6 +1,7 @@
package cn.estsh.i3plus.pojo.platform.sqlpack;
import cn.estsh.i3plus.pojo.base.tool.BsonPackTool;
import cn.estsh.i3plus.pojo.platform.bean.SysLogException;
import cn.estsh.i3plus.pojo.platform.bean.SysLogOperate;
import cn.estsh.i3plus.pojo.platform.bean.SysLogSystem;
import com.mongodb.BasicDBObject;
@ -33,6 +34,11 @@ public class CoreBsonPack {
return bson;
}
/**
*
* @param logOperate
* @return
*/
public static Bson packBsonByLogOperate(SysLogOperate logOperate){
Bson bson = new BasicDBObject();
@ -43,4 +49,19 @@ public class CoreBsonPack {
return bson;
}
/**
*
* @param sysLogException
* @return
*/
public static Bson packBsonBySysLogException(SysLogException sysLogException){
Bson bson = new BasicDBObject();
bson = BsonPackTool.getNumEqualPack(sysLogException.getExcModule(),"excModule",bson);
bson = BsonPackTool.getStringLikerPack(sysLogException.getExcClassName(),"excClassName",bson);
bson = BsonPackTool.timeBuilder(sysLogException.getCreateDatetime(),"createDatetime",bson,false,false);
return bson;
}
}

Loading…
Cancel
Save