|
|
@@ -3,6 +3,7 @@ package com.chinaitop.depot.grainSituationCard.service.impl;
|
|
3
|
3
|
import com.chinaitop.depot.grainSituationCard.mapper.BusinessApprovalProcessMapper;
|
|
4
|
4
|
import com.chinaitop.depot.grainSituationCard.mapper.StorageSealedConfirmationMapper;
|
|
5
|
5
|
import com.chinaitop.depot.grainSituationCard.model.BusinessApprovalProcess;
|
|
|
6
|
+import com.chinaitop.depot.grainSituationCard.model.BusinessApprovalProcessExample;
|
|
6
|
7
|
import com.chinaitop.depot.grainSituationCard.model.StorageSealedConfirmation;
|
|
7
|
8
|
import com.chinaitop.depot.grainSituationCard.model.StorageSealedConfirmationExample;
|
|
8
|
9
|
import com.chinaitop.depot.grainSituationCard.service.StorageSealedConfirmationService;
|
|
|
@@ -10,6 +11,7 @@ import com.chinaitop.depot.param.BasicStorageAndTankParam;
|
|
10
|
11
|
import com.chinaitop.depot.param.StorageSealedConfirmationPageParam;
|
|
11
|
12
|
import org.springframework.stereotype.Service;
|
|
12
|
13
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
14
|
+import org.springframework.util.CollectionUtils;
|
|
13
|
15
|
import org.springframework.util.ObjectUtils;
|
|
14
|
16
|
|
|
15
|
17
|
import javax.annotation.Resource;
|
|
|
@@ -98,7 +100,16 @@ public class StorageSealedConfirmationImpl implements StorageSealedConfirmationS
|
|
98
|
100
|
|
|
99
|
101
|
@Override
|
|
100
|
102
|
public StorageSealedConfirmation getDataById(String id) {
|
|
101
|
|
- return confirmationMapper.selectByPrimaryKey(id);
|
|
|
103
|
+ StorageSealedConfirmation confirmation = confirmationMapper.selectByPrimaryKey(id);
|
|
|
104
|
+ // 审批信息
|
|
|
105
|
+ BusinessApprovalProcessExample example = new BusinessApprovalProcessExample();
|
|
|
106
|
+ BusinessApprovalProcessExample.Criteria criteria = example.createCriteria();
|
|
|
107
|
+ criteria.andTaskIdEqualTo(id);
|
|
|
108
|
+ List<BusinessApprovalProcess> businessApprovalProcesses = processMapper.selectByExample(example);
|
|
|
109
|
+ if (!CollectionUtils.isEmpty(businessApprovalProcesses)) {
|
|
|
110
|
+ confirmation.setProcessList(businessApprovalProcesses);
|
|
|
111
|
+ }
|
|
|
112
|
+ return confirmation;
|
|
102
|
113
|
}
|
|
103
|
114
|
|
|
104
|
115
|
@Override
|