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
59bdeabb
Commit
59bdeabb
authored
Mar 19, 2019
by
他是超人他会飞
Committed by
铭飞
Mar 19, 2019
Browse files
Options
Browse Files
Download
Plain Diff
!160 上下篇的判断修改
Merge pull request !160 from 他是超人他会飞/4.7.0
parents
016fc549
4e7cd16e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
3 deletions
+7
-3
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
+5
-1
IArticleDao.xml
src/main/java/net/mingsoft/cms/dao/IArticleDao.xml
+2
-2
No files found.
doc/4.6.5-to-4.7.0-mysql.sql
View file @
59bdeabb
This diff is collapsed.
Click to expand it.
doc/db-mcms-mysql-4.7.0.sql
View file @
59bdeabb
This diff is collapsed.
Click to expand it.
src/main/java/net/mingsoft/cms/action/web/SearchAction.java
View file @
59bdeabb
...
@@ -160,8 +160,12 @@ public class SearchAction extends BaseAction {
...
@@ -160,8 +160,12 @@ public class SearchAction extends BaseAction {
ContentModelEntity
contentModel
=
null
;
// 栏目对应模型
ContentModelEntity
contentModel
=
null
;
// 栏目对应模型
List
<
ContentModelFieldEntity
>
fieldList
=
new
ArrayList
<
ContentModelFieldEntity
>();
// 栏目对应字段
List
<
ContentModelFieldEntity
>
fieldList
=
new
ArrayList
<
ContentModelFieldEntity
>();
// 栏目对应字段
List
<
DiyModelMap
>
fieldValueList
=
new
ArrayList
<
DiyModelMap
>();
// 栏目对应字段的值
List
<
DiyModelMap
>
fieldValueList
=
new
ArrayList
<
DiyModelMap
>();
// 栏目对应字段的值
int
typeId
=
BasicUtil
.
getInt
(
"typeid"
,
0
)
;
int
typeId
=
0
;
String
categoryIds
=
BasicUtil
.
getString
(
"categoryId"
);
String
categoryIds
=
BasicUtil
.
getString
(
"categoryId"
);
//当传递了栏目编号,但不是栏目集合
if
(!
StringUtil
.
isBlank
(
categoryIds
)
&&
!
categoryIds
.
contains
(
","
)){
typeId
=
Integer
.
parseInt
(
categoryIds
);
}
//记录自定义模型字段名
//记录自定义模型字段名
List
filedStr
=
new
ArrayList
<>();
List
filedStr
=
new
ArrayList
<>();
//根据栏目确定自定义模型
//根据栏目确定自定义模型
...
...
src/main/java/net/mingsoft/cms/dao/IArticleDao.xml
View file @
59bdeabb
...
@@ -458,10 +458,10 @@
...
@@ -458,10 +458,10 @@
left join basic_column cl
left join basic_column cl
on c.CATEGORY_ID =
on c.CATEGORY_ID =
cl.COLUMN_CATEGORY_ID
cl.COLUMN_CATEGORY_ID
<if
test=
"tableName!=null"
>
left join ${tableName} d on d.basicId=a.ARTICLE_BASICID
<if
test=
"tableName!=null
and tableName!=''
"
>
left join ${tableName} d on d.basicId=a.ARTICLE_BASICID
</if>
</if>
where a.ARTICLE_WEBID = #{websiteId}
where a.ARTICLE_WEBID = #{websiteId}
<if
test=
"ids!=null"
>
<if
test=
"ids!=null
and ids!=''
"
>
and FIND_IN_SET(category_categoryid,'${ids}')
and FIND_IN_SET(category_categoryid,'${ids}')
</if>
</if>
<foreach
item=
"item"
index=
"key"
collection=
"map"
open=
""
<foreach
item=
"item"
index=
"key"
collection=
"map"
open=
""
...
...
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