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
b2197210
Commit
b2197210
authored
Nov 21, 2020
by
xierz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除dao数据库适配
parent
a5ee7ab3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
3 deletions
+25
-3
5.2-patch.sql
doc/5.2-patch.sql
+24
-1
IContentDao.xml
src/main/java/net/mingsoft/cms/dao/IContentDao.xml
+1
-2
No files found.
doc/5.2-patch.sql
View file @
b2197210
...
...
@@ -184,4 +184,27 @@ DROP COLUMN `app_id`;
DROP
TABLE
IF
EXISTS
`system_log`
;
CREATE
TABLE
If
Not
Exists
`log`
(
`id`
int
(
11
)
unsigned
NOT
NULL
AUTO_INCREMENT
,
`log_error_msg`
VARCHAR
(
4000
)
DEFAULT
NULL
COMMENT
'错误消息'
,
`log_result`
VARCHAR
(
4000
)
DEFAULT
NULL
COMMENT
'返回参数'
,
`log_param`
VARCHAR
(
4000
)
DEFAULT
NULL
COMMENT
'请求参数'
,
`log_location`
VARCHAR
(
255
)
DEFAULT
NULL
COMMENT
'所在地区'
,
`log_user`
VARCHAR
(
255
)
DEFAULT
NULL
COMMENT
'操作人员'
,
`log_user_type`
VARCHAR
(
255
)
DEFAULT
NULL
COMMENT
'用户类型'
,
`log_business_type`
VARCHAR
(
255
)
DEFAULT
NULL
COMMENT
'业务类型'
,
`log_status`
VARCHAR
(
255
)
DEFAULT
NULL
COMMENT
'请求状态'
,
`log_url`
VARCHAR
(
255
)
DEFAULT
NULL
COMMENT
'请求地址'
,
`log_request_method`
VARCHAR
(
255
)
DEFAULT
NULL
COMMENT
'请求方式'
,
`log_method`
VARCHAR
(
255
)
DEFAULT
NULL
COMMENT
'请求方法'
,
`log_ip`
VARCHAR
(
255
)
DEFAULT
NULL
COMMENT
'IP'
,
`log_title`
VARCHAR
(
255
)
DEFAULT
NULL
COMMENT
'标题'
,
`del`
INT
(
1
)
DEFAULT
0
COMMENT
'删除标记'
,
`update_date`
DATETIME
DEFAULT
NULL
COMMENT
'修改时间'
,
`update_by`
INT
(
11
)
DEFAULT
NULL
COMMENT
'修改人'
,
`create_date`
DATETIME
DEFAULT
NULL
COMMENT
'创建时间'
,
`create_by`
INT
(
11
)
DEFAULT
NULL
COMMENT
'创建人'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
ROW_FORMAT
=
DYNAMIC
COMMENT
=
'系统日志'
;
src/main/java/net/mingsoft/cms/dao/IContentDao.xml
View file @
b2197210
...
...
@@ -240,7 +240,6 @@
)ct ORDER BY ct.content_datetime desc,content_sort desc
</select>
<!-- 根据站点编号、开始、结束时间和栏目编号查询文章编号集合 -->
<select
id=
"queryIdsByCategoryIdForParser"
resultMap=
"resultBean"
>
select
...
...
@@ -252,7 +251,7 @@
<!-- 查询子栏目数据 -->
<if
test=
"categoryId > 0"
>
and (ct.category_id=#{categoryId} or ct.category_id in
(select id FROM cms_category where
<include
refid=
"queryWhereCategoryId"
></include>
))
(select id FROM cms_category where
find_in_set('${categoryId}',CATEGORY_PARENT_ID)
))
</if>
<if
test=
"beginTime!=null and beginTime!=''"
>
and content_datetime
>
= #{beginTime}
...
...
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