| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.production.dto.ProductionProductMainDto; |
| | | import com.ruoyi.production.dto.SalesLedgerProductionAccountingDto; |
| | | import com.ruoyi.production.pojo.ProductOrder; |
| | | import com.ruoyi.production.pojo.ProductionProductMain; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | @Mapper |
| | | public interface ProductionProductMainMapper extends BaseMapper<ProductionProductMain> { |
| | | |
| | | IPage<ProductionProductMainDto> listPageProductionProductMainDto(Page page, @Param("c") ProductionProductMainDto productionProductMainDto); |
| | | |
| | | /** |
| | | * 根据工单ID批量删除生产主表数据 |
| | | */ |
| | | int deleteByWorkOrderIds(@Param("workOrderIds") List<Long> workOrderIds); |
| | | |
| | | /** |
| | | * 根据报工id查询生产订单 |
| | | * @param productMainId |
| | | * @return |
| | | */ |
| | | ProductOrder getOrderByMainId(@Param("productMainId") Long productMainId); |
| | | |
| | | IPage<ProductionProductMainDto> listProductionDetails(@Param("ew") SalesLedgerProductionAccountingDto salesLedgerProductionAccountingDto, Page page); |
| | | |
| | | ArrayList<Long> listMain(List<Long> idList); |
| | | |
| | | List<ProductionProductMainDto> getByProductWorkOrderId(Long productWorkOrderId); |
| | | |
| | | /** |
| | | * 检查之前的工序是否有被隔离的不合格记录 |
| | | * @param productRouteId 当前工序的路由ID |
| | | * @param currentDragSort 当前工序的排序 |
| | | * @return 是否有隔离的不合格记录 |
| | | */ |
| | | boolean checkPreviousProcessReported(@Param("productRouteId") Long productRouteId, @Param("currentDragSort") Integer currentDragSort); |
| | | } |