|
@@ -463,7 +463,7 @@ public class PayOrderLogic {
|
|
|
}
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
- public Boolean paid(String orderId, String authCode,String ip,String payType) throws Exception {
|
|
|
+ public String paid(String orderId, String authCode,String ip,String payType) throws Exception {
|
|
|
CurrentCompanyWechat currentCompanyWechat = commonLogic.getCurrentCompanyWechat();
|
|
|
WorkerOrder workerOrder = workerOrderService.getById(orderId);
|
|
|
|
|
@@ -478,6 +478,7 @@ public class PayOrderLogic {
|
|
|
.eq(WorkerOrderItem::getOrderId,workerOrder.getOrderId())
|
|
|
.set(WorkerOrderItem::getOrderId,orderIdNew)
|
|
|
.update();
|
|
|
+ workerOrderService.removeById(orderId);
|
|
|
workerOrder.setOrderId(orderIdNew);
|
|
|
}
|
|
|
|
|
@@ -679,7 +680,7 @@ public class PayOrderLogic {
|
|
|
this.addSettlementOrder(workerOrder,workerOrderItems);
|
|
|
|
|
|
|
|
|
- return true;
|
|
|
+ return workerOrder.getOrderId();
|
|
|
}
|
|
|
|
|
|
private void makeSubStockData(WorkerOrder workerOrder, List<WorkerOrderItem> workerOrderItems, List<WorkerStockDTO> workerStockDTOS) {
|