mirror of https://github.com/jeecgboot/jeecg-boot
Add extra fees empty list check
parent
1eff5b91a3
commit
722908f2d4
|
@ -262,7 +262,7 @@ public class ShippingInvoiceFactory {
|
|||
if (savRefunds != null) {
|
||||
updateSavRefundsInDb(savRefunds, invoiceCode);
|
||||
}
|
||||
if(extraFees != null) {
|
||||
if(extraFees != null && !extraFees.isEmpty()) {
|
||||
List<String> extraFeesIds = extraFees.stream().map(ExtraFeeResult::getId).collect(toList());
|
||||
extraFeeService.updateInvoiceNumberByIds(extraFeesIds, invoiceCode);
|
||||
}
|
||||
|
@ -398,7 +398,7 @@ public class ShippingInvoiceFactory {
|
|||
if (savRefunds != null) {
|
||||
updateSavRefundsInDb(savRefunds, invoiceCode);
|
||||
}
|
||||
if(extraFees != null) {
|
||||
if(extraFees != null && !extraFees.isEmpty()) {
|
||||
List<String> extraFeesIds = extraFees.stream().map(ExtraFeeResult::getId).collect(toList());
|
||||
extraFeeService.updateInvoiceNumberByIds(extraFeesIds, invoiceCode);
|
||||
}
|
||||
|
@ -587,7 +587,7 @@ public class ShippingInvoiceFactory {
|
|||
if (savRefunds != null) {
|
||||
updateSavRefundsInDb(savRefunds, invoiceCode);
|
||||
}
|
||||
if(extraFees != null) {
|
||||
if(extraFees != null && !extraFees.isEmpty()) {
|
||||
List<String> extraFeesIds = extraFees.stream().map(ExtraFeeResult::getId).collect(toList());
|
||||
extraFeeService.updateInvoiceNumberByIds(extraFeesIds, invoiceCode);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue