ZeroLiYi 1 年之前
父節點
當前提交
ef3d2264db
共有 1 個文件被更改,包括 8 次插入2 次删除
  1. 8 2
      src/main/java/com/chinaitop/depot/rp/service/impl/BusinessRpReportServiceImpl.java

+ 8 - 2
src/main/java/com/chinaitop/depot/rp/service/impl/BusinessRpReportServiceImpl.java

@@ -93,10 +93,16 @@ public class BusinessRpReportServiceImpl implements BusinessRpReportService {
93 93
         BusinessRpReportRecVO businessRpReportRecVO =businessRpReportMapper.getRpReportByById(rpReportId,null);
94 94
 
95 95
         List<BusinessRpOutbound> outboundList = businessRpOutboundMapper.findByRpReportId(rpReportId,null);
96
-        businessRpReportRecVO.setBusinessRpOutboundList(outboundList);
96
+        if(outboundList.size()>0){
97
+
98
+            businessRpReportRecVO.setBusinessRpOutboundList(outboundList);
99
+        }
97 100
 
98 101
         List<BusinessRpInbound> inboundList = businessRpInboundMapper.findByRpReportId(rpReportId,null);
99
-        businessRpReportRecVO.setBusinessRpInboundList(inboundList);
102
+        if(inboundList.size()>0){
103
+            businessRpReportRecVO.setBusinessRpInboundList(inboundList);
104
+        }
105
+
100 106
 
101 107
 
102 108
         return businessRpReportRecVO;