linwei
2024-01-19 7bc12c8ae5f7793dd4b2d512e830b84739a3a089
src/main/java/org/springblade/modules/ownersCommittee/mapper/OwnersCommitteeMapper.xml
@@ -3,7 +3,8 @@
<mapper namespace="org.springblade.modules.ownersCommittee.mapper.OwnersCommitteeMapper">
    <!-- 通用查询映射结果 -->
    <resultMap id="ownersCommitteeResultMap" type="org.springblade.modules.ownersCommittee.entity.OwnersCommitteeEntity">
    <resultMap id="ownersCommitteeResultMap"
               type="org.springblade.modules.ownersCommittee.entity.OwnersCommitteeEntity">
    </resultMap>
@@ -12,18 +13,38 @@
        <where>
            <if test="ownersCommittee.id != null "> and id = #{ownersCommittee.id}</if>
            <if test="ownersCommittee.areaId != null "> and area_id = #{ownersCommittee.areaId}</if>
            <if test="ownersCommittee.areaName != null  and ownersCommittee.areaName != ''"> and area_name = #{ownersCommittee.areaName}</if>
            <if test="ownersCommittee.areaName != null  and ownersCommittee.areaName != ''">and area_name =
                #{ownersCommittee.areaName}
            </if>
            <if test="ownersCommittee.establishTime != null "> and establish_time = #{ownersCommittee.establishTime}</if>
            <if test="ownersCommittee.imageUrl != null  and ownersCommittee.imageUrl != ''"> and image_url = #{ownersCommittee.imageUrl}</if>
            <if test="ownersCommittee.latitude != null  and ownersCommittee.latitude != ''"> and latitude = #{ownersCommittee.latitude}</if>
            <if test="ownersCommittee.longitude != null  and ownersCommittee.longitude != ''"> and longitude = #{ownersCommittee.longitude}</if>
            <if test="ownersCommittee.location != null  and ownersCommittee.location != ''"> and location = #{ownersCommittee.location}</if>
            <if test="ownersCommittee.mobile != null  and ownersCommittee.mobile != ''"> and mobile = #{ownersCommittee.mobile}</if>
            <if test="ownersCommittee.name != null  and ownersCommittee.name != ''"> and name like concat('%',#{ownersCommittee.name},'%') </if>
            <if test="ownersCommittee.peopleTotal != null  and ownersCommittee.peopleTotal != ''"> and people_total = #{ownersCommittee.peopleTotal}</if>
            <if test="ownersCommittee.imageUrl != null  and ownersCommittee.imageUrl != ''">and image_url =
                #{ownersCommittee.imageUrl}
            </if>
            <if test="ownersCommittee.latitude != null  and ownersCommittee.latitude != ''">and latitude =
                #{ownersCommittee.latitude}
            </if>
            <if test="ownersCommittee.longitude != null  and ownersCommittee.longitude != ''">and longitude =
                #{ownersCommittee.longitude}
            </if>
            <if test="ownersCommittee.location != null  and ownersCommittee.location != ''">and location =
                #{ownersCommittee.location}
            </if>
            <if test="ownersCommittee.mobile != null  and ownersCommittee.mobile != ''">and mobile =
                #{ownersCommittee.mobile}
            </if>
            <if test="ownersCommittee.name != null  and ownersCommittee.name != ''">and name like
                concat('%',#{ownersCommittee.name},'%')
            </if>
            <if test="ownersCommittee.peopleTotal != null  and ownersCommittee.peopleTotal != ''">and people_total =
                #{ownersCommittee.peopleTotal}
            </if>
            <if test="ownersCommittee.principalId != null "> and principal_id = #{ownersCommittee.principalId}</if>
            <if test="ownersCommittee.principalName != null  and ownersCommittee.principalName != ''"> and principal_name = #{ownersCommittee.principalName}</if>
            <if test="ownersCommittee.profile != null  and ownersCommittee.profile != ''"> and profile = #{ownersCommittee.profile}</if>
            <if test="ownersCommittee.principalName != null  and ownersCommittee.principalName != ''">and principal_name
                = #{ownersCommittee.principalName}
            </if>
            <if test="ownersCommittee.profile != null  and ownersCommittee.profile != ''">and profile =
                #{ownersCommittee.profile}
            </if>
            <if test="ownersCommittee.session != null "> and session = #{ownersCommittee.session}</if>
            <if test="ownersCommittee.startTime != null "> and start_time = #{ownersCommittee.startTime}</if>
            <if test="ownersCommittee.endTime != null "> and end_time = #{ownersCommittee.endTime}</if>
@@ -35,6 +56,13 @@
            <if test="ownersCommittee.createTime != null "> and create_time = #{ownersCommittee.createTime}</if>
            <if test="ownersCommittee.updateTime != null "> and update_time = #{ownersCommittee.updateTime}</if>
            <if test="ownersCommittee.deleteFlag != null "> and delete_flag = #{ownersCommittee.deleteFlag}</if>
            <if test="ownersCommittee.areaIdList != null ">
                and area_id in
                <foreach collection="ownersCommittee.areaIdList" item="item" separator="," open="(" close=")">
                    #{item}
                </foreach>
            </if>
        </where>
    </select>
@@ -104,7 +132,9 @@
        id = #{id}
    </select>
    <select id="selectOwnersCommitteeList" parameterType="org.springblade.modules.ownersCommittee.dto.OwnersCommitteeDTO" resultMap="OwnersCommitteeDTOResult">
    <select id="selectOwnersCommitteeList"
            parameterType="org.springblade.modules.ownersCommittee.dto.OwnersCommitteeDTO"
            resultMap="OwnersCommitteeDTOResult">
        <include refid="selectOwnersCommittee"/>
        <where>
            <if test="id != null "> and id = #{id}</if>