根据id获取多个用户信息的接口完成

This commit is contained in:
xuetao.li
2023-04-19 18:07:37 +08:00
parent 9092f1a38f
commit ab18d499c2
6 changed files with 9 additions and 10 deletions
@@ -31,7 +31,7 @@ public interface UserEODao extends BaseMapper<UserEO> {
*/
UserEO getUserWithRoles(String id);
List<UserVO> getUserByIdList(List<String> userIdList);
List<UserVO> getUserByIdList(@Param("userIdList") List<String> userIdList);
// 根据account获取未逻辑删除的UserEO
UserEO getUserEOByAccountNotDeleted(String account);
@@ -60,7 +60,7 @@ public class OrgEO extends BaseEntity implements Serializable {
/**
* 部门14位码
*/
@TableField("BPMN_14")
@TableField("BMDM_14")
private String bmdm14;
/**
@@ -23,7 +23,6 @@ import com.adc.da.base.entity.BaseEntity;
*
* @author comments created by Lee Kwanho
* date 2018-08-17
* @see com.adc.da.sys.controller.RoleEOController
*/
public class RoleEO extends BaseEntity implements Serializable {
@@ -25,7 +25,7 @@ import com.adc.da.util.utils.UUID;
*
* @author comments created by Lee Kwanho
* @see RoleEODao
* @see com.adc.da.sys.controller.RoleEOController
* @see com.adc.da.sys.service.RoleEOService
*/
@Service("roleEOService")
@Transactional
@@ -50,6 +50,6 @@ public class UserVO {
/**
* 部门列表
*/
private List<OrgEO> orgList = new ArrayList();
private List<OrgEO> orgEOList = new ArrayList();
}
@@ -60,7 +60,7 @@
</resultMap>
<!-- 包含用户基本数据,角色数据,组织机构数据等-->
<resultMap id="UserDetailMap" extends="BaseResultMap" type="com.adc.da.sys.entity.UserEO">
<resultMap id="UserDetailMap" extends="BaseResultMap" type="com.adc.da.sys.vo.UserVO">
<result column="usid" property="usid"></result>
<result column="usname" property="usname"></result>
<result column="account" property="account"></result>
@@ -141,7 +141,7 @@
select
users.usid,
users.usname,
users.account
users.account,
r.id as r_id,
r.data_scope as r_data_scope,
r.del_flag as r_delFlag,
@@ -151,13 +151,13 @@
o.org_code as o_org_code,
o.org_name as o_org_name,
o.sup_org_code as o_sup_org_code,
o.bmdm14 as o_bmdm14
o.bmdm_14 as o_bmdm14
from TS_USER users
left join TR_USER_ROLE ur on users.usid = ur.user_id
left join TS_ROLE r on ur.role_id = r.id
left join TS_USER_ORG uo on users.usid = uo.user_id
left join TR_USER_ORG uo on users.usid = uo.user_id
left join TS_ORG o on uo.org_id = o.id
where del_flag != 1
where users.del_flag != 1
and users.usid in
<foreach collection="userIdList" item="id" open="(" separator="," close=")">
#{id}