linwei
2024-02-03 a55603f5caabb6578cc85489a2500a2d7a24eb60
src/main/java/org/springblade/modules/taskPlaceRectification/mapper/TaskPlaceRectificationMapper.xml
@@ -165,7 +165,7 @@
        jtpr.signature_path,
        jtpr.create_user,
        jtpr.image_urls,
        bd.dept_name,
        jpag.pcs_name deptName,
        jp.id jpid,
        jp.place_name,
        jp.location,
@@ -186,8 +186,8 @@
        LEFT JOIN blade_region br ON br.`code` = jg.community_code
        LEFT JOIN jczz_place_ext jpe ON jpe.place_id = jp.id
        LEFT JOIN blade_user bu ON bu.id = jtpr.create_user
        LEFT JOIN blade_dept bd ON bu.dept_id = bd.id
        LEFT JOIN jczz_doorplate_address jda on jda.address_code=jtpr.house_code
        LEFT JOIN jczz_police_affairs_grid jpag on jpag.community_code= jg.community_code
        <where>
            <if test="taskPalce.id != null ">and id = #{taskPalce.id}</if>
            <if test="taskPalce.placeCheckId != null ">and place_check_id = #{taskPalce.placeCheckId}</if>
@@ -256,12 +256,8 @@
                    </when>
                </choose>
            </if>
            and jtpr.create_time=(
            SELECT MAX(create_time) FROM jczz_task_place_rectification where jtpr.house_code=house_code
            )
            order by jtpr.create_time desc
        </where>
        order by jtpr.create_time desc
    </select>