|
|
@@ -2,6 +2,7 @@
|
|
|
package org.springblade.system.service.impl;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
@@ -47,7 +48,7 @@ public class ParamServiceServiceImpl extends ServiceImpl<ParamServiceMapper, Par
|
|
|
public String getValueNew(String paramKey) {
|
|
|
String deptId = AuthUtil.getDeptId();
|
|
|
R<User> r = userClient.userInfoById(AuthUtil.getUserId());
|
|
|
- if (r.isSuccess()) {
|
|
|
+ if (r.isSuccess()&& ObjectUtils.isNotNull(r.getData()) && ObjectUtils.isNotNull(r.getData().getDeptPid())) {
|
|
|
String deptIds = r.getData().getDeptPid();
|
|
|
String[] arr = deptIds.split(",");
|
|
|
if (arr.length > 0) {
|