| | |
| | | package com.ruoyi.production.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | 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 javax.annotation.ManagedBean; |
| | | 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 查询生产订单。 |
| | | */ |
| | | 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); |
| | | |
| | | /** |
| | | * 校验同一生产订单下的上一道工序是否已经报工。 |
| | | */ |
| | | boolean checkPreviousProcessReported(@Param("workOrderId") Long workOrderId, @Param("currentDragSort") Integer currentDragSort); |
| | | } |