src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
@@ -393,4 +393,9 @@
        and (sa.apply_status !=2 or sa.apply_status is null)
        and bu.dept_id = #{deptId}
    </select>
    <!--计算保安人员年龄-->
    <select id="getUserAgeById" resultType="org.springblade.modules.system.vo.UserVO">
        select id,ifnull(TIMESTAMPDIFF(YEAR, birthday, CURDATE()),0) age from blade_user where id = #{userId}
    </select>
</mapper>