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;