Files
GEAR-OA/gear-oa/src/main/java/com/gear/oa/mapper/GearStockMapper.java
2026-05-18 17:48:43 +08:00

32 lines
1019 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.gear.oa.mapper;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gear.common.core.mapper.BaseMapperPlus;
import com.gear.oa.domain.GearStock;
import com.gear.oa.domain.vo.GearStockVo;
import org.apache.ibatis.annotations.Param;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
/**
* 库存:原材料/产品与库区/库位的存放关系Mapper接口
*
* @author Joshi
* @date 2025-07-18
*/
public interface GearStockMapper extends BaseMapperPlus<GearStockMapper, GearStock, GearStockVo> {
BigDecimal getStockByItemId(Long rawMaterialId);
List<Map<String, Object>> selectSumQuantityByItemIds(@Param("itemType") String itemType, @Param("itemIds") List<Long> itemIds);
/**
* 分页联查物品名称和编码支持Wrapper动态条件返回Page<GearStockVo>
*/
Page<GearStockVo> selectVoPagePlus(Page<?> page, @Param("ew") Wrapper<GearStock> wrapper);
}