hangzhoumesParent/moduleService/UnLoadGlassModule/src/main/resources/mapper/DownGlassInfoMapper.xml
@@ -193,7 +193,38 @@
            </foreach>
        </if>
        group by a.flow_card_id, a.layer, a.width, a.height, a.filmsid, a.thickness, a.glass_type, a.id
        group by a.glass_id, a.flow_card_id, a.layer, a.width, a.height, a.filmsid, a.thickness, a.glass_type
        order by a.id
    </select>
    <select id="downGlassLabelPrintScan" resultType="java.util.Map">
        select a.flow_card_id,
        a.layer,
        a.width,
        a.height,
        a.filmsid,
        a.thickness,
        a.glass_type,
        COUNT(*) AS quantity,
        a.tempering_layout_id,
        a.tempering_feed_sequence
        from  glass_info a
        where
        1=1
        <if test="processId != null">
            and a.flow_card_id = #{processId}
        </if>
        <if test="technologyNumber != null">
            and a.layer = #{technologyNumber}
        </if>
        <if test="glassIds != null and !glassIds.isEmpty()">
            and a.glass_id in
            <foreach collection="glassIds" item="item" open="(" close=")" separator=",">
                #{item}  <!-- 这里 MyBatis 会自动处理字符串 -->
            </foreach>
        </if>
        group by a.glass_id, a.flow_card_id, a.layer, a.width, a.height, a.filmsid, a.thickness, a.glass_type
        order by a.id
    </select>