private void billHasBeenPaid(Bill bill) { try { billService.billHasBeenPaid(bill); } catch (StateException e) { log.error( "Internal error has occurred! Order " + Long.valueOf(bill.getId()) + "has not been changed to served state!", e); } }
@Override public Bill createBill(Bill bill) { billMapper.createBill(bill); for (BillItem item : bill.getItems()) billItemMapper.createBillItem(item); return findBillById(bill.getId()); }