| @@ -103,12 +103,12 @@ public class SystemLogAspect { | |||
| String remark = joinPoint.getTarget().getClass().getName() + "." + joinPoint.getSignature().getName(); | |||
| SystemLogEntity systemlog = new SystemLogEntity(); | |||
| log.info("浏览器:{}", userAgent.getBrowser().toString()); | |||
| //log.info("浏览器:{}", userAgent.getBrowser().toString()); | |||
| systemlog.setUser_browser(userAgent.getBrowser().toString()); | |||
| log.info("浏览器版本:{}", userAgent.getBrowserVersion()); | |||
| //log.info("浏览器版本:{}", userAgent.getBrowserVersion()); | |||
| systemlog.setUser_browser_version(userAgent.getBrowserVersion().getVersion()); | |||
| log.info("操作系统: {}", userAgent.getOperatingSystem().toString()); | |||
| // log.info("操作系统: {}", userAgent.getOperatingSystem().toString()); | |||
| systemlog.setOperatingSystem(userAgent.getOperatingSystem().toString()); | |||
| systemlog.setUser_id(id); | |||
| systemlog.setUsername(username); | |||
| @@ -14,5 +14,96 @@ public class DatafavoriteEntity { | |||
| private Long projectid; | |||
| private Long groupid; | |||
| private String source_name; | |||
| public int getId() { | |||
| return id; | |||
| } | |||
| public void setId(int id) { | |||
| this.id = id; | |||
| } | |||
| public String getTitle() { | |||
| return title; | |||
| } | |||
| public void setTitle(String title) { | |||
| this.title = title; | |||
| } | |||
| public String getArticle_public_id() { | |||
| return article_public_id; | |||
| } | |||
| public void setArticle_public_id(String article_public_id) { | |||
| this.article_public_id = article_public_id; | |||
| } | |||
| public String getPublish_time() { | |||
| return publish_time; | |||
| } | |||
| public void setPublish_time(String publish_time) { | |||
| this.publish_time = publish_time; | |||
| } | |||
| public Long getUser_id() { | |||
| return user_id; | |||
| } | |||
| public void setUser_id(Long user_id) { | |||
| this.user_id = user_id; | |||
| } | |||
| public String getFavoritetime() { | |||
| return favoritetime; | |||
| } | |||
| public void setFavoritetime(String favoritetime) { | |||
| this.favoritetime = favoritetime; | |||
| } | |||
| public int getStatus() { | |||
| return status; | |||
| } | |||
| public void setStatus(int status) { | |||
| this.status = status; | |||
| } | |||
| public int getEmotionalIndex() { | |||
| return emotionalIndex; | |||
| } | |||
| public void setEmotionalIndex(int emotionalIndex) { | |||
| this.emotionalIndex = emotionalIndex; | |||
| } | |||
| public Long getProjectid() { | |||
| return projectid; | |||
| } | |||
| public void setProjectid(Long projectid) { | |||
| this.projectid = projectid; | |||
| } | |||
| public Long getGroupid() { | |||
| return groupid; | |||
| } | |||
| public void setGroupid(Long groupid) { | |||
| this.groupid = groupid; | |||
| } | |||
| public String getSource_name() { | |||
| return source_name; | |||
| } | |||
| public void setSource_name(String source_name) { | |||
| this.source_name = source_name; | |||
| } | |||
| public DatafavoriteEntity(int id, String title, String article_public_id, String publish_time, Long user_id, | |||
| String favoritetime, int status, int emotionalIndex, Long projectid, Long groupid, String source_name) { | |||
| super(); | |||
| this.id = id; | |||
| this.title = title; | |||
| this.article_public_id = article_public_id; | |||
| this.publish_time = publish_time; | |||
| this.user_id = user_id; | |||
| this.favoritetime = favoritetime; | |||
| this.status = status; | |||
| this.emotionalIndex = emotionalIndex; | |||
| this.projectid = projectid; | |||
| this.groupid = groupid; | |||
| this.source_name = source_name; | |||
| } | |||
| public DatafavoriteEntity() { | |||
| super(); | |||
| // TODO Auto-generated constructor stub | |||
| } | |||
| } | |||
| @@ -16,6 +16,97 @@ public class SystemLogEntity { | |||
| private String submodule;//子模块 | |||
| private String type;//类型 | |||
| private String createtime;//创建时间 | |||
| public int getId() { | |||
| return id; | |||
| } | |||
| public void setId(int id) { | |||
| this.id = id; | |||
| } | |||
| public String getUser_browser() { | |||
| return user_browser; | |||
| } | |||
| public void setUser_browser(String user_browser) { | |||
| this.user_browser = user_browser; | |||
| } | |||
| public Integer getUser_id() { | |||
| return user_id; | |||
| } | |||
| public void setUser_id(Integer user_id) { | |||
| this.user_id = user_id; | |||
| } | |||
| public String getUser_browser_version() { | |||
| return user_browser_version; | |||
| } | |||
| public void setUser_browser_version(String user_browser_version) { | |||
| this.user_browser_version = user_browser_version; | |||
| } | |||
| public String getOperatingSystem() { | |||
| return operatingSystem; | |||
| } | |||
| public void setOperatingSystem(String operatingSystem) { | |||
| this.operatingSystem = operatingSystem; | |||
| } | |||
| public String getUsername() { | |||
| return username; | |||
| } | |||
| public void setUsername(String username) { | |||
| this.username = username; | |||
| } | |||
| public String getLoginip() { | |||
| return loginip; | |||
| } | |||
| public void setLoginip(String loginip) { | |||
| this.loginip = loginip; | |||
| } | |||
| public String getModule() { | |||
| return module; | |||
| } | |||
| public void setModule(String module) { | |||
| this.module = module; | |||
| } | |||
| public String getSubmodule() { | |||
| return submodule; | |||
| } | |||
| public void setSubmodule(String submodule) { | |||
| this.submodule = submodule; | |||
| } | |||
| public String getType() { | |||
| return type; | |||
| } | |||
| public void setType(String type) { | |||
| this.type = type; | |||
| } | |||
| public String getCreatetime() { | |||
| return createtime; | |||
| } | |||
| public void setCreatetime(String createtime) { | |||
| this.createtime = createtime; | |||
| } | |||
| public SystemLogEntity(int id, String user_browser, Integer user_id, String user_browser_version, | |||
| String operatingSystem, String username, String loginip, String module, String submodule, String type, | |||
| String createtime) { | |||
| super(); | |||
| this.id = id; | |||
| this.user_browser = user_browser; | |||
| this.user_id = user_id; | |||
| this.user_browser_version = user_browser_version; | |||
| this.operatingSystem = operatingSystem; | |||
| this.username = username; | |||
| this.loginip = loginip; | |||
| this.module = module; | |||
| this.submodule = submodule; | |||
| this.type = type; | |||
| this.createtime = createtime; | |||
| } | |||
| public SystemLogEntity() { | |||
| super(); | |||
| // TODO Auto-generated constructor stub | |||
| } | |||