|
|
@@ -11,7 +11,10 @@ import com.chinaitop.depot.storage.controller.StorageQualitycheckController;
|
|
11
|
11
|
import com.chinaitop.depot.storage.mapper.StorageQualitycheckMapper;
|
|
12
|
12
|
import com.chinaitop.depot.storage.model.StorageQualitycheck;
|
|
13
|
13
|
import com.chinaitop.depot.storage.model.StorageQualitycheckExample;
|
|
|
14
|
+import com.chinaitop.depot.storage.model.StorageQualitycheckSon;
|
|
|
15
|
+import com.chinaitop.depot.storage.model.StorageQualitycheckSonExample;
|
|
14
|
16
|
import com.chinaitop.depot.storage.service.StorageQualitycheckService;
|
|
|
17
|
+import com.chinaitop.depot.storage.service.StorageQualitycheckSonService;
|
|
15
|
18
|
import com.chinaitop.depot.storage.utils.ParameterUtil;
|
|
16
|
19
|
import org.apache.commons.lang.ObjectUtils;
|
|
17
|
20
|
import org.slf4j.Logger;
|
|
|
@@ -35,6 +38,9 @@ public class QualityCheckFCServiceImpl implements QualityCheckFCService {
|
|
35
|
38
|
@Resource
|
|
36
|
39
|
private StorageQualitycheckService storageQualitycheckService;
|
|
37
|
40
|
|
|
|
41
|
+ @Resource
|
|
|
42
|
+ private StorageQualitycheckSonService qualitycheckSonService;
|
|
|
43
|
+
|
|
38
|
44
|
@Override
|
|
39
|
45
|
public String outQualitycheck(String houseId,String warehouseId,String subType,String orgId) {
|
|
40
|
46
|
Map<String, Object> result = new HashMap<String, Object>();
|
|
|
@@ -55,6 +61,12 @@ public class QualityCheckFCServiceImpl implements QualityCheckFCService {
|
|
55
|
61
|
qualityCheckExample.setOrgId(Integer.parseInt(orgId));//组织机构ID
|
|
56
|
62
|
List<Map<String, Object>> list = storageQualitycheckService.findByOrdId(qualityCheckExample);
|
|
57
|
63
|
|
|
|
64
|
+ for (Map<String, Object> quality : list) {
|
|
|
65
|
+ List<Map<String, Object>> storageQualitycheckSon = qualitycheckSonService.selectByQualitycheckId(quality.get("id").toString());
|
|
|
66
|
+ for (Map<String, Object> son : storageQualitycheckSon) {
|
|
|
67
|
+ quality.putAll(son);
|
|
|
68
|
+ }
|
|
|
69
|
+ }
|
|
58
|
70
|
|
|
59
|
71
|
result.put("qualitycheckData", list);
|
|
60
|
72
|
result.put("success", "true");
|