zss
2025-03-04 c79f68a2a71cc8cc181525d233ef419745ee3d27
basic-server/src/main/java/com/ruoyi/basic/mapper/IfsInventoryQuantityMapper.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,42 @@
package com.ruoyi.basic.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.basic.dto.IfsInventoryQuantityDto;
import com.ruoyi.basic.pojo.IfsInventoryQuantity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.time.LocalDateTime;
import java.util.List;
@Mapper
public interface IfsInventoryQuantityMapper extends BaseMapper<IfsInventoryQuantity> {
    /**
     * æ‰“印标签查询
     * @param ids
     * @return
     */
    List<IfsInventoryQuantityDto> printLabel(@Param("ids") List<Integer> ids);
    /**
     *
     * @param ifsInventoryId
     * @return
     */
    int selectReportCountById(@Param("ifsInventoryId") Integer ifsInventoryId);
    /**
     * æŸ¥è¯¢å½“前季度是否出现过该材料
     * @param partDetail         åž‹å·
     * @param supplierName       ä¾›åº”商名称
     * @param startOfNextQuarter å­£åº¦å¼€å§‹æ—¶é—´
     * @param endOfQuarter       å­£åº¦ç»“束时间
     * @return
     */
    Integer selectIsFirst(@Param("partDetail") String partDetail,
                          @Param("supplierName") String supplierName,
                          @Param("startOfNextQuarter") LocalDateTime startOfNextQuarter,
                          @Param("endOfQuarter") LocalDateTime endOfQuarter);
}