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
4ed1a36a
Commit
4ed1a36a
authored
Mar 13, 2019
by
sunxin
Browse files
返回栏目模块编号和父栏目编号
parent
1859f695
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/net/mingsoft/cms/dao/IArticleDao.xml
View file @
4ed1a36a
...
@@ -53,6 +53,8 @@
...
@@ -53,6 +53,8 @@
<result
column=
"category_title"
property=
"categoryTitle"
/>
<result
column=
"category_title"
property=
"categoryTitle"
/>
<result
column=
"category_id"
property=
"categoryId"
/>
<result
column=
"category_id"
property=
"categoryId"
/>
<result
column=
"COLUMN_CM_ID"
property=
"columnContentModelId"
/>
<result
column=
"COLUMN_CM_ID"
property=
"columnContentModelId"
/>
<result
column=
"category_categoryid"
property=
"categoryCategoryId"
/>
<!--关联表category的父类别ID category_categoryid字段 -->
<result
column=
"category_modelId"
property=
"categoryModelId"
/>
<!--关联表category的所属模块ID category_modelid字段 -->
<result
column=
"COLUMN_TYPE"
property=
"columnType"
/>
<result
column=
"COLUMN_TYPE"
property=
"columnType"
/>
<result
column=
"category_parent_id"
property=
"categoryParentId"
/>
<!--关联表category的字典对应编号 -->
<result
column=
"category_parent_id"
property=
"categoryParentId"
/>
<!--关联表category的字典对应编号 -->
</resultMap>
</resultMap>
...
@@ -318,7 +320,7 @@
...
@@ -318,7 +320,7 @@
<!-- 根据站点编号、开始、结束时间和栏目编号查询文章编号集合 -->
<!-- 根据站点编号、开始、结束时间和栏目编号查询文章编号集合 -->
<select
id=
"queryIdsByCategoryIdForParser"
resultMap=
"resultMapBean"
>
<select
id=
"queryIdsByCategoryIdForParser"
resultMap=
"resultMapBean"
>
select
select
ARTICLE_BASICID,cl.*,c.
category_parent_id
ARTICLE_BASICID,cl.*,c.
*
FROM cms_article a LEFT JOIN basic b ON a.ARTICLE_BASICID = b.BASIC_ID
FROM cms_article a LEFT JOIN basic b ON a.ARTICLE_BASICID = b.BASIC_ID
LEFT JOIN basic_column cl ON b.BASIC_CATEGORYID = cl.COLUMN_CATEGORY_ID
LEFT JOIN basic_column cl ON b.BASIC_CATEGORYID = cl.COLUMN_CATEGORY_ID
JOIN category c ON c.CATEGORY_ID = cl.COLUMN_CATEGORY_ID
JOIN category c ON c.CATEGORY_ID = cl.COLUMN_CATEGORY_ID
...
...
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