linwe
2024-05-29 c10d6358b9f014375a13821465bc978d0c0da22e
src/main/java/org/springblade/modules/task/mapper/TaskLabelReportingEventMapper.xml
@@ -58,6 +58,11 @@
        <if test="taskLabelReportingEvent.userId != null and taskLabelReportingEvent.userId != ''">
            AND jtlre.user_id = #{taskLabelReportingEvent.userId}
        </if>
        <if test="taskLabelReportingEvent.houseCode != null  and taskLabelReportingEvent.houseCode != ''">
            and jp.house_code = #{taskLabelReportingEvent.houseCode}
        </if>
        <if test="taskLabelReportingEvent.eventType != null and taskLabelReportingEvent.eventType != ''">
            AND jtlre.event_type = #{taskLabelReportingEvent.eventType}
        </if>
@@ -119,7 +124,7 @@
                <when test="regionChildCodesList !=null and regionChildCodesList.size()>0">
                    and
                    (
                    jg.grid_code in
                    jg.community_code in
                    <foreach collection="regionChildCodesList" item="code" open="(" close=")" separator=",">
                        #{code}
                    </foreach>
@@ -370,5 +375,27 @@
        order by jtlre.create_time desc,jtlre.id desc
    </select>
    <!--二手交易自定义分页查询-->
    <select id="getDetail" resultType="org.springblade.modules.task.vo.TaskLabelReportingEventVO">
        select
        jtlre.*,
        jp.place_name,
        jp.principal,
        jp.principal_phone,
        jp.nine_type ,
        jp.front_type ,
        jp.location
        from
        jczz_task_label_reporting_event jtlre
        LEFT JOIN jczz_place jp ON jtlre.place_id=jp.id and jp.is_deleted = 0
        where jtlre.is_deleted = 0
        <if test="taskLabelReportingEvent.id != null">
            AND jtlre.id = #{taskLabelReportingEvent.id}
        </if>
        <if test="taskLabelReportingEvent.taskId != null">
            AND jtlre.task_id = #{taskLabelReportingEvent.taskId}
        </if>
    </select>
</mapper>