|
|
@@ -48,7 +48,7 @@ public class UserInvoiceApplyRecordServiceImpl implements UserInvoiceApplyRecord
|
|
|
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Throwable.class)
|
|
|
- public void applyOrderInvoice(UserInvoiceOrderReq req) {
|
|
|
+ public Long applyOrderInvoice(UserInvoiceOrderReq req) {
|
|
|
Long userId = req.getUserId();
|
|
|
String key = "invoice:key:" + userId;
|
|
|
try {
|
|
|
@@ -112,6 +112,7 @@ public class UserInvoiceApplyRecordServiceImpl implements UserInvoiceApplyRecord
|
|
|
//关联记录id
|
|
|
Long recordId = invoiceApplyRecord.getId();
|
|
|
userInvoiceOrderRelateMapper.batchInsert(recordId, userId, orderIds);
|
|
|
+ return invoiceApplyRecord.getId();
|
|
|
} finally {
|
|
|
redisService.del(key);
|
|
|
}
|