StringsqlPay="select sPayTypeID, sPayType, nPayAmount, sOutTradeNO, sTransTraceNO, dPayDateTime, sStatusID = case when nTag&2=2 then '1' else '0' end, sStatus = case when nTag&2=2 then '已付款' else '未付款' end "
StringsqlPay="select sPayTypeID, sPayType, nPayAmount, sOutTradeNO, sTransTraceNO, dPayDateTime, sStatusID = case when nTag&2=2 then '1' else '0' end, sStatus = case when nTag&2=2 then '已付款' else '未付款' end "
+"from tSalesOrderPay "
+"from tSalesOrderPay "
+"where sSalesOrderID = ? and sOutTradeNO not like '%_D' ";
+"where sSalesOrderID = ? and sOutTradeNO not like '%_D' ";