zhuguifei
2026-03-10 2c1fd10c6fbabb8e9f0e9f07fe66fb36c008e883
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
package com.shlanbao.tzsc.pms.md.mat.service;
 
import java.util.List;
import java.util.Map;
 
import com.shlanbao.tzsc.base.mapping.MdMat;
import com.shlanbao.tzsc.base.mapping.MdMaterialLk;
import com.shlanbao.tzsc.base.mapping.SchWorkorder;
import com.shlanbao.tzsc.base.model.DataGrid;
import com.shlanbao.tzsc.base.model.PageParams;
import com.shlanbao.tzsc.pms.md.mat.beans.MatBean;
 
/**
 * 物料
 * @author Leejean
 * @create 2014年11月26日下午2:41:09
 */
public interface MatServiceI {
    /**
     * 获得所有产品(即物料组为产品)
     * @author Leejean
     * @create 2014年11月26日下午3:10:31
     * @return
     */
    public List<MatBean> queryAllProdMat() throws Exception;
    /**
     * 查询所有物料
     * @author Leejean
     * @create 2014年11月26日下午4:23:14
     * @return
     */
    public List<MatBean> queryAllMatsForComboBox() throws Exception ;
    /**
     * 查询所有物料
     * @author Leejean
     * @create 2014年11月26日下午5:42:08
     * @return
     * @throws Exception
     */
    public DataGrid getAllMats(MatBean matBean,PageParams pageParams) throws Exception;
    /**
     * 新增物料
     * @author Leejean
     * @create 2014年11月26日下午4:28:56
     * @param MatBean
     * @throws Exception
     */
    public void addMat(MatBean matBean) throws Exception;
    /**
     * 编辑物料
     * @author Leejean
     * @create 2014年11月26日下午4:29:04
     * @param MatBean
     * @throws Exception
     */
    public void editMat(MatBean matBean) throws Exception;
    /**
     * 删除物料
     * @author Leejean
     * @create 2014年11月26日下午4:29:12
     * @param id
     * @throws Exception
     */
    public void deleteMat(String id) throws Exception;
    /**
     * 工具ID获取物料
     * @author Leejean
     * @create 2014年11月26日下午6:43:13
     * @param id
     * @return
     * @throws Exception
     */
    public MatBean getMatById(String id) throws Exception;
 
    /**
     * 接口使用。用于匹配数据
     * 返回mat 的code 和id 的map
     * @return
     */
    public Map<String, String[]> getAllMatMap();
    public Map<String, String[]> getAllMatMapFiller();
    public Map<String, String[]> getAllMatMapJB();
    public Map<String, String[]> getAllMatMapCx();
    public Map<String, String[]> getAllSchCalendar(SchWorkorder schWorkorder);
    public List getMatFiller();
    public List getFlFiller();
    /**
     *  [说明]:查询物料数据是否存在
     * @author wanchanghuang
     * @create 2019年5月7日10:44:19
     * @param mdMat
     */
    public long queryMdMatType(MdMat mdMat);
    /**
     *  [说明]:查询物料数据是否存在
     * @author wanchanghuang
     * @create 2019年5月7日10:44:19
     * @param mdMat
     */
    public void saveMdMat(MdMat mdMat);
    /**
     *  [说明]:物料锁定-修改
     * @author wanchanghuang
     * @create 2019年5月15日14:03:26
     */
    public void updateMdMaterail(MdMaterialLk wkorder);
    /**
     *  [说明]:物料锁定-查询
     * @author wanchanghuang
     * @create 2019年5月15日14:03:26
     */
    public long queryMdMaterailAll(MdMaterialLk wkorder);
    /**
     *  [说明]:物料锁定-添加
     * @author wanchanghuang
     * @create 2019年5月15日14:03:26
     */
    public void addMdMaterail(MdMaterialLk wkorder);
 
    /**
     * 批量删除
     * @param ids
     */
    void batchDeleteMat(String ids);
 
    List<?> getProdByMonth(String month);
}