IPurchaseMaterialService.java 1.3 KB
package com.skua.modules.erp.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.skua.modules.erp.entity.DistributContract;
import com.skua.modules.erp.entity.PurchaseMaterial;
import com.baomidou.mybatisplus.extension.service.IService;
import com.skua.modules.erp.vo.MaterialSearchVO;
import com.skua.modules.erp.vo.PurchaseMaterialVO;
import com.skua.modules.erp.vo.PurchasePlanSearchVO;

import java.util.List;

/**
 * 采购物料清单
 */
public interface IPurchaseMaterialService extends IService<PurchaseMaterial> {

    /***
     * 分页查询采购物料清单
     * @param page
     * @param goodCode
     * @param departId
     * @return
     */
    IPage<PurchaseMaterial> queryByPage(Page<PurchaseMaterial> page, String goodCode, String departId);

    /***
     * 根据货号查询采购合同物料清单
     * @param goodCode
     * @param departId
     * @return
     */
    List<PurchaseMaterial> queryMaterialByGoodCode(String goodCode, String departId);

    /**
     * 药剂入库查询结果:采购物料清单+分销单价+分销总价
     * @return
     */
    IPage<PurchaseMaterialVO> queryPurchaseMaterialListByIn(Page<PurchaseMaterialVO> page, MaterialSearchVO materialSearchVO);
}