| | |
| | | import com.ruoyi.common.core.domain.entity.SysDept; |
| | | import com.ruoyi.common.core.domain.entity.SysUserDept; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.List; |
| | |
| | | |
| | | public int deleteSysUserDeptByCode(SysUserDept sysUserDept); |
| | | |
| | | public int deleteSysUserDeptByUserId(SysUserDept sysUserDept); |
| | | |
| | | public int updateSysUserDeptForSync(SysUserDept sysUserDept); |
| | | |
| | | /** |
| | | * 根据用户ID、部门编码查询用户部门关系(包含已逻辑删除的数据) |
| | | * 与 hosp_info / dept_info 的生成逻辑保持一致,部门编码是用户部门关系的业务唯一键 |
| | | * |
| | | * @param userId 用户ID |
| | | * @param deptCode 部门编码 |
| | | * @param orgid 机构ID,可为空 |
| | | * @return 用户部门关系 |
| | | */ |
| | | public SysUserDept selectSysUserDeptByUserAndCode(@Param("userId") Long userId, @Param("deptCode") String deptCode, @Param("orgid") String orgid); |
| | | } |