Crunchy
2024-07-23 dd43f10cba754d4a7b371b9bf39db262b94d3c10
user-server/src/main/resources/mapper/UserMapper.xml
@@ -39,4 +39,9 @@
        from user
        where state = 1
    </select>
    <select id="getCustom" resultType="com.yuanchu.mom.pojo.User">
        select u.id,c.company,u.name,c.code,u.phone,c.id departId from user u
        left join custom c on u.company = c.id
        where u.id = #{userId}
    </select>
</mapper>