|
|
@@ -173,7 +173,7 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
|
|
|
}
|
|
|
String conditionSql = String.format("(gr.expiry_time is null or gr.expiry_time > '%s')", now);
|
|
|
if (StrUtil.isNotEmpty(orderNo)) {
|
|
|
- conditionSql += String.format(" and exists(select 1 from order_don o where o.user_id = gr.user_id and o.order_no = %s and o.status not in ('close','noPayment','refund'))", orderNo);
|
|
|
+ conditionSql += String.format(" and exists(select 1 from order_don o where o.relation_id = gr.id and o.user_id = gr.user_id and o.order_no = %s and o.status not in ('close','noPayment','refund'))", orderNo);
|
|
|
}
|
|
|
SearchResult<RenewalView> list = beanSearcher.search(RenewalView.class, builder
|
|
|
.field(RenewalView::getUserId, 0).op(Operator.GreaterThan)
|