拼接两列时遇到这样一个问题,concat(d.id,',',id.pre_door_ids) as doorIds,当id.pre_door_ids为Null时,整体结果为Null,即使d.id不为空。所有以后使用的时候要注意,判断是否为空。