This commit is contained in:
Guoqs
2025-01-06 12:14:22 +08:00
parent 87bb2926e8
commit bb02068115
3 changed files with 22 additions and 3 deletions

View File

@@ -666,4 +666,21 @@ public class TempController extends BaseController {
}
return response;
}
/**
* 手动接口, 执行新的分账方法
* https://localhost:8080/temp/realTimeOrderSplit
*/
@PostMapping("/realTimeOrderSplit")
public RestApiResponse<?> splitTheBillForOrderTemp(@RequestBody AfterSettleOrderDTO afterSettleOrderDTO) {
RestApiResponse<?> response;
try {
orderBasicInfoService.realTimeOrderSplit(afterSettleOrderDTO);
response = new RestApiResponse<>();
} catch (Exception e) {
logger.error("手动接口, 执行新的分账方法error", e);
response = new RestApiResponse<>("00200005", "手动分账接口失败");
}
return response;
}
}