lidongdong
2022-09-23 1ed527ab5a90464e768fb4e9df3b1b730a3ffc16
flower_city/src/main/resources/mapper/SysUserMapper.xml
@@ -27,8 +27,6 @@
        <result property="departmentId"      column="department_id"      />
        <result property="stairId"      column="stair_id"      />
        <result property="secondLevelId"      column="second_level_id"      />
        <result property="departmentName"      column="department_name"      />
        <result property="departmentArea"      column="department_area"      />
        <result property="leisureState"      column="leisure_state"      />
@@ -36,9 +34,6 @@
        <result property="masterNames"      column="master_names"      />
        <result property="transactionIds"      column="transaction_ids"      />
        <result property="transactionNames"      column="transaction_names"      />
    </resultMap>
    <sql id="selectSysUserVo">
@@ -50,6 +45,7 @@
            phonenumber,
            sex,
            avatar,
            password,
            salt,
            status,
            del_flag,
@@ -60,19 +56,19 @@
            create_time,
            update_by,
            update_time,
            remark,
            role_ids,
            data_permission,
            department_id,
            stair_id,
            second_level_id,
            (select organization_name from automessage_organization_chart where automessage_sys_user.department_id=automessage_organization_chart.id) as department_name,
            department_area,
            leisure_state,
            master_ids,
            master_names,
            transaction_ids,
            transaction_names,
            remark
            (select organization_name from automessage_organization_chart where automessage_sys_user.department_id=automessage_organization_chart.id) as department_name
        FROM
            automessage_sys_user
    </sql>