Blame view

src/main/java/com/huaheng/pc/config/material/service/MaterialService.java 1.08 KB
1
package com.huaheng.pc.config.material.service;
2
mahuandong authored
3
import com.huaheng.framework.web.domain.AjaxResult;
游杰 authored
4
import com.huaheng.mobile.shipment.Materialforecast;
5
import com.huaheng.pc.config.material.domain.Material;
6
import com.baomidou.mybatisplus.extension.service.IService;
7
8
9

import java.util.List;
10
11
public interface MaterialService extends IService<Material>{
12
13
14
15
16
    /**
     * 批量删除物料
     * @param ids
     * @return
     */
mahuandong authored
17
    AjaxResult removeByIds(String ids);
18
19
20
21
22
23
24
25
    /**
     * excel导入物料
     * @param materialList
     * @param updateSupport
     * @param operName
     * @return
     */
26
    String importMaterial(List<Material> materialList, Boolean updateSupport,String operName);
27
28
29
30
31
32
33
    /**
     * 添加物料
     * @param material
     * @return
     */
    AjaxResult addSave(Material material);
34
35

    Material findAllByCode(String code);
游杰 authored
36
游杰 authored
37
38
    Material findAllByCode(String code, String warehouseCode);
游杰 authored
39
40
41
42
43
44
45
46
    List<Material> findLatest();

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