|
|
@@ -2,6 +2,7 @@ package com.muchinfo.mtp3century.service.impl;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.StringUtils;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.fasterxml.jackson.databind.JsonNode;
|
|
|
@@ -29,7 +30,6 @@ import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
-import org.springframework.util.StringUtils;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
@@ -181,11 +181,11 @@ public class SystemmanagerServiceImpl extends ServiceImpl<ISystemmanagerMapper,
|
|
|
continue;
|
|
|
}
|
|
|
String[] sen_ = sen.split(",");
|
|
|
- for (int i = 0; i < sen_.length; i++) {
|
|
|
- if (StringUtils.isEmpty(sen_[i])) {
|
|
|
+ for (String s : sen_) {
|
|
|
+ if (StringUtils.isEmpty(s)) {
|
|
|
continue;
|
|
|
}
|
|
|
- set.add(sen_[i]);
|
|
|
+ set.add(s);
|
|
|
}
|
|
|
}
|
|
|
return set;
|
|
|
@@ -270,7 +270,7 @@ public class SystemmanagerServiceImpl extends ServiceImpl<ISystemmanagerMapper,
|
|
|
Systemmanager systemmanager = iSystemmanagerMapper.selectOne(new QueryWrapper<Systemmanager>().eq("LOGINCODE", iCommonService.getUserLoginCode(request)));
|
|
|
Systemmanager addUser = iSystemmanagerMapper.selectOne(new QueryWrapper<Systemmanager>().eq("LOGINCODE", systemUserVo.getLogincode()));
|
|
|
//判断当前管理员信息是否存在,存在则更改
|
|
|
- if (StringUtils.isEmpty(systemUserVo.getAutoid())) {
|
|
|
+ if (systemUserVo.getAutoid() == null) {
|
|
|
if (Objects.nonNull(addUser)) {
|
|
|
return AjaxResult.error(Constants.Error_Code_Design, MessageType.LOGIN_ERROR_CODE_005.getCode(), request.getHeader("Accept-Language"));
|
|
|
}
|