|
|
@@ -1,5 +1,6 @@
|
|
|
package com.jzg.organization.service.impl;
|
|
|
|
|
|
+import cn.hutool.core.collection.CollUtil;
|
|
|
import cn.hutool.json.JSONUtil;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
@@ -14,6 +15,8 @@ import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
@Service
|
|
|
public class SysOrganizationUserLinkServiceImpl extends ServiceImpl<SysOrganizationUserLinkServiceMapper, SysOrganizationUserLink> implements SysOrganizationUserLinkService{
|
|
|
|
|
|
@@ -52,8 +55,9 @@ public class SysOrganizationUserLinkServiceImpl extends ServiceImpl<SysOrganizat
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public SysOrganizationUserLink getOrganizationUser(String userId, String systemCode) {
|
|
|
- return sysOrganizationUserLinkServiceMapper.getOrganizationUser(userId,systemCode);
|
|
|
+ public SysOrganizationUserLink getOrganizationUser(Long userId, String systemCode) {
|
|
|
+ List<SysOrganizationUserLink> organizationUser = sysOrganizationUserLinkServiceMapper.getOrganizationUser(userId, systemCode);
|
|
|
+ return CollUtil.getFirst(organizationUser);
|
|
|
}
|
|
|
|
|
|
@Override
|