44323
2023-12-12 cb574e765ea42dcde15a0766b7f707f2c54a005e
cloud-server-management/src/main/resources/mapper/DeptMapper.xml
@@ -24,23 +24,21 @@
      'false'
      END
      ) as isOpen from sys_dept where 1=1
      <if test="type ==3 ">
            and objectType =3 and objectId =#{id}
        </if>
        and objectType =#{type} and objectId =#{id}
   </select>
    <select id="list" resultType="map">
        select * from sys_dept where 1=1
        <if test="condition != null and condition != ''">
            and  simplename like CONCAT('%',#{condition},'%') or fullname like CONCAT('%',#{condition},'%')
        </if>
        <if test="objectType == 3">
            and  objectType = 3 and objectId =#{objectId}
        </if>
        <if test="objectType == 1">
            and  objectType = 1
        </if>
        order by num ASC
    <select id="list" resultType="java.util.Map">
            select * from sys_dept where 1=1
            <if test="condition != null and condition != ''">
                and  simplename like CONCAT('%',#{condition},'%') or fullname like CONCAT('%',#{condition},'%')
            </if>
            <if test="objectType == 3">
                and  objectType = 3 and objectId =#{objectId}
            </if>
            <if test="objectType == 1">
                and  objectType = 1
            </if>
            order by num ASC
    </select>
</mapper>