参与者与系统用户整合
This commit is contained in:
@@ -2,6 +2,7 @@ package com.core.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.core.common.core.domain.model.LoginUserExtend;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.core.common.core.domain.entity.SysUser;
|
||||
@@ -125,4 +126,12 @@ public interface SysUserMapper {
|
||||
* @return 结果
|
||||
*/
|
||||
public SysUser checkEmailUnique(String email);
|
||||
|
||||
/**
|
||||
* 扩展属性
|
||||
*
|
||||
* @param userId 系统用户id
|
||||
* @return 扩展属性
|
||||
*/
|
||||
LoginUserExtend getLoginUserExtend(@Param("userId") Long userId);
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ package com.core.system.service;
|
||||
import java.util.List;
|
||||
|
||||
import com.core.common.core.domain.entity.SysUser;
|
||||
import com.core.common.core.domain.model.LoginUserExtend;
|
||||
|
||||
/**
|
||||
* 用户 业务层
|
||||
@@ -203,4 +204,12 @@ public interface ISysUserService {
|
||||
* @return 结果
|
||||
*/
|
||||
public String importUser(List<SysUser> userList, Boolean isUpdateSupport, String operName);
|
||||
|
||||
/**
|
||||
* 扩展属性
|
||||
*
|
||||
* @param userId 系统用户id
|
||||
* @return 扩展属性
|
||||
*/
|
||||
LoginUserExtend getLoginUserExtend(Long userId);
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ import java.util.stream.Collectors;
|
||||
|
||||
import javax.validation.Validator;
|
||||
|
||||
import com.core.common.core.domain.model.LoginUserExtend;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@@ -484,4 +485,16 @@ public class SysUserServiceImpl implements ISysUserService {
|
||||
}
|
||||
return successMsg.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* 扩展属性
|
||||
*
|
||||
* @param userId 系统用户id
|
||||
* @return 扩展属性
|
||||
*/
|
||||
@Override
|
||||
public LoginUserExtend getLoginUserExtend(Long userId) {
|
||||
return userMapper.getLoginUserExtend(userId);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -265,4 +265,12 @@
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<select id="getLoginUserExtend" resultType="com.core.common.core.domain.model.LoginUserExtend">
|
||||
SELECT T1.ID AS practitioner_id,
|
||||
T1.org_id AS org_id
|
||||
FROM adm_practitioner AS T1
|
||||
WHERE T1.delete_flag = '0'
|
||||
AND T1.user_id = #{userId} LIMIT 1
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user