|
|
@@ -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());
|