MaterialService.java 1.01 KB
package com.huaheng.pc.config.material.service;

import com.huaheng.framework.web.domain.AjaxResult;
import com.huaheng.mobile.shipment.Materialforecast;
import com.huaheng.pc.config.material.domain.Material;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface MaterialService extends IService<Material>{

    /**
     * 批量删除物料
     * @param ids
     * @return
     */
    AjaxResult removeByIds(String ids);

    /**
     * excel导入物料
     * @param materialList
     * @param updateSupport
     * @param operName
     * @return
     */
    String importMaterial(List<Material> materialList, Boolean updateSupport,String operName);

    /**
     * 添加物料
     * @param material
     * @return
     */
    AjaxResult addSave(Material material);

    Material findAllByCode(String code);

    List<Material> findLatest();

    /**
     * 获得物料联想词
     * @param code
     * @return
     */
    List<Materialforecast> getMaterialForecast(String code);
}