|  |  | 
 |  |  |     WHEN 2 THEN '充值' | 
 |  |  |     WHEN 3 THEN '销卡' | 
 |  |  |     WHEN 5 THEN '补扣' | 
 |  |  |     WHEN 10 THEN '反写' | 
 |  |  | <!--    WHEN 6 THEN '返还'--> | 
 |  |  |     END) AS operateType, | 
 |  |  |     (IFNULL(ope.trade_amount,0.00) + IFNULL(ope.card_cost,0.00)) AS tradeAmount, | 
 |  |  |     IFNULL(ope.trade_amount,0.00) AS waterCost, | 
 |  |  | 
 |  |  |     LEFT JOIN se_payment_method pay ON ope.payment_id = pay.id | 
 |  |  |     LEFT JOIN ba_user us ON ope.operator = us.id | 
 |  |  |     <where> | 
 |  |  |       AND ope.operate_type IN(1,2,3,5,10) | 
 |  |  |       AND ope.operate_type IN(1,2,3,5) | 
 |  |  |       AND ope.operate_valid = 2 | 
 |  |  |       <if test = "villageId != null and villageId > 0"> | 
 |  |  |         AND cli.villageId = #{villageId} | 
 |  |  | 
 |  |  |     WHERE order_no = #{orderNumber} | 
 |  |  |     ORDER BY operate_dt DESC | 
 |  |  |     LIMIT 1 | 
 |  |  |  | 
 |  |  |   </select> | 
 |  |  |  | 
 |  |  |  | 
 |  |  | </mapper> |