From ef6aa587e82665a9392cffde45c427497079288d Mon Sep 17 00:00:00 2001
From: zhongyh <1599558112>
Date: Mon, 23 Dec 2019 11:28:58 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B5=8F=E8=A7=88=E8=AE=B0?=
=?UTF-8?q?=E5=BD=95=E6=96=87=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../net/mingsoft/cms/biz/IHistoryLogBiz.java | 14 ++
.../cms/biz/impl/HistoryLogBizImpl.java | 52 ++++++++
.../net/mingsoft/cms/dao/IHistoryLogDao.java | 14 ++
.../net/mingsoft/cms/dao/IHistoryLogDao.xml | 121 ++++++++++++++++++
.../mingsoft/cms/entity/HistoryLogEntity.java | 88 +++++++++++++
.../cms/resources/resources.properties | 7 +
6 files changed, 296 insertions(+)
create mode 100644 src/main/java/net/mingsoft/cms/biz/IHistoryLogBiz.java
create mode 100644 src/main/java/net/mingsoft/cms/biz/impl/HistoryLogBizImpl.java
create mode 100644 src/main/java/net/mingsoft/cms/dao/IHistoryLogDao.java
create mode 100644 src/main/java/net/mingsoft/cms/dao/IHistoryLogDao.xml
create mode 100644 src/main/java/net/mingsoft/cms/entity/HistoryLogEntity.java
create mode 100644 src/main/java/net/mingsoft/cms/resources/resources.properties
diff --git a/src/main/java/net/mingsoft/cms/biz/IHistoryLogBiz.java b/src/main/java/net/mingsoft/cms/biz/IHistoryLogBiz.java
new file mode 100644
index 00000000..eea643da
--- /dev/null
+++ b/src/main/java/net/mingsoft/cms/biz/IHistoryLogBiz.java
@@ -0,0 +1,14 @@
+package net.mingsoft.cms.biz;
+
+import net.mingsoft.base.biz.IBaseBiz;
+
+
+/**
+ * 文章浏览记录业务
+ * @author 铭飞开发团队
+ * 创建日期:2019-12-23 9:24:03
+ * 历史修订:
+ */
+public interface IHistoryLogBiz extends IBaseBiz {
+
+}
\ No newline at end of file
diff --git a/src/main/java/net/mingsoft/cms/biz/impl/HistoryLogBizImpl.java b/src/main/java/net/mingsoft/cms/biz/impl/HistoryLogBizImpl.java
new file mode 100644
index 00000000..628557ee
--- /dev/null
+++ b/src/main/java/net/mingsoft/cms/biz/impl/HistoryLogBizImpl.java
@@ -0,0 +1,52 @@
+/**
+The MIT License (MIT) * Copyright (c) 2019 铭飞科技
+
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of
+ * this software and associated documentation files (the "Software"), to deal in
+ * the Software without restriction, including without limitation the rights to
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+ * the Software, and to permit persons to whom the Software is furnished to do so,
+ * subject to the following conditions:
+
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+ * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+ * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+package net.mingsoft.cms.biz.impl;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import net.mingsoft.base.biz.impl.BaseBizImpl;
+import net.mingsoft.base.dao.IBaseDao;
+import java.util.*;
+import net.mingsoft.cms.entity.HistoryLogEntity;
+import net.mingsoft.cms.biz.IHistoryLogBiz;
+import net.mingsoft.cms.dao.IHistoryLogDao;
+
+/**
+ * 文章浏览记录管理持久化层
+ * @author 铭飞开发团队
+ * 创建日期:2019-12-23 9:24:03
+ * 历史修订:
+ */
+ @Service("cmshistoryLogBizImpl")
+public class HistoryLogBizImpl extends BaseBizImpl implements IHistoryLogBiz {
+
+
+ @Autowired
+ private IHistoryLogDao historyLogDao;
+
+
+ @Override
+ protected IBaseDao getDao() {
+ // TODO Auto-generated method stub
+ return historyLogDao;
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/net/mingsoft/cms/dao/IHistoryLogDao.java b/src/main/java/net/mingsoft/cms/dao/IHistoryLogDao.java
new file mode 100644
index 00000000..2c1f72fd
--- /dev/null
+++ b/src/main/java/net/mingsoft/cms/dao/IHistoryLogDao.java
@@ -0,0 +1,14 @@
+package net.mingsoft.cms.dao;
+
+import net.mingsoft.base.dao.IBaseDao;
+import java.util.*;
+import net.mingsoft.cms.entity.HistoryLogEntity;
+
+/**
+ * 文章浏览记录持久层
+ * @author 铭飞开发团队
+ * 创建日期:2019-12-23 9:24:03
+ * 历史修订:
+ */
+public interface IHistoryLogDao extends IBaseDao {
+}
\ No newline at end of file
diff --git a/src/main/java/net/mingsoft/cms/dao/IHistoryLogDao.xml b/src/main/java/net/mingsoft/cms/dao/IHistoryLogDao.xml
new file mode 100644
index 00000000..f58961a6
--- /dev/null
+++ b/src/main/java/net/mingsoft/cms/dao/IHistoryLogDao.xml
@@ -0,0 +1,121 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ insert into cms_history_log
+
+ content_id,
+ hl_ip,
+ hl_people_id,
+ hl_is_mobile,
+ create_by,
+ create_date,
+ update_by,
+ update_date,
+ del,
+
+
+ #{contentId},
+ #{hlIp},
+ #{hlPeopleId},
+ #{hlIsMobile},
+ #{createBy},
+ #{createDate},
+ #{updateBy},
+ #{updateDate},
+ #{del},
+
+
+
+
+
+ update cms_history_log
+
+ content_id=#{contentId},
+ hl_ip=#{hlIp},
+ hl_people_id=#{hlPeopleId},
+ hl_is_mobile=#{hlIsMobile},
+ create_by=#{createBy},
+ create_date=#{createDate},
+ update_by=#{updateBy},
+ update_date=#{updateDate},
+ del=#{del},
+
+ where id = #{id}
+
+
+
+
+
+
+
+
+
+
+
+ delete from cms_history_log where id=#{id}
+
+
+
+
+ delete from cms_history_log
+
+ id in #{item}
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/java/net/mingsoft/cms/entity/HistoryLogEntity.java b/src/main/java/net/mingsoft/cms/entity/HistoryLogEntity.java
new file mode 100644
index 00000000..afe31b11
--- /dev/null
+++ b/src/main/java/net/mingsoft/cms/entity/HistoryLogEntity.java
@@ -0,0 +1,88 @@
+package net.mingsoft.cms.entity;
+
+import com.alibaba.fastjson.annotation.JSONField;
+import org.springframework.format.annotation.DateTimeFormat;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import net.mingsoft.base.entity.BaseEntity;
+import java.util.Date;
+/**
+* 文章浏览记录实体
+* @author 铭飞开发团队
+* 创建日期:2019-12-23 9:24:03
+* 历史修订:
+*/
+public class HistoryLogEntity extends BaseEntity {
+
+private static final long serialVersionUID = 1577064243576L;
+
+ /**
+ * 文章编号
+ */
+ private String contentId;
+ /**
+ * 浏览ip
+ */
+ private String hlIp;
+ /**
+ * 用户id
+ */
+ private String hlPeopleId;
+ /**
+ * 是否为移动端
+ */
+ private Boolean hlIsMobile;
+
+
+ /**
+ * 设置文章编号
+ */
+ public void setContentId(String contentId) {
+ this.contentId = contentId;
+ }
+
+ /**
+ * 获取文章编号
+ */
+ public String getContentId() {
+ return this.contentId;
+ }
+ /**
+ * 设置浏览ip
+ */
+ public void setHlIp(String hlIp) {
+ this.hlIp = hlIp;
+ }
+
+ /**
+ * 获取浏览ip
+ */
+ public String getHlIp() {
+ return this.hlIp;
+ }
+ /**
+ * 设置用户id
+ */
+ public void setHlPeopleId(String hlPeopleId) {
+ this.hlPeopleId = hlPeopleId;
+ }
+
+ /**
+ * 获取用户id
+ */
+ public String getHlPeopleId() {
+ return this.hlPeopleId;
+ }
+ /**
+ * 设置是否为移动端
+ */
+ public void setHlIsMobile(Boolean hlIsMobile) {
+ this.hlIsMobile = hlIsMobile;
+ }
+
+ /**
+ * 获取是否为移动端
+ */
+ public Boolean getHlIsMobile() {
+ return this.hlIsMobile;
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/net/mingsoft/cms/resources/resources.properties b/src/main/java/net/mingsoft/cms/resources/resources.properties
new file mode 100644
index 00000000..fcdcae2b
--- /dev/null
+++ b/src/main/java/net/mingsoft/cms/resources/resources.properties
@@ -0,0 +1,7 @@
+#
+#Mon Dec 23 09:24:03 CST 2019
+content.id=\u6587\u7AE0\u7F16\u53F7
+hl.ip=\u6D4F\u89C8ip
+hl.people.id=\u7528\u6237id
+hl.is.mobile=\u662F\u5426\u4E3A\u79FB\u52A8\u7AEF
+id=\u7F16\u53F7