From dc16b8395607f2deed7e50430ee6d89525ea7b17 Mon Sep 17 00:00:00 2001 From: xuecong <> Date: Thu, 18 Nov 2021 10:14:22 +0800 Subject: [PATCH] fix ower approver reply where null --- server/src/module/pc/controller/ower/apply_reply.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/module/pc/controller/ower/apply_reply.ts b/server/src/module/pc/controller/ower/apply_reply.ts index 727d129..21d22eb 100644 --- a/server/src/module/pc/controller/ower/apply_reply.ts +++ b/server/src/module/pc/controller/ower/apply_reply.ts @@ -102,7 +102,7 @@ const PcOwerApplyReplyAction = { .from('ejyy_building_info') .leftJoin('ejyy_user_building', 'ejyy_user_building.building_id', 'ejyy_building_info.id') .whereIn('ejyy_building_info.id', building_ids) - .where('ejyy_user_building.building_id', null) + .whereNull('ejyy_user_building.building_id') .select('ejyy_building_info.id'); if (buildingsInfo.length === 0) {