Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
MCMS
Commits
09ee994b
Commit
09ee994b
authored
Nov 14, 2022
by
mingsoft
Browse files
up::5.2.10
Signed-off-by:
mingsoft
<
killfen@126.com
>
parent
c86c7b92
Changes
23
Show whitespace changes
Inline
Side-by-side
pom.xml
View file @
09ee994b
...
@@ -10,14 +10,14 @@
...
@@ -10,14 +10,14 @@
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
net.mingsoft
</groupId>
<groupId>
net.mingsoft
</groupId>
<artifactId>
ms-mcms
</artifactId>
<artifactId>
ms-mcms
</artifactId>
<version>
5.2.
9
</version>
<version>
5.2.
10
</version>
<name>
${project.groupId}:${project.artifactId}
</name>
<name>
${project.groupId}:${project.artifactId}
</name>
<!-- 打包war包,注意不启用(resources》resource》excludes的配置并注释掉maven-assembly-plugin 插件配置 -->
<!-- 打包war包,注意不启用(resources》resource》excludes的配置并注释掉maven-assembly-plugin 插件配置 -->
<!--<packaging>war</packaging>-->
<!--<packaging>war</packaging>-->
<properties>
<properties>
<java.version>
1.8
</java.version>
<java.version>
1.8
</java.version>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<log4j.version>
2.1
8
.0
</log4j.version>
<log4j.version>
2.1
9
.0
</log4j.version>
</properties>
</properties>
<repositories>
<repositories>
<repository>
<repository>
...
@@ -44,24 +44,24 @@
...
@@ -44,24 +44,24 @@
<dependency>
<dependency>
<groupId>
net.mingsoft
</groupId>
<groupId>
net.mingsoft
</groupId>
<artifactId>
ms-base
</artifactId>
<artifactId>
ms-base
</artifactId>
<version>
2.1.1
4.1
</version>
<version>
2.1.1
5
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
net.mingsoft
</groupId>
<groupId>
net.mingsoft
</groupId>
<artifactId>
ms-basic
</artifactId>
<artifactId>
ms-basic
</artifactId>
<version>
2.1.1
4.1
</version>
<version>
2.1.1
5
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
net.mingsoft
</groupId>
<groupId>
net.mingsoft
</groupId>
<artifactId>
ms-mdiy
</artifactId>
<artifactId>
ms-mdiy
</artifactId>
<version>
2.1.1
4.1
</version>
<version>
2.1.1
5
</version>
</dependency>
</dependency>
<!--store入口依赖(源码不开发),如果不需要MStore可以直接去掉依赖-->
<!--store入口依赖(源码不开发),如果不需要MStore可以直接去掉依赖-->
<dependency>
<dependency>
<groupId>
net.mingsoft
</groupId>
<groupId>
net.mingsoft
</groupId>
<artifactId>
store-client
</artifactId>
<artifactId>
store-client
</artifactId>
<version>
2.1.1
4
</version>
<version>
2.1.1
5
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.github.oshi
</groupId>
<groupId>
com.github.oshi
</groupId>
...
...
src/main/java/net/mingsoft/MSApplication.java
View file @
09ee994b
...
@@ -25,12 +25,6 @@ import org.mybatis.spring.annotation.MapperScan;
...
@@ -25,12 +25,6 @@ import org.mybatis.spring.annotation.MapperScan;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.web.servlet.ServletComponentScan
;
import
org.springframework.boot.web.servlet.ServletComponentScan
;
import
org.springframework.cache.annotation.EnableCaching
;
import
org.springframework.context.annotation.ComponentScan
;
import
springfox.documentation.swagger2.annotations.EnableSwagger2
;
import
java.util.Locale
;
@SpringBootApplication
(
scanBasePackages
=
{
"net.mingsoft"
})
@SpringBootApplication
(
scanBasePackages
=
{
"net.mingsoft"
})
@MapperScan
(
basePackages
={
"**.dao"
,
"com.baomidou.**.mapper"
})
@MapperScan
(
basePackages
={
"**.dao"
,
"com.baomidou.**.mapper"
})
...
...
src/main/java/net/mingsoft/cms/action/BaseAction.java
View file @
09ee994b
src/main/java/net/mingsoft/cms/action/CategoryAction.java
View file @
09ee994b
...
@@ -70,6 +70,7 @@ public class CategoryAction extends BaseAction {
...
@@ -70,6 +70,7 @@ public class CategoryAction extends BaseAction {
* @return
* @return
*/
*/
@GetMapping
(
"/index"
)
@GetMapping
(
"/index"
)
@RequiresPermissions
(
"cms:category:view"
)
public
String
index
(){
public
String
index
(){
return
"/cms/category/index"
;
return
"/cms/category/index"
;
}
}
...
@@ -86,7 +87,6 @@ public class CategoryAction extends BaseAction {
...
@@ -86,7 +87,6 @@ public class CategoryAction extends BaseAction {
})
})
@RequestMapping
(
value
=
"/list"
,
method
=
{
RequestMethod
.
GET
,
RequestMethod
.
POST
})
@RequestMapping
(
value
=
"/list"
,
method
=
{
RequestMethod
.
GET
,
RequestMethod
.
POST
})
@ResponseBody
@ResponseBody
@RequiresPermissions
(
"cms:category:view"
)
public
ResultData
list
(
@ModelAttribute
@ApiIgnore
CategoryEntity
category
)
{
public
ResultData
list
(
@ModelAttribute
@ApiIgnore
CategoryEntity
category
)
{
BasicUtil
.
startPage
();
BasicUtil
.
startPage
();
List
categoryList
=
categoryBiz
.
query
(
category
);
List
categoryList
=
categoryBiz
.
query
(
category
);
...
...
src/main/java/net/mingsoft/cms/action/ContentAction.java
View file @
09ee994b
...
@@ -27,11 +27,11 @@ import io.swagger.annotations.ApiImplicitParam;
...
@@ -27,11 +27,11 @@ import io.swagger.annotations.ApiImplicitParam;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
net.mingsoft.base.entity.ResultData
;
import
net.mingsoft.base.entity.ResultData
;
import
net.mingsoft.base.util.SqlInjectionUtil
;
import
net.mingsoft.basic.annotation.LogAnn
;
import
net.mingsoft.basic.annotation.LogAnn
;
import
net.mingsoft.basic.bean.EUListBean
;
import
net.mingsoft.basic.bean.EUListBean
;
import
net.mingsoft.basic.constant.e.BusinessTypeEnum
;
import
net.mingsoft.basic.constant.e.BusinessTypeEnum
;
import
net.mingsoft.basic.util.BasicUtil
;
import
net.mingsoft.basic.util.BasicUtil
;
import
net.mingsoft.base.util.SqlInjectionUtil
;
import
net.mingsoft.basic.util.StringUtil
;
import
net.mingsoft.basic.util.StringUtil
;
import
net.mingsoft.cms.bean.ContentBean
;
import
net.mingsoft.cms.bean.ContentBean
;
import
net.mingsoft.cms.biz.ICategoryBiz
;
import
net.mingsoft.cms.biz.ICategoryBiz
;
...
@@ -45,13 +45,10 @@ import org.apache.shiro.authz.annotation.RequiresPermissions;
...
@@ -45,13 +45,10 @@ import org.apache.shiro.authz.annotation.RequiresPermissions;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.ui.ModelMap
;
import
org.springframework.ui.ModelMap
;
import
org.springframework.validation.BindingResult
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
springfox.documentation.annotations.ApiIgnore
;
import
springfox.documentation.annotations.ApiIgnore
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
...
@@ -219,9 +216,6 @@ public class ContentAction extends BaseAction {
...
@@ -219,9 +216,6 @@ public class ContentAction extends BaseAction {
if
(
StringUtil
.
isBlank
(
content
.
getContentDatetime
())){
if
(
StringUtil
.
isBlank
(
content
.
getContentDatetime
())){
return
ResultData
.
build
().
error
(
getResString
(
"err.empty"
,
this
.
getResString
(
"content.datetime"
)));
return
ResultData
.
build
().
error
(
getResString
(
"err.empty"
,
this
.
getResString
(
"content.datetime"
)));
}
}
if
(!
StringUtil
.
checkLength
(
content
.
getContentUrl
()+
""
,
0
,
200
)){
return
ResultData
.
build
().
error
(
getResString
(
"err.length"
,
this
.
getResString
(
"content.url"
),
"0"
,
"200"
));
}
contentBiz
.
save
(
content
);
contentBiz
.
save
(
content
);
return
ResultData
.
build
().
success
(
content
);
return
ResultData
.
build
().
success
(
content
);
}
}
...
@@ -307,9 +301,6 @@ public class ContentAction extends BaseAction {
...
@@ -307,9 +301,6 @@ public class ContentAction extends BaseAction {
if
(
StringUtil
.
isBlank
(
content
.
getContentDatetime
())){
if
(
StringUtil
.
isBlank
(
content
.
getContentDatetime
())){
return
ResultData
.
build
().
error
(
getResString
(
"err.empty"
,
this
.
getResString
(
"content.datetime"
)));
return
ResultData
.
build
().
error
(
getResString
(
"err.empty"
,
this
.
getResString
(
"content.datetime"
)));
}
}
if
(!
StringUtil
.
checkLength
(
content
.
getContentUrl
()+
""
,
0
,
200
)){
return
ResultData
.
build
().
error
(
getResString
(
"err.length"
,
this
.
getResString
(
"content.url"
),
"0"
,
"200"
));
}
contentBiz
.
saveOrUpdate
(
content
);
contentBiz
.
saveOrUpdate
(
content
);
return
ResultData
.
build
().
success
(
content
);
return
ResultData
.
build
().
success
(
content
);
}
}
...
...
src/main/java/net/mingsoft/cms/action/GeneraterAction.java
View file @
09ee994b
...
@@ -250,6 +250,7 @@ public class GeneraterAction extends BaseAction {
...
@@ -250,6 +250,7 @@ public class GeneraterAction extends BaseAction {
}
}
contentBean
.
setCategoryId
(
category
.
getId
());
contentBean
.
setCategoryId
(
category
.
getId
());
contentBean
.
setCategoryType
(
category
.
getCategoryType
());
contentBean
.
setCategoryType
(
category
.
getCategoryType
());
contentBean
.
setOrderBy
(
"date"
);
//将文章列表标签中的中的参数
//将文章列表标签中的中的参数
articleIdList
=
contentBiz
.
queryIdsByCategoryIdForParserAndNotCover
(
contentBean
);
articleIdList
=
contentBiz
.
queryIdsByCategoryIdForParserAndNotCover
(
contentBean
);
// 分类是列表
// 分类是列表
...
...
src/main/java/net/mingsoft/cms/action/web/CategoryAction.java
View file @
09ee994b
...
@@ -33,13 +33,9 @@ import net.mingsoft.cms.biz.ICategoryBiz;
...
@@ -33,13 +33,9 @@ import net.mingsoft.cms.biz.ICategoryBiz;
import
net.mingsoft.cms.entity.CategoryEntity
;
import
net.mingsoft.cms.entity.CategoryEntity
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.ui.ModelMap
;
import
org.springframework.validation.BindingResult
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
springfox.documentation.annotations.ApiIgnore
;
import
springfox.documentation.annotations.ApiIgnore
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.List
;
import
java.util.List
;
/**
/**
* 分类管理控制层
* 分类管理控制层
...
...
src/main/java/net/mingsoft/cms/action/web/ContentAction.java
View file @
09ee994b
...
@@ -38,13 +38,9 @@ import net.mingsoft.cms.entity.HistoryLogEntity;
...
@@ -38,13 +38,9 @@ import net.mingsoft.cms.entity.HistoryLogEntity;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.ui.ModelMap
;
import
org.springframework.validation.BindingResult
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
springfox.documentation.annotations.ApiIgnore
;
import
springfox.documentation.annotations.ApiIgnore
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -137,7 +133,7 @@ public class ContentAction extends net.mingsoft.cms.action.BaseAction{
...
@@ -137,7 +133,7 @@ public class ContentAction extends net.mingsoft.cms.action.BaseAction{
}
else
{
}
else
{
content
.
setContentHit
(
1
);
content
.
setContentHit
(
1
);
}
}
contentBiz
.
update
Entity
(
content
);
contentBiz
.
update
ById
(
content
);
// cms_history 增加相应记录
// cms_history 增加相应记录
HistoryLogEntity
entity
=
new
HistoryLogEntity
();
HistoryLogEntity
entity
=
new
HistoryLogEntity
();
...
...
src/main/java/net/mingsoft/cms/bean/CategoryBean.java
View file @
09ee994b
src/main/java/net/mingsoft/cms/bean/ContentBean.java
View file @
09ee994b
...
@@ -22,12 +22,7 @@
...
@@ -22,12 +22,7 @@
package
net.mingsoft.cms.bean
;
package
net.mingsoft.cms.bean
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
net.mingsoft.cms.entity.ContentEntity
;
import
net.mingsoft.cms.entity.ContentEntity
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
java.util.Date
;
/**
/**
* 文章实体bean
* 文章实体bean
...
...
src/main/java/net/mingsoft/cms/biz/ICategoryBiz.java
View file @
09ee994b
src/main/java/net/mingsoft/cms/biz/IHistoryLogBiz.java
View file @
09ee994b
src/main/java/net/mingsoft/cms/biz/impl/CategoryBizImpl.java
View file @
09ee994b
src/main/java/net/mingsoft/cms/biz/impl/HistoryLogBizImpl.java
View file @
09ee994b
...
@@ -24,12 +24,12 @@
...
@@ -24,12 +24,12 @@
package
net.mingsoft.cms.biz.impl
;
package
net.mingsoft.cms.biz.impl
;
import
net.mingsoft.cms.biz.IHistoryLogBiz
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
net.mingsoft.base.biz.impl.BaseBizImpl
;
import
net.mingsoft.base.biz.impl.BaseBizImpl
;
import
net.mingsoft.base.dao.IBaseDao
;
import
net.mingsoft.base.dao.IBaseDao
;
import
net.mingsoft.cms.biz.IHistoryLogBiz
;
import
net.mingsoft.cms.dao.ICmsHistoryLogDao
;
import
net.mingsoft.cms.dao.ICmsHistoryLogDao
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
/**
/**
* 文章浏览记录管理持久化层
* 文章浏览记录管理持久化层
...
...
src/main/java/net/mingsoft/cms/constant/Const.java
View file @
09ee994b
src/main/java/net/mingsoft/cms/dao/ICategoryDao.java
View file @
09ee994b
src/main/java/net/mingsoft/cms/dao/ICmsHistoryLogDao.java
View file @
09ee994b
src/main/java/net/mingsoft/cms/dao/IContentDao.xml
View file @
09ee994b
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<result
column=
"content_description"
property=
"contentDescription"
/>
<!--描述 -->
<result
column=
"content_description"
property=
"contentDescription"
/>
<!--描述 -->
<result
column=
"content_keyword"
property=
"contentKeyword"
/>
<!--关键字 -->
<result
column=
"content_keyword"
property=
"contentKeyword"
/>
<!--关键字 -->
<result
column=
"content_details"
property=
"contentDetails"
/>
<!--文章内容 -->
<result
column=
"content_details"
property=
"contentDetails"
/>
<!--文章内容 -->
<result
column=
"content_
url
"
property=
"content
Url
"
/>
<!--文章跳转链接地址 -->
<result
column=
"content_
out_link
"
property=
"content
OutLink
"
/>
<!--文章跳转链接地址 -->
<result
column=
"content_hit"
property=
"contentHit"
/>
<!--点击次数 -->
<result
column=
"content_hit"
property=
"contentHit"
/>
<!--点击次数 -->
<result
column=
"create_by"
property=
"createBy"
/>
<!--创建人 -->
<result
column=
"create_by"
property=
"createBy"
/>
<!--创建人 -->
<result
column=
"create_date"
property=
"createDate"
/>
<!--创建时间 -->
<result
column=
"create_date"
property=
"createDate"
/>
<!--创建时间 -->
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
<result
column=
"content_description"
property=
"contentDescription"
/>
<!--描述 -->
<result
column=
"content_description"
property=
"contentDescription"
/>
<!--描述 -->
<result
column=
"content_keyword"
property=
"contentKeyword"
/>
<!--关键字 -->
<result
column=
"content_keyword"
property=
"contentKeyword"
/>
<!--关键字 -->
<result
column=
"content_details"
property=
"contentDetails"
/>
<!--文章内容 -->
<result
column=
"content_details"
property=
"contentDetails"
/>
<!--文章内容 -->
<result
column=
"content_
url
"
property=
"content
Url
"
/>
<!--文章跳转链接地址 -->
<result
column=
"content_
out_link
"
property=
"content
OutLink
"
/>
<!--文章跳转链接地址 -->
<!-- <result column="static_url" property="staticUrl" /><!–静态地址 –>-->
<!-- <result column="static_url" property="staticUrl" /><!–静态地址 –>-->
<result
column=
"content_hit"
property=
"contentHit"
/>
<!--点击次数 -->
<result
column=
"content_hit"
property=
"contentHit"
/>
<!--点击次数 -->
<result
column=
"create_by"
property=
"createBy"
/>
<!--创建人 -->
<result
column=
"create_by"
property=
"createBy"
/>
<!--创建人 -->
...
@@ -91,7 +91,7 @@
...
@@ -91,7 +91,7 @@
<if
test=
"contentDescription != null and contentDescription != ''"
>
content_description,
</if>
<if
test=
"contentDescription != null and contentDescription != ''"
>
content_description,
</if>
<if
test=
"contentKeyword != null and contentKeyword != ''"
>
content_keyword,
</if>
<if
test=
"contentKeyword != null and contentKeyword != ''"
>
content_keyword,
</if>
<if
test=
"contentDetails != null and contentDetails != ''"
>
content_details,
</if>
<if
test=
"contentDetails != null and contentDetails != ''"
>
content_details,
</if>
<if
test=
"content
Url
!= null and content
Url
!= ''"
>
content_
url
,
</if>
<if
test=
"content
OutLink
!= null and content
OutLink
!= ''"
>
content_
out_link
,
</if>
<if
test=
"contentHit != null"
>
content_hit,
</if>
<if
test=
"contentHit != null"
>
content_hit,
</if>
<if
test=
"createBy > 0"
>
create_by,
</if>
<if
test=
"createBy > 0"
>
create_by,
</if>
<if
test=
"createDate != null"
>
create_date,
</if>
<if
test=
"createDate != null"
>
create_date,
</if>
...
@@ -138,7 +138,7 @@
...
@@ -138,7 +138,7 @@
<if
test=
"contentDescription != null "
>
content_description=#{contentDescription},
</if>
<if
test=
"contentDescription != null "
>
content_description=#{contentDescription},
</if>
<if
test=
"contentKeyword != null "
>
content_keyword=#{contentKeyword},
</if>
<if
test=
"contentKeyword != null "
>
content_keyword=#{contentKeyword},
</if>
<if
test=
"contentDetails != null "
>
content_details=#{contentDetails},
</if>
<if
test=
"contentDetails != null "
>
content_details=#{contentDetails},
</if>
<if
test=
"content
Url
!= null and content
Url
!= ''"
>
content_
url
=#{content
Url
},
</if>
<if
test=
"content
OutLink
!= null and content
OutLink
!= ''"
>
content_
out_link
=#{content
OutLink
},
</if>
<if
test=
"contentHit != null"
>
content_hit=#{contentHit},
</if>
<if
test=
"contentHit != null"
>
content_hit=#{contentHit},
</if>
<if
test=
"createBy > 0"
>
create_by=#{createBy},
</if>
<if
test=
"createBy > 0"
>
create_by=#{createBy},
</if>
<if
test=
"createDate != null"
>
create_date=#{createDate},
</if>
<if
test=
"createDate != null"
>
create_date=#{createDate},
</if>
...
@@ -171,7 +171,7 @@
...
@@ -171,7 +171,7 @@
<if
test=
"contentDescription != null and contentDescription != ''"
>
and content_description=#{contentDescription}
</if>
<if
test=
"contentDescription != null and contentDescription != ''"
>
and content_description=#{contentDescription}
</if>
<if
test=
"contentKeyword != null and contentKeyword != ''"
>
and content_keyword=#{contentKeyword}
</if>
<if
test=
"contentKeyword != null and contentKeyword != ''"
>
and content_keyword=#{contentKeyword}
</if>
<if
test=
"contentDetails != null and contentDetails != ''"
>
and content_details=#{contentDetails}
</if>
<if
test=
"contentDetails != null and contentDetails != ''"
>
and content_details=#{contentDetails}
</if>
<if
test=
"content
Url
!= null and content
Url
!= ''"
>
and content_
url
=#{content
Url
}
</if>
<if
test=
"content
OutLink
!= null and content
OutLink
!= ''"
>
and content_
out_link
=#{content
OutLink
}
</if>
<if
test=
"contentHit != null"
>
and content_hit=#{contentHit}
</if>
<if
test=
"contentHit != null"
>
and content_hit=#{contentHit}
</if>
<if
test=
"createBy > 0"
>
and create_by=#{createBy}
</if>
<if
test=
"createBy > 0"
>
and create_by=#{createBy}
</if>
<if
test=
"createDate != null"
>
and create_date=#{createDate}
</if>
<if
test=
"createDate != null"
>
and create_date=#{createDate}
</if>
...
@@ -236,7 +236,7 @@
...
@@ -236,7 +236,7 @@
<if
test=
"contentDescription != null and contentDescription != ''"
>
and content_description=#{contentDescription}
</if>
<if
test=
"contentDescription != null and contentDescription != ''"
>
and content_description=#{contentDescription}
</if>
<if
test=
"contentKeyword != null and contentKeyword != ''"
>
and content_keyword=#{contentKeyword}
</if>
<if
test=
"contentKeyword != null and contentKeyword != ''"
>
and content_keyword=#{contentKeyword}
</if>
<if
test=
"contentDetails != null and contentDetails != ''"
>
and content_details=#{contentDetails}
</if>
<if
test=
"contentDetails != null and contentDetails != ''"
>
and content_details=#{contentDetails}
</if>
<if
test=
"content
Url
!= null and content
Url
!= ''"
>
and content_
url
=#{content
Url
}
</if>
<if
test=
"content
OutLink
!= null and content
OutLink
!= ''"
>
and content_
out_link
=#{content
OutLink
}
</if>
<if
test=
"contentHit != null"
>
and content_hit=#{contentHit}
</if>
<if
test=
"contentHit != null"
>
and content_hit=#{contentHit}
</if>
<if
test=
"createBy > 0"
>
and ct.create_by=#{createBy}
</if>
<if
test=
"createBy > 0"
>
and ct.create_by=#{createBy}
</if>
<if
test=
"createDate != null"
>
and ct.create_date=#{createDate}
</if>
<if
test=
"createDate != null"
>
and ct.create_date=#{createDate}
</if>
...
@@ -273,7 +273,7 @@
...
@@ -273,7 +273,7 @@
<if
test=
"contentDescription != null and contentDescription != ''"
>
and content_description=#{contentDescription}
</if>
<if
test=
"contentDescription != null and contentDescription != ''"
>
and content_description=#{contentDescription}
</if>
<if
test=
"contentKeyword != null and contentKeyword != ''"
>
and content_keyword=#{contentKeyword}
</if>
<if
test=
"contentKeyword != null and contentKeyword != ''"
>
and content_keyword=#{contentKeyword}
</if>
<if
test=
"contentDetails != null and contentDetails != ''"
>
and content_details=#{contentDetails}
</if>
<if
test=
"contentDetails != null and contentDetails != ''"
>
and content_details=#{contentDetails}
</if>
<if
test=
"content
Url
!= null and content
Url
!= ''"
>
and content_
url
=#{content
Url
}
</if>
<if
test=
"content
OutLink
!= null and content
OutLink
!= ''"
>
and content_
out_link
=#{content
OutLink
}
</if>
<if
test=
"contentHit != null"
>
and content_hit=#{contentHit}
</if>
<if
test=
"contentHit != null"
>
and content_hit=#{contentHit}
</if>
<if
test=
"createBy > 0"
>
and ct.create_by=#{createBy}
</if>
<if
test=
"createBy > 0"
>
and ct.create_by=#{createBy}
</if>
<if
test=
"createDate != null"
>
and ct.create_date=#{createDate}
</if>
<if
test=
"createDate != null"
>
and ct.create_date=#{createDate}
</if>
...
@@ -287,10 +287,10 @@
...
@@ -287,10 +287,10 @@
<!-- 根据站点编号、开始、结束时间和栏目编号查询文章编号集合 -->
<!-- 根据站点编号、开始、结束时间和栏目编号查询文章编号集合 -->
<select
id=
"queryIdsByCategoryIdForParser"
resultMap=
"resultBean"
>
<select
id=
"queryIdsByCategoryIdForParser"
resultMap=
"resultBean"
>
select
select
ct.id article_id,c.*
ct.id article_id,
ct.content_img litpic,
c.*
FROM cms_content ct
FROM cms_content ct
LEFT JOIN cms_category c ON ct.category_id = c.id
LEFT JOIN cms_category c ON ct.category_id = c.id
where ct.del=0
where ct.del=0
and ct.content_display=0
<!-- 查询子栏目数据 -->
<!-- 查询子栏目数据 -->
<if
test=
"categoryId!=null and categoryId!='' and categoryType==1"
>
<if
test=
"categoryId!=null and categoryId!='' and categoryType==1"
>
...
@@ -345,7 +345,7 @@
...
@@ -345,7 +345,7 @@
<!-- 根据站点编号、开始、结束时间和栏目编号查询文章编号集合,不包括单篇 -->
<!-- 根据站点编号、开始、结束时间和栏目编号查询文章编号集合,不包括单篇 -->
<select
id=
"queryIdsByCategoryIdForParserAndNotCover"
resultMap=
"resultBean"
>
<select
id=
"queryIdsByCategoryIdForParserAndNotCover"
resultMap=
"resultBean"
>
select
select
ct.id article_id,c.*
ct.id article_id,
ct.content_img litpic,
c.*
FROM cms_content ct
FROM cms_content ct
LEFT JOIN cms_category c ON ct.category_id = c.id
LEFT JOIN cms_category c ON ct.category_id = c.id
where ct.del=0
where ct.del=0
...
...
src/main/java/net/mingsoft/cms/entity/CategoryEntity.java
View file @
09ee994b
...
@@ -22,11 +22,7 @@
...
@@ -22,11 +22,7 @@
package
net.mingsoft.cms.entity
;
package
net.mingsoft.cms.entity
;
import
com.baomidou.mybatisplus.annotation.FieldStrategy
;
import
com.baomidou.mybatisplus.annotation.*
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
net.mingsoft.base.entity.BaseEntity
;
import
net.mingsoft.base.entity.BaseEntity
;
/**
/**
...
...
src/main/java/net/mingsoft/cms/entity/ContentEntity.java
View file @
09ee994b
...
@@ -24,7 +24,6 @@ package net.mingsoft.cms.entity;
...
@@ -24,7 +24,6 @@ package net.mingsoft.cms.entity;
import
com.alibaba.fastjson.annotation.JSONField
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
...
@@ -110,7 +109,7 @@ private static final long serialVersionUID = 1574925152617L;
...
@@ -110,7 +109,7 @@ private static final long serialVersionUID = 1574925152617L;
/**
/**
* 文章跳转链接地址
* 文章跳转链接地址
*/
*/
private
String
content
Url
;
private
String
content
OutLink
;
/**
/**
* 点击次数
* 点击次数
*/
*/
...
@@ -279,14 +278,14 @@ private static final long serialVersionUID = 1574925152617L;
...
@@ -279,14 +278,14 @@ private static final long serialVersionUID = 1574925152617L;
/**
/**
* 设置文章跳转链接地址
* 设置文章跳转链接地址
*/
*/
public
void
setContent
Url
(
String
content
Url
)
{
public
void
setContent
OutLink
(
String
content
OutLink
)
{
this
.
content
Url
=
content
Url
;
this
.
content
OutLink
=
content
OutLink
;
}
}
/**
/**
* 获取文章跳转链接地址
* 获取文章跳转链接地址
*/
*/
public
String
getContent
Url
()
{
public
String
getContent
OutLink
()
{
return
this
.
content
Url
;
return
this
.
content
OutLink
;
}
}
}
}
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment