wuxw
2019-10-14 770684147c41314df6a3f3d46dd97da69d2d03e1
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
package com.java110.web.components.org;
 
import com.java110.core.context.IPageData;
import com.java110.web.smo.org.IAddOrgSMO;
import com.java110.web.smo.org.IListParentOrgsSMO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;
 
/**
 * 添加组织管理组件
 */
@Component("addOrg")
public class AddOrgComponent {
 
    @Autowired
    private IAddOrgSMO addOrgSMOImpl;
 
    @Autowired
    private IListParentOrgsSMO listParentOrgsSMOImpl;
 
    /**
     * 添加组织管理数据
     * @param pd 页面数据封装
     * @return ResponseEntity 对象
     */
    public ResponseEntity<String> save(IPageData pd){
        return addOrgSMOImpl.saveOrg(pd);
    }
 
 
    public ResponseEntity<String> getParentOrg(IPageData pd){
        return listParentOrgsSMOImpl.listParentOrgs(pd);
    }
 
    public IAddOrgSMO getAddOrgSMOImpl() {
        return addOrgSMOImpl;
    }
 
    public void setAddOrgSMOImpl(IAddOrgSMO addOrgSMOImpl) {
        this.addOrgSMOImpl = addOrgSMOImpl;
    }
 
    public IListParentOrgsSMO getListParentOrgsSMOImpl() {
        return listParentOrgsSMOImpl;
    }
 
    public void setListParentOrgsSMOImpl(IListParentOrgsSMO listParentOrgsSMOImpl) {
        this.listParentOrgsSMOImpl = listParentOrgsSMOImpl;
    }
}