liujie
2023-10-26 5ecb954f03f2da90df620155cc98edf3b8184b3d
cloud-server-management/src/main/resources/mapper/DeptMapper.xml
@@ -23,13 +23,19 @@
      ELSE
      'false'
      END
      ) as isOpen from sys_dept
      ) as isOpen from sys_dept where 1=1
      <if test="type ==3 ">
            and objectType =3 and objectId =#{id}
        </if>
   </select>
    <select id="list" resultType="map">
        select * from sys_dept
        select * from sys_dept where 1=1
        <if test="condition != null and condition != ''">
            where simplename like CONCAT('%',#{condition},'%') or fullname like CONCAT('%',#{condition},'%')
            and  simplename like CONCAT('%',#{condition},'%') or fullname like CONCAT('%',#{condition},'%')
        </if>
        <if test="objectType == 3">
            and  objectType = 3 and objectId =#{objectId}
        </if>
        order by num ASC
    </select>