Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
42a7f1c4
Commit
42a7f1c4
authored
Aug 11, 2022
by
284718418@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
华颐合并至8小时
parent
07b0bd2a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
1 deletions
+29
-1
src/main/java/cn/timer/api/controller/qyxx/CmsController.java
+28
-0
src/main/resources/application-test.yml
+1
-1
No files found.
src/main/java/cn/timer/api/controller/qyxx/CmsController.java
View file @
42a7f1c4
...
...
@@ -392,6 +392,34 @@ public class CmsController {
return
ResultUtil
.
data
(
cmsContentPage
,
cmsContents
,
"企业OA讯息搜索成功"
);
}
@PostMapping
(
value
=
"/oaCirculate"
)
@ApiOperation
(
value
=
"搜索OA文件传阅记录"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
public
Result
<
Object
>
oaCirculate
(
@CurrentUser
UserBean
userBean
,
@RequestBody
QyxxQueryDto
qyxxQueryDto
)
{
String
s
=
qyxxQueryDto
.
getStartTime
();
String
e
=
qyxxQueryDto
.
getEndTime
();
Integer
r
=
qyxxQueryDto
.
getReleasestate
();
Page
<
CmsContent
>
page
=
new
Page
<
CmsContent
>(
qyxxQueryDto
.
getCurrentPage
()
==
null
?
1
:
qyxxQueryDto
.
getCurrentPage
(),
qyxxQueryDto
.
getTotalPage
()
==
null
?
10
:
qyxxQueryDto
.
getTotalPage
());
QueryWrapper
<
CmsContent
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
eq
(
"organization_id"
,
userBean
.
getOrgCode
())
.
eq
(
"modularid"
,
7
).
eq
(
r
!=
null
&&
r
>
-
1
,
"releasestate"
,
r
)
.
between
(!
StrUtil
.
hasBlank
(
s
)
&&
!
StrUtil
.
hasBlank
(
e
),
"releasetime"
,
!
StrUtil
.
hasBlank
(
s
)
?
s
:
"1000-01-01 00:00:00"
,
!
StrUtil
.
hasBlank
(
e
)
?
e
:
"9999-01-01 00:00:00"
)
.
and
(
wq
->
wq
.
like
(
"publisher"
,
userBean
.
getEmpNum
()).
or
().
like
(
"author"
,
userBean
.
getUserInfo
().
getName
()).
or
().
like
(
"title"
,
userBean
.
getUserInfo
().
getName
()))
.
orderByDesc
(
"addeddate"
);
IPage
<
CmsContent
>
cmsContentPage
=
CmsContent
.
builder
().
build
().
selectPage
(
page
,
queryWrapper
);
List
<
CmsContent
>
cmsContents
=
cmsContentPage
.
getRecords
();
cmsContentPage
.
getCurrent
();
cmsContentPage
.
getPages
();
cmsContentPage
.
getTotal
();
cmsContentPage
.
getSize
();
return
ResultUtil
.
data
(
cmsContentPage
,
cmsContents
,
"企业OA讯息搜索成功"
);
}
/**
* 根据id查讯息
*
...
...
src/main/resources/application-test.yml
View file @
42a7f1c4
...
...
@@ -31,7 +31,7 @@ spring:
# username: tang
# password: Tang123456!
# url: jdbc:mysql://120.24.172.51:3306/youlingrc_tang?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&zeroDateTimeBehavior=CONVERT_TO_NULL
url
:
jdbc:mysql://120.78.162.177:3306/timer_
huayi
?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&zeroDateTimeBehavior=CONVERT_TO_NULL
url
:
jdbc:mysql://120.78.162.177:3306/timer_
test
?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&zeroDateTimeBehavior=CONVERT_TO_NULL
# url: jdbc:mysql://192.168.172.200:3306/youlingrc_8timer201?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&zeroDateTimeBehavior=CONVERT_TO_NULL
# url: jdbc:mysql://db.hhlsz.com:3306/youlingrc_8timer201?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&zeroDateTimeBehavior=CONVERT_TO_NULL
driver-class-name
:
com.mysql.cj.jdbc.Driver
...
...
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