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
package com.shlanbao.tzsc.pms.md.unit.service;
 
import java.util.List;
 
import com.shlanbao.tzsc.base.mapping.MdUnit;
import com.shlanbao.tzsc.base.model.DataGrid;
import com.shlanbao.tzsc.pms.md.unit.beans.UnitBean;
 
public interface UnitServiceI {
    /**
     *  查询所有单位 combobox
     * @author Leejean
     * @create 2014年11月26日下午4:23:14
     * @return
     */
    public List<UnitBean> queryAllUnitsForComboBox() throws Exception;
    /**
     * 获得所有单位 datagrid
     * @author Leejean
     * @create 2014年11月26日下午6:00:05
     * @return
     * @throws Exception
     */
    public DataGrid getAllUnits(UnitBean unitBean) throws Exception;
    /**
     * 新增单位
     * @author Leejean
     * @create 2014年11月26日下午4:28:56
     * @param UnitBean
     * @throws Exception
     */
    public void addUnit(UnitBean unitBean) throws Exception;
    /**
     * 编辑单位
     * @author Leejean
     * @create 2014年11月26日下午4:29:04
     * @param UnitBean
     * @throws Exception
     */
    public void editUnit(UnitBean unitBean) throws Exception;
    /**
     * 删除单位
     * @author Leejean
     * @create 2014年11月26日下午4:29:12
     * @param id
     * @throws Exception
     */
    public void deleteUnit(String id) throws Exception;
    /**
     * 根据id获得计量单位
     * @author Leejean
     * @create 2014年11月26日下午7:14:00
     * @param id
     * @return
     */
    public UnitBean getUnitById(String id) throws Exception;
 
    /**
     * @Author bsw
     * @Description //TODO 通过code获取单位
     * @Date 2019-05-10 11:36
     * @Param [unit]
     * @return java.lang.String
     **/
    List<MdUnit> getUnitByParams(UnitBean unit);
 
    /**
     * 批量删除
     * @param ids
     */
    void batchDeleteUnit(String ids);
 
    /**
     * mes下发单位更新原有单位信息
     * @param unitBean
     * @throws Exception
     */
    public void iEditUnit(UnitBean unitBean) throws Exception;
}