zhuguifei
2026-03-10 58402bd5e762361363a0f7d7907153c77dbb819f
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
package com.shlanbao.tzsc.pms.cos.spare.service;
 
import java.util.List;
 
import com.shlanbao.tzsc.base.mapping.CosSpareParts;
import com.shlanbao.tzsc.base.model.DataGrid;
import com.shlanbao.tzsc.base.model.PageParams;
import com.shlanbao.tzsc.pms.cos.spare.beans.CosSparePartsBean;
 
public interface CosSparePartsServiceI {
 
    /**
    * @Title: saveOrUpdateBean 
    * @Description:  添加或修改
    * @param bean
    * @return boolean
    * @throws Exception
     */
    public boolean saveOrUpdateBean(CosSparePartsBean bean) throws Exception;
    /**
    * @Title: queryListByBeans 
    * @Description: 查询list
    * @param bean
    * @return List<CosSparePartsBean>
    * @throws Exception
     */
    public List<CosSparePartsBean> queryListByBeans(CosSparePartsBean bean) throws Exception;
    /**
    * @Title: queryGridByBean 
    * @Description: easyui 界面查询方法 
    * @param bean
    * @param pageParams
    * @return DataGrid
    * @throws Exception
     */
    public DataGrid queryGridByBean(CosSparePartsBean bean,PageParams pageParams) throws Exception;
    /**
    * @Title: getBeanById 
    * @Description: 根据id获取bean 
    * @param id
    * @return CosSparePartsBean
    * @throws Exception
     */
    public CosSparePartsBean getBeanById(String id) throws Exception;
    /**
     * 
    * @Title: deleteBean 
    * @Description: 根据id删除
    * @param id
     */
    public void deleteBean(String id);
    /**
     * 假删除
     * @param id
     * @return
     */
    public boolean deleteById(String id);
    /**
     * 
    * @Title:备品备件批量保存
     */
    public boolean batchInputExeclAndReadWrite(List<CosSparePartsBean>  lt, CosSparePartsBean cspb) throws Exception;
    /**
     * PMS查询备品备件
     * 张璐
     * @param bean
     * @param pageParams
     * @param length
     * @param isNameFuzzy
     * @return
     * @throws Exception
     */
    public List<CosSparePartsBean> queryListByBeansPMS(CosSparePartsBean bean,PageParams pageParams,long length,boolean isNameFuzzy) throws Exception;
    
    public DataGrid queryGridByBeanPMS(CosSparePartsBean bean,PageParams pageParams) throws Exception;
    
    public void batchSaveSparePart(List<CosSparePartsBean>  lt) throws Exception;
 
    /**
     * 批量删除备品备件
     * @param ids
     */
    void batchDeleteBean(String ids);
}