<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.biz.mapper.ArUserRecordMapper">

    <resultMap type="com.ruoyi.biz.domain.ArUserRecord" id="ArUserRecordResult">
        <result property="id" column="id"/>
        <result property="userId" column="user_id"/>
        <result property="classificationId" column="classification_id"/>
        <result property="createBy" column="create_by"/>
        <result property="createTime" column="create_time"/>
        <result property="updateBy" column="update_by"/>
        <result property="updateTime" column="update_time"/>
        <result property="delFlag" column="del_flag"/>
    </resultMap>

    <select id="selectUserVo" resultType="com.ruoyi.biz.domain.vo.ArUserVo">
        select u.*,count(u.id) as conut from ar_user u
        left join ar_user_record r on r.user_id=u.id
        <where>
            ${ew.sqlSegment}
        </where>
        group by u.id
    </select>

</mapper>
