Commit 147bf1eb authored by licc's avatar licc

格式修改2

parent 2bae35a2
......@@ -2,6 +2,9 @@ package cn.wisenergy.common.utils;
import java.util.Random;
/**
* @author 86187
*/
public class SecretkeyUtil {
public static String getSecretkey(){
......
......@@ -73,7 +73,7 @@ public class BannerServiceImpl extends ServiceImpl<BannerMapper, Banner> impleme
@Override
public R<Banner> getById(Integer id) {
log.info("BannerServiceImpl[].getById[].input.param:id" + id);
if (null == id || id.equals("")) {
if (null == id) {
return R.error("传入参数无效");
}
Banner banner = bannerMapper.getById(id);
......@@ -87,7 +87,7 @@ public class BannerServiceImpl extends ServiceImpl<BannerMapper, Banner> impleme
@Override
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) {
return R.error("输入参数无效");
}
......@@ -124,13 +124,13 @@ public class BannerServiceImpl extends ServiceImpl<BannerMapper, Banner> impleme
}
@Override
public R putIn(Integer id, Integer status) {
log.info("BannerServiceImpl[].putIn[].input.param,status,id" + status, id);
public R<Boolean> putIn(Integer id, Integer status) {
log.info("BannerServiceImpl[].putIn[].input.param,status:{},id" + status, id);
//判断数据是否正确
if (id == null || id.equals("")) {
if (null == id) {
return R.error("缺少重要数据");
}
if (status == null || status.equals("")) {
if (status == null) {
return R.error("缺少重要数据");
}
if (status < 0 || status > 1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment