Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
cms_sys
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
西魏
cms_sys
Commits
6ec0df95
Commit
6ec0df95
authored
Mar 12, 2019
by
他是超人他会飞
Committed by
铭飞
Mar 12, 2019
Browse files
Options
Browse Files
Download
Plain Diff
!151 sql 更新
Merge pull request !151 from 他是超人他会飞/4.7.0
parents
98cde83d
31f44a51
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
4 deletions
+15
-4
4.6.5-to-4.7.0-mysql.sql
doc/4.6.5-to-4.7.0-mysql.sql
+0
-0
db-mcms-mysql-4.7.0.sql
doc/db-mcms-mysql-4.7.0.sql
+0
-0
SearchAction.java
src/main/java/net/mingsoft/cms/action/web/SearchAction.java
+2
-2
CmsParserUtil.java
src/main/java/net/mingsoft/cms/util/CmsParserUtil.java
+13
-2
No files found.
doc/4.6.5-to-4.7.0-mysql.sql
View file @
6ec0df95
This diff is collapsed.
Click to expand it.
doc/db-mcms-mysql-4.7.0.sql
View file @
6ec0df95
This diff is collapsed.
Click to expand it.
src/main/java/net/mingsoft/cms/action/web/SearchAction.java
View file @
6ec0df95
...
@@ -234,8 +234,8 @@ public class SearchAction extends BaseAction {
...
@@ -234,8 +234,8 @@ public class SearchAction extends BaseAction {
map
.
put
(
ParserUtil
.
RCOUNT
,
size
);
map
.
put
(
ParserUtil
.
RCOUNT
,
size
);
map
.
put
(
ParserUtil
.
SIZE
,
size
);
map
.
put
(
ParserUtil
.
SIZE
,
size
);
//设置列表当前页
//设置列表当前页
map
.
put
(
ParserUtil
.
PAGE_NO
,
BasicUtil
.
getInt
(
ParserUtil
.
PAGE_NO
,
1
)
);
int
pageNo
=
BasicUtil
.
getInt
(
ParserUtil
.
PAGE_NO
,
1
);
int
pageNo
=
(
int
)
map
.
get
(
ParserUtil
.
PAGE_NO
);
map
.
put
(
ParserUtil
.
PAGE_NO
,
pageNo
);
int
next
,
pre
;
int
next
,
pre
;
if
(
StringUtil
.
isBlank
(
pageNo
)
||
pageNo
==
1
){
if
(
StringUtil
.
isBlank
(
pageNo
)
||
pageNo
==
1
){
//如果总页数等于1,下一页就是第一页,不等于就有第二页
//如果总页数等于1,下一页就是第一页,不等于就有第二页
...
...
src/main/java/net/mingsoft/cms/util/CmsParserUtil.java
View file @
6ec0df95
...
@@ -75,7 +75,9 @@ public class CmsParserUtil extends ParserUtil {
...
@@ -75,7 +75,9 @@ public class CmsParserUtil extends ParserUtil {
BasicUtil
.
getApp
().
getAppMobileStyle
()
+
File
.
separator
+
column
.
getColumnListUrl
(),
Const
.
UTF8
);
BasicUtil
.
getApp
().
getAppMobileStyle
()
+
File
.
separator
+
column
.
getColumnListUrl
(),
Const
.
UTF8
);
// pc端模板
// pc端模板
Template
template
=
cfg
.
getTemplate
(
File
.
separator
+
column
.
getColumnListUrl
(),
Const
.
UTF8
);
Template
template
=
cfg
.
getTemplate
(
File
.
separator
+
column
.
getColumnListUrl
(),
Const
.
UTF8
);
// 文章的栏目模型编号
int
columnContentModelId
=
column
.
getColumnContentModelId
();
StringWriter
writer
=
new
StringWriter
();
StringWriter
writer
=
new
StringWriter
();
try
{
try
{
...
@@ -91,7 +93,12 @@ public class CmsParserUtil extends ParserUtil {
...
@@ -91,7 +93,12 @@ public class CmsParserUtil extends ParserUtil {
String
columnListPath
;
String
columnListPath
;
String
mobilePath
;
String
mobilePath
;
ContentModelEntity
contentModel
=
null
;
// 判断当前栏目是否有自定义模型
if
(
columnContentModelId
>
0
)
{
// 通过栏目模型编号获取自定义模型实体
contentModel
=
(
ContentModelEntity
)
SpringUtil
.
getBean
(
IContentModelBiz
.
class
).
getEntity
(
columnContentModelId
);
}
int
pageNo
=
1
;
int
pageNo
=
1
;
// 遍历分页
// 遍历分页
for
(
int
i
=
0
;
i
<
totalPageSize
;
i
++)
{
for
(
int
i
=
0
;
i
<
totalPageSize
;
i
++)
{
...
@@ -102,6 +109,10 @@ public class CmsParserUtil extends ParserUtil {
...
@@ -102,6 +109,10 @@ public class CmsParserUtil extends ParserUtil {
parserParams
.
put
(
TYPE_ID
,
column
.
getCategoryId
());
parserParams
.
put
(
TYPE_ID
,
column
.
getCategoryId
());
parserParams
.
put
(
IS_DO
,
false
);
parserParams
.
put
(
IS_DO
,
false
);
parserParams
.
put
(
HTML
,
HTML
);
parserParams
.
put
(
HTML
,
HTML
);
if
(
contentModel
!=
null
)
{
// 将自定义模型编号设置为key值
parserParams
.
put
(
TABLE_NAME
,
contentModel
.
getCmTableName
());
}
//如果单站点,就废弃站点地址
//如果单站点,就废弃站点地址
if
(
ParserUtil
.
IS_SINGLE
)
{
if
(
ParserUtil
.
IS_SINGLE
)
{
parserParams
.
put
(
ParserUtil
.
URL
,
BasicUtil
.
getUrl
());
parserParams
.
put
(
ParserUtil
.
URL
,
BasicUtil
.
getUrl
());
...
...
Write
Preview
Markdown
is supported
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