Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
soss
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hooloo
ms
soss
Commits
91dbc6e9
Commit
91dbc6e9
authored
Apr 10, 2023
by
weijiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加错误日志
parent
ab698c61
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
soss-system/src/main/java/com/soss/system/service/impl/SysBannerServiceImpl.java
+10
-10
No files found.
soss-system/src/main/java/com/soss/system/service/impl/SysBannerServiceImpl.java
View file @
91dbc6e9
...
...
@@ -234,6 +234,15 @@ public class SysBannerServiceImpl implements ISysBannerService {
@Override
public
Boolean
updateState
(
Long
bannerId
,
Integer
state
)
{
try
{
SysBanner
sysBanner
=
sysBannerMapper
.
getBannerById
(
bannerId
);
if
(
sysBanner
.
getType
()
==
2
)
{
pushBannerChanged
();
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
SysBanner
banner
=
new
SysBanner
();
banner
.
setId
(
bannerId
);
banner
.
setState
(
state
);
...
...
@@ -247,21 +256,11 @@ public class SysBannerServiceImpl implements ISysBannerService {
}
long
i
=
sysBannerMapper
.
updateState
(
banner
);
try
{
SysBanner
sysBanner
=
sysBannerMapper
.
getBannerById
(
bannerId
);
if
(
sysBanner
.
getType
()
==
2
)
{
pushBannerChanged
();
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
return
i
>
0
?
true
:
false
;
}
@Override
public
Boolean
delete
(
Long
bannerId
)
{
long
i
=
sysBannerMapper
.
delete
(
bannerId
);
try
{
SysBanner
sysBanner
=
sysBannerMapper
.
getBannerById
(
bannerId
);
if
(
sysBanner
.
getType
()
==
2
)
{
...
...
@@ -270,6 +269,7 @@ public class SysBannerServiceImpl implements ISysBannerService {
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
long
i
=
sysBannerMapper
.
delete
(
bannerId
);
return
i
>
0
?
true
:
false
;
}
...
...
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