Commit a8e941f0 by chongli

小程序单定场订单状态过滤

parent af45bc5b
......@@ -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 ) ";
}else if(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 )";
}else if(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') ";
} else if (queryBean.getOrderType() == 2) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment