liding
2026-05-20 4d99e718536ac77dff26dde8da7a59cdc9b52de8
src/main/java/com/ruoyi/production/mapper/ProductionProductMainMapper.java
@@ -19,14 +19,12 @@
    IPage<ProductionProductMainDto> listPageProductionProductMainDto(Page page, @Param("c") ProductionProductMainDto productionProductMainDto);
    /**
     * 根据工单ID批量删除生产主表数据
     * 根据工单 ID 批量删除报工主表数据。
     */
    int deleteByWorkOrderIds(@Param("workOrderIds") List<Long> workOrderIds);
    /**
     * 根据报工id查询生产订单
     * @param productMainId
     * @return
     * 根据报工 ID 查询生产订单。
     */
    ProductOrder getOrderByMainId(@Param("productMainId") Long productMainId);
@@ -37,10 +35,7 @@
    List<ProductionProductMainDto> getByProductWorkOrderId(Long productWorkOrderId);
    /**
     * 检查之前的工序是否有被隔离的不合格记录
     * @param productRouteId 当前工序的路由ID
     * @param currentDragSort 当前工序的排序
     * @return 是否有隔离的不合格记录
     * 校验同一生产订单下的上一道工序是否已经报工。
     */
    boolean checkPreviousProcessReported(@Param("productRouteId") Long productRouteId, @Param("currentDragSort") Integer currentDragSort);
    boolean checkPreviousProcessReported(@Param("workOrderId") Long workOrderId, @Param("currentDragSort") Integer currentDragSort);
}