Browse Source

列表提交

ZeroLiYi 1 year ago
parent
commit
2f7923f9b8

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

@@ -174,7 +174,7 @@ public class BusinessRpReportServiceImpl implements BusinessRpReportService {
174 174
                 }
175 175
                 businessRpReportMapper.updateByPrimaryKeySelective(businessRpReport);
176 176
                 List<BusinessRpInbound> inList =businessRpReport.getBusinessRpInboundList();
177
-                if(!inList.isEmpty()){
177
+                if(inList != null && !inList.isEmpty()){
178 178
                     businessRpInboundMapper.deleteByReportId(businessRpReport.getId());
179 179
                     for (BusinessRpInbound br: inList) {
180 180
                         br.setCreatedate(new Date());
@@ -184,7 +184,7 @@ public class BusinessRpReportServiceImpl implements BusinessRpReportService {
184 184
                     }
185 185
                 }
186 186
                 List<BusinessRpOutbound> outlist =businessRpReport.getBusinessRpOutboundList();
187
-               if(!outlist.isEmpty()){
187
+               if(outlist != null && !outlist.isEmpty()){
188 188
                    businessRpOutboundMapper.deleteByReportId(businessRpReport.getId());
189 189
                    for (BusinessRpOutbound ou: outlist) {
190 190
                        ou.setCreatedate(new Date());