value
2024-06-12 3a68e3ba8e4838b2ca9750399225105b4d028591
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>