chenlu
2025-12-01 d0e9bb6edfee85a777ddfb7810fc0c1a6a442a76
north-glass-erp/src/main/resources/mapper/pp/Report.xml
@@ -845,6 +845,12 @@
        <if test="damageReportDTO.reportingWorkId != null and damageReportDTO.reportingWorkId != ''">
            and rw.reporting_work_id like concat('%', #{damageReportDTO.reportingWorkId}, '%')
        </if>
        <if test="damageReportDTO.childWidth != null and damageReportDTO.childWidth != ''">
            and ogd.child_width regexp REGEXP_REPLACE(#{damageReportDTO.childWidth},'\\.0+$','')
        </if>
        <if test="damageReportDTO.childHeight != null and damageReportDTO.childHeight != ''">
            and ogd.child_height regexp REGEXP_REPLACE(#{damageReportDTO.childHeight},'\\.0+$','')
        </if>
        GROUP BY
        dd.id
        limit #{offset},#{pageSize};
@@ -910,6 +916,12 @@
        </if>
        <if test="damageReportDTO.reportingWorkId != null and damageReportDTO.reportingWorkId != ''">
            and rw.reporting_work_id like concat('%', #{damageReportDTO.reportingWorkId}, '%')
        </if>
        <if test="damageReportDTO.childWidth != null and damageReportDTO.childWidth != ''">
            and ogd.child_width regexp REGEXP_REPLACE(#{damageReportDTO.childWidth},'\\.0+$','')
        </if>
        <if test="damageReportDTO.childHeight != null and damageReportDTO.childHeight != ''">
            and ogd.child_height regexp REGEXP_REPLACE(#{damageReportDTO.childHeight},'\\.0+$','')
        </if>
        limit #{offset},#{pageSize};
    </select>
@@ -1792,7 +1804,12 @@
        <if test="teamOutputDTO.batch != null and teamOutputDTO.batch != ''">
            AND o.batch REGEXP #{teamOutputDTO.batch}
        </if>
        <if test="teamOutputDTO.width != null and teamOutputDTO.width != ''">
            and ogd.child_width regexp REGEXP_REPLACE(#{teamOutputDTO.width},'\\.0+$','')
        </if>
        <if test="teamOutputDTO.height != null and teamOutputDTO.height != ''">
            and ogd.child_height regexp REGEXP_REPLACE(#{teamOutputDTO.height},'\\.0+$','')
        </if>
        <choose>
            <when test="laminating == ''">
                GROUP BY
@@ -2009,7 +2026,12 @@
        <if test="teamOutputDTO.batch != null and teamOutputDTO.batch != ''">
            AND o.batch REGEXP #{teamOutputDTO.batch}
        </if>
        <if test="teamOutputDTO.width != null and teamOutputDTO.width != ''">
            and ogd.child_width regexp REGEXP_REPLACE(#{teamOutputDTO.width},'\\.0+$','')
        </if>
        <if test="teamOutputDTO.height != null and teamOutputDTO.height != ''">
            and ogd.child_height regexp REGEXP_REPLACE(#{teamOutputDTO.height},'\\.0+$','')
        </if>
        <choose>
            <when test="laminating == ''">
                GROUP BY
@@ -2646,6 +2668,12 @@
        <if test="damageReportDTO.reportingWorkId != null and damageReportDTO.reportingWorkId != ''">
            and rw.reporting_work_id like concat('%', #{damageReportDTO.reportingWorkId}, '%')
        </if>
        <if test="damageReportDTO.childWidth != null and damageReportDTO.childWidth != ''">
            and ogd.child_width regexp REGEXP_REPLACE(#{damageReportDTO.childWidth},'\\.0+$','')
        </if>
        <if test="damageReportDTO.childHeight != null and damageReportDTO.childHeight != ''">
            and ogd.child_height regexp REGEXP_REPLACE(#{damageReportDTO.childHeight},'\\.0+$','')
        </if>
    </select>
    <select id="teamOutputFootSum">
@@ -2764,6 +2792,12 @@
        <if test="teamOutputDTO.batch != null and teamOutputDTO.batch != ''">
            AND o.batch REGEXP #{teamOutputDTO.batch}
        </if>
        <if test="damageReportDTO.childWidth != null and damageReportDTO.childWidth != ''">
            and ogd.child_width regexp REGEXP_REPLACE(#{damageReportDTO.childWidth},'\\.0+$','')
        </if>
        <if test="damageReportDTO.childHeight != null and damageReportDTO.childHeight != ''">
            and ogd.child_height regexp REGEXP_REPLACE(#{damageReportDTO.childHeight},'\\.0+$','')
        </if>
        <choose>
            <when test="laminating == ''">
                GROUP BY