diff --git a/src/app/api/survey-sales/service.ts b/src/app/api/survey-sales/service.ts index a9fa9c3..314e37a 100644 --- a/src/app/api/survey-sales/service.ts +++ b/src/app/api/survey-sales/service.ts @@ -134,7 +134,11 @@ export class SurveySalesService { break case 'Builder': case 'Partner': - where.AND.push({ CONSTRUCTION_POINT_ID: { equals: this.session?.builderId } }) + if (this.session?.builderId) { + where.AND.push({ CONSTRUCTION_POINT_ID: { equals: this.session?.builderId } }) + } else { + where.AND.push({ ID: { equals: -1 } }) + } break case 'T01': where.OR = [{ NOT: { SRL_NO: { startsWith: '一時保存' } } }, { STORE_ID: { equals: this.session?.storeId } }]