huliguo
2025-07-03 e3a2245265516fef78b4737d6fffc939e7c5e0af
pt-errand/src/main/resources/mapper/ReportMapper.xml
@@ -9,13 +9,12 @@
            tr.community_name as communityName,
            tre.name as regionName,
            tr.address_detail as addressDetail,
            tau.name as appUserName,
            tau.phone as appUserPhone,
            tr.username as appUserName,
            tr.phone as appUserPhone,
            tr.create_time as createTime,
            tr.status as status
            from
                t_report tr
        left join t_app_user tau on tr.app_user_id = tau.id
        left join t_region tre on tr.region_id = tre.id
        where
            tr.del_flag=0
@@ -26,14 +25,14 @@
            and tre.id =#{dto.regionId}
        </if>
        <if test="dto.appUserName!=null and ''!=dto.appUserName">
            and tau.name like concat('%',#{dto.appUserName},'%')
            and tr.username like concat('%',#{dto.appUserName},'%')
        </if>
        <if test="dto.appUserPhone!=null and ''!=dto.appUserPhone">
            and tau.phone like concat('%',#{dto.appUserPhone},'%')
            and tr.phone like concat('%',#{dto.appUserPhone},'%')
        </if>
        <if test="dto.status!=null">
            and tr.status =#{dto.status}
        </if>
    order by tr.create_time desc
    </select>
</mapper>