select distinct o.customerNumber, o.subAccountNumber from FXSpecialSpread o where
 o.activeFlag = 'A' or o.activeFlag = 'X'语句有问题,有distinct时只能有一个字段