Sfoglia il codice sorgente

fix 过滤已更换的gpt账号

zoujiajian 2 anni fa
parent
commit
3f9451b6fe

+ 2 - 1
netflix-dao/src/main/java/com/cyksj/model/views/RenewalView.java

@@ -20,7 +20,8 @@ import java.util.List;
 @SearchBean(tables = "groups_relation gr left join groups_trips gt on gt.id = gr.groups_id " +
         "left join account a on a.id = gt.account_id " +
         "left join goods_don_sku sku on gt.sku_id = sku.id " +
-        "left join goods_don g on g.id = sku.goods_id " )
+        "left join goods_don g on g.id = sku.goods_id ",
+        where = ":condition:")
 @Getter
 @Setter
 public class RenewalView {

+ 2 - 0
netflix-web/src/main/java/com/cyksj/web/controller/group/GroupRelationController.java

@@ -596,9 +596,11 @@ public class GroupRelationController {
     public Result<GptStandbyResp> getGptStandby() {
         long userId = StpUserUtil.getLoginIdAsLong();
         List<Long> relationUserIdList = userBindRelationService.getRelationUserIdList(userId, null);
+        String condition = " a.created_time < '2023-10-18' and a.account not like '%@rambler.ru%'";
         Number number = beanSearcher.searchCount(RenewalView.class, MapUtils.builder()
                 .field(RenewalView::getUserId, relationUserIdList).op(Operator.InList)
                 .field(RenewalView::getYhsId, 0)
+                .put("condition", condition)
                 .field(RenewalView::getExpiryTime).op(Operator.NotNull)
                 .build());
         GptStandbyResp gptStandbyResp = new GptStandbyResp();