feat: 为预约建立业务提供项关联
This commit is contained in:
1 parent
11d0424669
commit
270136d24e
4 files changed
+29
-1
No files matched your search
@@ -65,6 +65,7 @@ export class BookingService {
|
||||
throw new BadRequestException("套餐不存在或暂不可预订");
|
||||
return {
|
||||
serviceId: service.id,
|
||||
offeringId: service.offeringId,
|
||||
serviceNameSnapshot: service.name,
|
||||
unitPriceSnapshot: service.priceAmount,
|
||||
quantity: item.quantity,
|
||||
@@ -86,6 +87,7 @@ export class BookingService {
|
||||
contactPreference: input.contactPreference,
|
||||
fulfillmentType: input.fulfillmentType ?? null,
|
||||
serviceId: items[0]?.serviceId ?? input.serviceId ?? null,
|
||||
offeringId: items[0]?.offeringId ?? null,
|
||||
requestedDate: input.requestedDate
|
||||
? new Date(`${input.requestedDate}T00:00:00.000Z`)
|
||||
: null,
|
||||
|
||||
@@ -22,7 +22,7 @@ export class TemplateWorkspaceService {
|
||||
brandId,
|
||||
templateKey,
|
||||
templateVersion: template.version,
|
||||
configSnapshot: template,
|
||||
configSnapshot: template as unknown as Prisma.InputJsonValue,
|
||||
},
|
||||
});
|
||||
await tx.brandModule.createMany({
|
||||
|
||||
Reference in new issue
Block a user