|
@@ -302,9 +302,10 @@ public class AdminSaleQueryDaoImpl implements AdminSaleQueryDao {
|
|
|
public Page<Map<String, Object>> getMealOrder(Map<String, Object> params, Pageable initPage) {
|
|
|
StringBuilder selSQL = new StringBuilder();
|
|
|
List<Object> queryParams = new ArrayList<Object>();
|
|
|
- selSQL.append("SELECT min(t11.sign_time) as sign_time,max(t11.end_sign_time) as end_sign_time,t.buy_month,t.price,t.lib_service,count(1) as tf_count,t.id,t.order_no,t13.lib_id \n");
|
|
|
- selSQL.append("FRom fx_merchant_meal_order t \n");
|
|
|
+ selSQL.append("SELECT min(t11.sign_time) as sign_time,max(t11.end_sign_time) as end_sign_time,t.buy_month,t.price,t.lib_service,count(1) as tf_count,t.id,t.order_no,t13.lib_id,t14.id as refund_id,t14.audit_point,t14.audit_state \n");
|
|
|
+ selSQL.append("from fx_merchant_meal_order t \n");
|
|
|
selSQL.append("left join fx_merchant_meal t11 on t.id = t11.order_id\n");
|
|
|
+ selSQL.append("left join fx_merchant_refund t14 on t.id = t14.meal_order_id\n");
|
|
|
selSQL.append("left join fx_merchant t13 on t.merchant_id = t13.id\n");
|
|
|
selSQL.append("left join tb_orders t12 on t.order_no = t12.order_no\n");
|
|
|
selSQL.append("where TO_DAYS(t11.end_sign_time) >TO_DAYS(NOW())\n");
|