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
1b4c5101
Commit
1b4c5101
authored
Jun 17, 2020
by
邓实川
Committed by
chenzg
Jul 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企业讯息bug
parent
692e6b3d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
13 deletions
+11
-13
src/main/java/cn/timer/api/controller/qyxx/CmsController.java
+11
-12
src/main/java/cn/timer/api/controller/qyzx/QyzxAuthController.java
+0
-1
No files found.
src/main/java/cn/timer/api/controller/qyxx/CmsController.java
View file @
1b4c5101
...
...
@@ -358,8 +358,8 @@ public class CmsController {
// 查询条件
QueryWrapper
<
CmsContent
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
eq
(
"organization_id"
,
userBean
.
getOrgCode
())
.
select
(
"id"
,
"publisher_name"
,
"auditopinion"
,
"modularid"
,
"status"
,
"title"
,
"releasetime"
,
"addeddate"
,
"author
"
,
"summary"
,
"releasetype"
,
"fmtpath"
)
.
select
(
"id"
,
"publisher_name"
,
"auditopinion"
,
"modularid"
,
"status"
,
"title"
,
"releasetime
"
,
"
addeddate"
,
"author"
,
"
summary"
,
"releasetype"
,
"fmtpath"
)
.
ne
(
"status"
,
1
).
eq
(
t
!=
null
&&
t
>
-
1
,
"modularid"
,
t
)
.
between
(!
StrUtil
.
hasBlank
(
s
)
&&
!
StrUtil
.
hasBlank
(
e
),
"releasetime"
,
!
StrUtil
.
hasBlank
(
s
)
?
s
:
"1000-01-01 00:00:00"
,
...
...
@@ -526,17 +526,16 @@ public class CmsController {
@ApiOperation
(
value
=
"设置默认轮播信息"
,
httpMethod
=
"GET"
,
notes
=
"接口发布说明"
)
public
Result
<
Void
>
setDefault
(
@CurrentUser
UserBean
userBean
,
@PathVariable
(
"id"
)
Integer
id
)
{
// 将所有设为非默认
UpdateWrapper
<
CmsAnnouncement
>
updateWrapper
=
new
UpdateWrapper
<
CmsAnnouncement
>();
CmsAnnouncement
q
=
CmsAnnouncement
.
builder
().
orgCode
(
userBean
.
getOrgCode
()).
isDefault
(
0
).
build
();
cmsAnnouncementMapper
.
update
(
q
,
updateWrapper
);
boolean
cmsAnnouncement
=
CmsAnnouncement
.
builder
().
isDefault
(
0
).
build
().
update
(
new
LambdaQueryWrapper
<
CmsAnnouncement
>().
eq
(
CmsAnnouncement:
:
getOrgCode
,
userBean
.
getOrgCode
()));
// 根据id设为默认
updateWrapper
.
eq
(
"id"
,
id
);
CmsAnnouncement
w
=
CmsAnnouncement
.
builder
().
orgCode
(
userBean
.
getOrgCode
()).
id
(
id
).
isDefault
(
1
).
build
();
cmsAnnouncementMapper
.
update
(
w
,
updateWrapper
);
// 返回成功
return
ResultUtil
.
success
(
"设置成功"
);
if
(
cmsAnnouncement
)
{
if
(
CmsAnnouncement
.
builder
().
id
(
id
).
isDefault
(
1
).
build
().
updateById
())
return
ResultUtil
.
success
(
"设置成功"
);
else
return
ResultUtil
.
success
(
"设置失败"
);
}
return
ResultUtil
.
success
(
"设置失败"
);
}
}
src/main/java/cn/timer/api/controller/qyzx/QyzxAuthController.java
View file @
1b4c5101
...
...
@@ -11,7 +11,6 @@ import java.util.ArrayList;
import
java.util.Collections
;
import
java.util.Comparator
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
...
...
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