liusheng
2025-12-28 73f5b82df781d2b061ba24d29182f6898b5535d9
ruoyi-project/src/main/resources/mapper/project/BaseOrganizationMapper.xml
@@ -35,11 +35,19 @@
        <result property="communityname" column="CommunityName"/>
        <result property="countycode" column="CountyCode"/>
        <result property="countyname" column="CountyName"/>
        <result property="reporterName" column="reporter_name"/>
        <result property="reporterNo" column="reporter_no"/>
        <result property="coordinatorName" column="coordinator_name"/>
        <result property="coordinatorNo" column="coordinator_no"/>
    </resultMap>
    <sql id="selectBaseOrganizationVo">
        select ID,
               OrganizationName,
               reporter_name,
               reporter_no,
               coordinator_name,
               coordinator_no,
               OrganizationID,
               LogoUrl,
               RegisterTime,
@@ -104,6 +112,10 @@
                #{communityname}, '%')
            </if>
            <if test="countycode != null  and countycode != ''">and CountyCode = #{countycode}</if>
            <if test="reporterName != null  and reporterName != ''">and reporter_name = #{reporterName}</if>
            <if test="reporterNo != null  and reporterNo != ''">and reporter_no = #{reporterNo}</if>
            <if test="coordinatorName != null  and coordinatorName != ''">and coordinator_name = #{coordinatorName}</if>
            <if test="coordinatorNo != null  and coordinatorNo != ''">and coordinatorNo = #{coordinatorNo}</if>
            <if test="countyname != null  and countyname != ''">and CountyName like concat('%', #{countyname}, '%')</if>
        </where>
    </select>