package org.dromara.personnel.mapper;

import org.apache.ibatis.annotations.Param;
import org.dromara.personnel.domain.OpsChurukudan;
import org.dromara.personnel.domain.bo.OpsChurukudanReq;
import org.dromara.personnel.domain.vo.OpsChurukudanCountVo;
import org.dromara.personnel.domain.vo.OpsChurukudanDayCountVo;
import org.dromara.personnel.domain.vo.OpsChurukudanVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;

import java.util.List;

/**
 * 运维-物资-出入库单管理Mapper接口
 *
 * @author LionLi
 * @date 2025-09-24
 */
public interface OpsChurukudanMapper extends BaseMapperPlus<OpsChurukudan, OpsChurukudanVo> {

    List<OpsChurukudanCountVo> getChuRuKuCount(@Param("bo") OpsChurukudanReq bo);

    List<OpsChurukudanDayCountVo> getChuRuKuDayCount(@Param("bo") OpsChurukudanReq bo);

    /**
     * 查询产品出入库数量和
     * @param projectId
     * @param chanpinId
     * @param type
     * @return
     */
    Long getChuRuKuZonCount(@Param("projectId") Long projectId, @Param("chanpinId") Long chanpinId, @Param("type") String type);
}
