xuhy
2025-05-26 a230f6653b7c87c3529bd5640886c22d688509c4
ruoyi-system/src/main/resources/mapper/system/TQaProduceReportMapper.xml
@@ -47,17 +47,20 @@
            <if test="query.teamName != null and query.teamName != ''">
                and tpt.team_name like concat('%', #{query.teamName}, '%')
            </if>
            <if test="query.reportType != null">
                and tqpr.report_type = #{query.reportType}
            </if>
            <if test="query.status != null">
                and tqpr.status = #{query.status}
            </if>
            <if test="query.status == null">
                and tqpr.status != -1
            </if>
            <if test="query.teamIds != null and query.teamIds.size() > 0">
                and tqpr.team_id in
                <foreach collection="query.teamIds" item="teamId" open="(" separator="," close=")">
                    #{teamId}
                </foreach>
            </if>
            <if test="query.status == null">
                and tqpr.status != -1
            </if>
            AND tqpr.disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()}
        </where>
@@ -80,6 +83,9 @@
            <if test="query.teamName != null and query.teamName != ''">
                and tpt.team_name like concat('%', #{query.teamName}, '%')
            </if>
            <if test="query.reportType != null">
                and tqpr.report_type = #{query.reportType}
            </if>
            <if test="query.status != null">
                and tqpr.status = #{query.status}
            </if>