huang
8 天以前 f13ba9e05f653bc3083c4d17fe8658e67054131e
mes-processes/mes-plcSend/src/main/java/com/mes/device/service/GlassInfoService.java
@@ -60,5 +60,29 @@
     * @return 是否成功
     */
    boolean batchSaveOrUpdateGlassInfo(List<GlassInfo> glassInfos);
    /**
     * 查询最近扫码的玻璃ID列表
     *
     * @param minutesAgo 查询最近多少分钟内的记录,默认2分钟
     * @param maxCount 最大返回数量,默认20
     * @param workLine 工作线号(可选,用于过滤)
     * @return 玻璃ID列表
     */
    List<String> getRecentScannedGlassIds(Integer minutesAgo, Integer maxCount, String workLine);
    /**
     * 批量更新玻璃状态
     */
    boolean updateGlassStatus(List<String> glassIds, String status);
    /**
     * 将前端上传的 Excel 行数据转换为 MES 导入工程所需的 JSON 结构
     *
     * @param excelRows 前端解析后的行数据,字段示例:
     *                  glassId,width,height,thickness,quantity,orderNumber,filmsId,flowCardId,productName,customerName
     * @return 符合 MES 接口要求的请求体 Map
     */
    Map<String, Object> buildEngineerImportPayload(List<Map<String, Object>> excelRows);
}