Commit ca0a3f7c by zhangchen

社员权益d支付订单会有重复的订单

parent 5fb82570
......@@ -2236,7 +2236,7 @@ public class OrderDao extends GenericHibernateDao<Order, Integer> {
*/
public PagedResponseBean<VoucherOrderListBean> queryVoucherOrderList(OpOrderQuery orderQuery) {
StringBuffer sql = new StringBuffer();
sql.append(" SELECT sql_calc_found_rows a.orderNo,a.OrderID orderId,a.orderName,a.orderDate,a.actualAmount,a.orderStatus,a.orderType,");
sql.append(" SELECT sql_calc_found_rows distinct a.orderNo,a.OrderID orderId,a.orderName,a.orderDate,a.actualAmount,a.orderStatus,a.orderType,");
sql.append(" a.payMode,a.processStatus,a.uid,e.bindedMobilePhone orderPhone,e.userName orderUserName,a.orderSource,a.orderCategory,a.platform,");
sql.append(" b.activityId,b.recommendUid,d.userName recommendUserName,d.bindedMobilePhone recommendPhone");
sql.append(" FROM ord_order a LEFT JOIN ord_communeitem b ON a.OrderID = b.OrderID");
......
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