@@ -465,6 +465,20 @@ public class OrderDao extends GenericHibernateDao<Order, Integer> {
if(queryBean.getOrderCategory()!=0){
cond+=" and a.OrderCategory="+StringUtils.escapeSql(queryBean.getOrderCategory().toString());
}
if(queryBean.getOrderStatusToUser()!=null){
if(queryBean.getOrderStatusToUser()==1){
//待支付订单
cond+=" and a.payMode in ('P','M','G') and a.orderType=1 and (a.processStatus&310381820=4 ) ";
}elseif(queryBean.getOrderStatusToUser()==2){
//已付款订单
cond+=" and a.payMode in ('P','M','G') and a.orderType=1 and (a.processStatus&303198715=16 or a.processStatus&303198715=4496 or a.processStatus&303198715=4368 )";
}elseif(queryBean.getOrderStatusToUser()==3){
//全部退款成功订单
cond+=" and a.payMode in ('P','M') and a.orderType=1 and (a.processStatus&268448832=268444672 )";
}
}
if(queryBean.getOrderType()==1){
cond+=" and DATE_FORMAT(b.PlayDate, '%Y-%m-%d %H:%i') > DATE_FORMAT(now(), '%Y-%m-%d %H:%i') ";