package com.bonus.canteen.core.supply.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bonus.canteen.core.supply.domain.DrpOrderGoodsDetail;
import com.bonus.canteen.core.supply.po.DrpOrderGoodsMaterialStallNumModel;
import com.bonus.canteen.core.supply.po.OrderIntoNumModel;
import com.bonus.canteen.core.supply.vo.DrpOrderGoodsDetailVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

@Mapper
public interface DrpOrderGoodsDetailMapperV2 extends BaseMapper<DrpOrderGoodsDetail> {
   List<DrpOrderGoodsDetailVO> getDrpOrderGoodsDetailVOListByOrderGoodsId(@Param("orderGoodsId") String orderGoodsId);

   List<OrderIntoNumModel> listOrderIntoNum(@Param("orderGoodsIdList") List<String> orderGoodsIdList);

   void plusIntoNum(@Param("orderGoodsDetailId") Long orderGoodsDetailId, @Param("plusNum") BigDecimal plusNum);

   void minusIntoNum(@Param("orderGoodsDetailId") Long orderGoodsDetailId, @Param("minusNum") BigDecimal minusNum);

   List<DrpOrderGoodsMaterialStallNumModel> listMaterialStallNum(@Param("orderGoodsId") String orderGoodsId);
}
