zxl
5 天以前 8f2e8522daf081ad4da027c39a776fdd9483b97e
ycl-server/src/main/resources/mapper/zgyw/ReportMapper.xml
@@ -51,6 +51,15 @@
        </if>
        <if test="query.keyword != null and query.keyword != ''">
            AND (pt.point_name like concat('%', #{query.keyword}, '%') OR p.yw_person_name like concat('%', #{query.keyword}, '%'))
        </if>
        <if test="query.reportTimeStart != null and query.reportTimeEnd != null">
            AND r.create_time BETWEEN #{query.reportTimeStart} AND #{query.reportTimeEnd}
        </if>
        <if test="query.effectTimeStart != null">
            AND r.begin_create_time >= #{query.effectTimeStart}
        </if>
        <if test="query.effectTimeEnd != null">
            AND r.end_create_time &lt;= #{query.effectTimeEnd}
        </if>
        GROUP BY
            r.id, r.report_materials, r.create_time, r.report_type, r.report_content, r.status, r.serial_number,