Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
V
volunteer_service
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
licc
volunteer_service
Commits
147bf1eb
Commit
147bf1eb
authored
Jan 15, 2021
by
licc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
格式修改2
parent
2bae35a2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
SecretkeyUtil.java
...rc/main/java/cn/wisenergy/common/utils/SecretkeyUtil.java
+3
-0
BannerServiceImpl.java
...java/cn/wisenergy/service/app/impl/BannerServiceImpl.java
+6
-6
No files found.
wisenergy-common/src/main/java/cn/wisenergy/common/utils/SecretkeyUtil.java
View file @
147bf1eb
...
@@ -2,6 +2,9 @@ package cn.wisenergy.common.utils;
...
@@ -2,6 +2,9 @@ package cn.wisenergy.common.utils;
import
java.util.Random
;
import
java.util.Random
;
/**
* @author 86187
*/
public
class
SecretkeyUtil
{
public
class
SecretkeyUtil
{
public
static
String
getSecretkey
(){
public
static
String
getSecretkey
(){
...
...
wisenergy-service/src/main/java/cn/wisenergy/service/app/impl/BannerServiceImpl.java
View file @
147bf1eb
...
@@ -73,7 +73,7 @@ public class BannerServiceImpl extends ServiceImpl<BannerMapper, Banner> impleme
...
@@ -73,7 +73,7 @@ public class BannerServiceImpl extends ServiceImpl<BannerMapper, Banner> impleme
@Override
@Override
public
R
<
Banner
>
getById
(
Integer
id
)
{
public
R
<
Banner
>
getById
(
Integer
id
)
{
log
.
info
(
"BannerServiceImpl[].getById[].input.param:id"
+
id
);
log
.
info
(
"BannerServiceImpl[].getById[].input.param:id"
+
id
);
if
(
null
==
id
||
id
.
equals
(
""
)
)
{
if
(
null
==
id
)
{
return
R
.
error
(
"传入参数无效"
);
return
R
.
error
(
"传入参数无效"
);
}
}
Banner
banner
=
bannerMapper
.
getById
(
id
);
Banner
banner
=
bannerMapper
.
getById
(
id
);
...
@@ -87,7 +87,7 @@ public class BannerServiceImpl extends ServiceImpl<BannerMapper, Banner> impleme
...
@@ -87,7 +87,7 @@ public class BannerServiceImpl extends ServiceImpl<BannerMapper, Banner> impleme
@Override
@Override
public
R
<
PageInfo
<
BannerDto
>>
getList
(
AdvertisingQueryVo
advertisingQueryVo
)
{
public
R
<
PageInfo
<
BannerDto
>>
getList
(
AdvertisingQueryVo
advertisingQueryVo
)
{
log
.
info
(
"BannerServiceImpl[].getList[].input.param:advertisingQueryVo:
{}
"
+
advertisingQueryVo
);
log
.
info
(
"BannerServiceImpl[].getList[].input.param:advertisingQueryVo:"
+
advertisingQueryVo
);
if
(
null
==
advertisingQueryVo
)
{
if
(
null
==
advertisingQueryVo
)
{
return
R
.
error
(
"输入参数无效"
);
return
R
.
error
(
"输入参数无效"
);
}
}
...
@@ -124,13 +124,13 @@ public class BannerServiceImpl extends ServiceImpl<BannerMapper, Banner> impleme
...
@@ -124,13 +124,13 @@ public class BannerServiceImpl extends ServiceImpl<BannerMapper, Banner> impleme
}
}
@Override
@Override
public
R
putIn
(
Integer
id
,
Integer
status
)
{
public
R
<
Boolean
>
putIn
(
Integer
id
,
Integer
status
)
{
log
.
info
(
"BannerServiceImpl[].putIn[].input.param,status,id"
+
status
,
id
);
log
.
info
(
"BannerServiceImpl[].putIn[].input.param,status
:{}
,id"
+
status
,
id
);
//判断数据是否正确
//判断数据是否正确
if
(
id
==
null
||
id
.
equals
(
""
)
)
{
if
(
null
==
id
)
{
return
R
.
error
(
"缺少重要数据"
);
return
R
.
error
(
"缺少重要数据"
);
}
}
if
(
status
==
null
||
status
.
equals
(
""
)
)
{
if
(
status
==
null
)
{
return
R
.
error
(
"缺少重要数据"
);
return
R
.
error
(
"缺少重要数据"
);
}
}
if
(
status
<
0
||
status
>
1
)
{
if
(
status
<
0
||
status
>
1
)
{
...
...
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