ZhuDongming
2020-04-26 dba54bf8c8f9299d61c05bf3a941708ea399c998
src/main/resources/mapper/OrganizationMapper.xml
@@ -44,7 +44,8 @@
                </when>
                <when test="criterion.listValue">
                  and ${criterion.condition}
                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
                                    <foreach close=")" collection="criterion.value" item="listItem" open="("
                                             separator=",">
                    #{listItem}
                  </foreach>
                </when>
@@ -103,4 +104,14 @@
    <select id="selectLowerOrgIds" resultType="java.lang.Integer">
            call proc_lowerOrgIds_GetByOrgId(#{orgId,jdbcType=INTEGER});
    </select>
    <select id="getOrganizationList" resultMap="BaseResultMap">
        select
        <include refid="Base_Column_List"/>
        from organization
        where is_delete=0
        <if test="organizationName != 'null'">
            and name like concat('%',#{organizationName},'%')
        </if>
    </select>
</mapper>