|
@@ -172,7 +172,7 @@ public class CmsGroupRelationController {
|
|
|
*/
|
|
*/
|
|
|
@GetMapping("/get/chatGPT/independent/renew")
|
|
@GetMapping("/get/chatGPT/independent/renew")
|
|
|
public Result<SearchResult<GroupsRelationIndependentView>> getIndependentRenew(String account) {
|
|
public Result<SearchResult<GroupsRelationIndependentView>> getIndependentRenew(String account) {
|
|
|
- String condition = " sku_id in (select id from goods_don_sku sku where sku.goods_id in (18,26) and sku.num = 1)" +
|
|
|
|
|
|
|
+ String condition = " o.sku_id in (select id from goods_don_sku sku where sku.goods_id in (18,26) and sku.num = 1)" +
|
|
|
" and o.status not in ('close','noPayment','refund') and o.order_type = 2";
|
|
" and o.status not in ('close','noPayment','refund') and o.order_type = 2";
|
|
|
if (StrUtil.isNotEmpty(account)) {
|
|
if (StrUtil.isNotEmpty(account)) {
|
|
|
List<AccountView> dbAccounts = beanSearcher.searchAll(AccountView.class, MapUtils.builder().field(AccountView::getAccount, account).op(Operator.Contain).build());
|
|
List<AccountView> dbAccounts = beanSearcher.searchAll(AccountView.class, MapUtils.builder().field(AccountView::getAccount, account).op(Operator.Contain).build());
|
|
@@ -183,17 +183,7 @@ public class CmsGroupRelationController {
|
|
|
}
|
|
}
|
|
|
SearchResult<GroupsRelationIndependentView> search = beanSearcher.search(GroupsRelationIndependentView.class, MapUtils.flatBuilder(request.getParameterMap())
|
|
SearchResult<GroupsRelationIndependentView> search = beanSearcher.search(GroupsRelationIndependentView.class, MapUtils.flatBuilder(request.getParameterMap())
|
|
|
.put("condition", condition)
|
|
.put("condition", condition)
|
|
|
- .orderBy(GroupsRelationIndependentView::getIsRenew)
|
|
|
|
|
- .orderBy(GroupsRelationIndependentView::getSubmitTime).desc()
|
|
|
|
|
.build());
|
|
.build());
|
|
|
- search.getDataList().forEach(e->{
|
|
|
|
|
- GroupsTrips groupsTrips = beanSearcher.searchFirst(GroupsTrips.class, MapUtils.builder().field(GroupsTrips::getId, e.getGroupsId()).build());
|
|
|
|
|
- if (groupsTrips != null) {
|
|
|
|
|
- e.setAccount(groupsTrips.getAccount());
|
|
|
|
|
- e.setPassword(groupsTrips.getPassword());
|
|
|
|
|
- e.setAccountExpiryTime(groupsTrips.getExpiryTime());
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(search);
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(search);
|
|
|
}
|
|
}
|
|
|
|
|
|