1 package gboat2.approve.service.impl;
2
3 import gboat2.approve.business.IApproveRecordBusiness;
4 import gboat2.approve.business.IApproveRecordHistoryBusiness;
5 import gboat2.approve.model.ApproveRecord;
6 import gboat2.approve.model.ApproveRecordHistory;
7 import gboat2.approve.model.ApproveRecordItem;
8 import gboat2.approve.model.ApproveStatus;
9 import gboat2.approve.service.IApproveRecordService;
10 import gboat2.base.core.service.BaseService;
11
12 import java.util.List;
13
14 import org.springframework.beans.factory.annotation.Autowired;
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29 public class ApproveRecordServiceImpl extends BaseService implements IApproveRecordService {
30
31 @Autowired
32 IApproveRecordHistoryBusiness historyBusiness;
33
34 @Autowired
35 IApproveRecordBusiness approveBusiness;
36
37
38
39
40
41 @Override
42 public List<ApproveRecordHistory> getAllApproveRecordHistory(String recordObjectId) {
43 return historyBusiness.getAllApproveRecordHistory(recordObjectId);
44 }
45
46 @Override
47 public ApproveRecord getApproveRecord(String recordId) {
48 return approveBusiness.getApproveRecord(recordId);
49 }
50
51 @Override
52 public ApproveRecordItem getApproveRecordItem(String recordItemId) {
53 return approveBusiness.getApproveRecordItem(recordItemId);
54 }
55
56 @Override
57 public ApproveRecordItem getApproveRecordItem(String recordId, String assigner) {
58 return approveBusiness.getApproveRecordItem(recordId, assigner);
59 }
60
61 @Override
62 public ApproveRecord getApproveRecord(String recordObjectId, String approveRecordType) {
63 return approveBusiness.getApproveRecord(recordObjectId, approveRecordType);
64 }
65
66 @Override
67 public ApproveRecord getApproveRecordByRecordObject(String recordObjectId) {
68 return approveBusiness.getApproveRecordByRecordObject(recordObjectId);
69 }
70
71 @Override
72 public List<ApproveRecordItem> getApproveRecordItemListByRecordId(String recordId) {
73 return approveBusiness.getApproveRecordItemListByRecordId(recordId);
74 }
75
76 @Override
77 public ApproveStatus getApproveStatusOfRecord(String recordId) {
78 return approveBusiness.getApproveStatusOfRecord(recordId);
79 }
80
81 @Override
82 public boolean isApproveHistoryExist(String recordObjectId) {
83 return historyBusiness.isApproveHistoryExist(recordObjectId);
84 }
85
86 @Override
87 public ApproveRecordItem getApproveRecordItemByUser(String recordId,String[] assigners) {
88 return approveBusiness.getApproveRecordItem(recordId,assigners);
89 }
90
91 }