java110
2020-04-22 3b26b544adc1abfb20ff9ccafca8a498448faea3
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
package com.java110.front.components.ownerRepair;
 
import com.java110.core.context.IPageData;
import com.java110.front.smo.IOwnerServiceSMO;
import com.java110.front.smo.ownerRepair.IAddOwnerRepairSMO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;
 
/**
 * 添加业主报修组件
 */
@Component("addOwnerRepair")
public class AddOwnerRepairComponent {
 
    @Autowired
    private IAddOwnerRepairSMO addOwnerRepairSMOImpl;
 
 
    @Autowired
    private IOwnerServiceSMO ownerServiceSMOImpl;
 
    /**
     * 添加业主报修数据
     *
     * @param pd 页面数据封装
     * @return ResponseEntity 对象
     */
    public ResponseEntity<String> save(IPageData pd) {
        return addOwnerRepairSMOImpl.saveOwnerRepair(pd);
    }
 
    /**
     * 查询业主房屋信息
     *
     * @param pd 页面数据封装
     * @return ResponseEntity 对象
     */
    public ResponseEntity<String> getOwner(IPageData pd) {
        ResponseEntity<String> responseEntity = null;
        responseEntity = ownerServiceSMOImpl.listOwner(pd);
 
        return responseEntity;
    }
 
 
    public IAddOwnerRepairSMO getAddOwnerRepairSMOImpl() {
        return addOwnerRepairSMOImpl;
    }
 
    public void setAddOwnerRepairSMOImpl(IAddOwnerRepairSMO addOwnerRepairSMOImpl) {
        this.addOwnerRepairSMOImpl = addOwnerRepairSMOImpl;
    }
 
    public IOwnerServiceSMO getOwnerServiceSMOImpl() {
        return ownerServiceSMOImpl;
    }
 
    public void setOwnerServiceSMOImpl(IOwnerServiceSMO ownerServiceSMOImpl) {
        this.ownerServiceSMOImpl = ownerServiceSMOImpl;
    }
}