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.ProductBomDto; import com.ruoyi.production.dto.ProductOrderDto; import com.ruoyi.production.dto.ProductStructureDto; import com.ruoyi.production.pojo.ProcessRoute; import com.ruoyi.production.pojo.ProductOrder; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.List; @Mapper public interface ProductOrderMapper extends BaseMapper { default IPage pageProductOrder(Page page, ProductOrderDto productOrder) { return pageProductOrder(page, productOrder, null, true); } IPage pageProductOrder(Page page, @Param("c") ProductOrderDto productOrder, @Param("userId") Long userId, @Param("isAdmin") Boolean isAdmin); List listProcessRoute(@Param("productModelId") Long productModelId); List listProcessBom(@Param("orderId") Long orderId); Integer countCreated(@Param("startDate") String startDate, @Param("endDate") String endDate); Integer countCompleted(@Param("startDate") String startDate, @Param("endDate") String endDate); Integer countPending(@Param("startDate") String startDate, @Param("endDate") String endDate); }