This commit is contained in:
dzc committed 2026-06-25 20:42:01 +08:00
1 parent 83fc1beaf8
commit 2a7e1d6c98
1 file changed
+3 -3
@@ -291,10 +291,10 @@ public class HardOrderController {
@Operation(summary = "app创建食堂预定订单", description = "app创建食堂预定订单")
@ApiCryptoAes
@GetMapping("/app/create-order")
@Idempotent(expireTime = 3, key = "'/app/hard-order/app/create-order' + #carParentId ", info = "正在创建订单中,请勿重复操作")
public R appCreateOrder(@RequestParam Long carParentId, @RequestParam Long apptId, @RequestParam HardTypeEnum hardType) {
@Idempotent(expireTime = 1, key = "'/app/hard-order/app/create-order' + #carParentId ", info = "正在创建订单中,请勿重复操作")
public R appCreateOrder(@RequestParam Long carParentId, @RequestParam Long apptId, @RequestParam String apptTimeType, @RequestParam HardTypeEnum hardType) {
PjcloudUser user = SecurityUtils.getUser();
HardAppCreateOrderDto dto = HardAppCreateOrderDto.builder().carParentId(carParentId).walletType(WalletTypeEnum.EAT).hardType(hardType).userId(user.getId()).orderType(HardOrderTypeEnum.RESERVE).payType(HardPayTypeEnum.WALLET_DEFAULT).apptId(apptId).build();
HardAppCreateOrderDto dto = HardAppCreateOrderDto.builder().carParentId(carParentId).walletType(WalletTypeEnum.EAT).hardType(hardType).userId(user.getId()).orderType(HardOrderTypeEnum.RESERVE).payType(HardPayTypeEnum.WALLET_DEFAULT).apptId(apptId).apptTimeType(apptTimeType).build();
return R.ok(hardwareOrderService.appCreateOrder(dto));
}