fix: 조사매물 목록 조회 방어처리 추가
- 시공권한 계정으로 로그인 시 builderId가 없을 경우 목록에 아무것도 안뜨도록 수정
This commit is contained in:
parent
66800aaa81
commit
caa9927f9e
@ -134,7 +134,11 @@ export class SurveySalesService {
|
||||
break
|
||||
case 'Builder':
|
||||
case 'Partner':
|
||||
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 } }]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user