feat: 保存咨询提交的业务来源

This commit is contained in:
que01 committed 2026-09-21 20:18:18 +08:00
1 parent 4754230e5b
commit 25bf980d3c
5 files changed
+24 -1

No files matched your search

+4 -1
View File
@@ -253,7 +253,10 @@ class AdminWorkspaceController {
this.requireAdmin(request);
return this.prisma.inquirySubmission.findMany({
where: { brandId: this.brandId() },
include: { inquiryForm: { select: { name: true } } },
include: {
inquiryForm: { select: { name: true } },
offering: { select: { id: true, name: true } },
},
orderBy: { createdAt: "desc" },
});
}
+1
View File
@@ -252,6 +252,7 @@ export class CustomerInquirySubmissionController {
data: {
brandId: identity.brandId,
inquiryFormId: form.id,
offeringId: form.offeringId,
formVersion: form.version,
fieldsSnapshot: form.fieldsSnapshot as Prisma.InputJsonValue,
values: body.values as Prisma.InputJsonValue,