|
|
@@ -117,7 +117,7 @@ public class CmsAccountController {
|
|
|
}
|
|
|
String extra_sql = StrUtil.EMPTY;
|
|
|
if (expiredAll != null && expiredAll) {
|
|
|
- extra_sql += "(if((select count(distinct relation_id) from user_ticket_cleared_record ur where ur.account_id = a.id and deleted is true and source = 'self')>=5,true,false)) = 1";
|
|
|
+ extra_sql += "(if((select count(ur.id) from user_ticket_cleared_record ur where ur.account_id = a.id and deleted is true and source = 'self')>=4,true,false)) = 1";
|
|
|
}
|
|
|
|
|
|
if (existsExpired != null && existsExpired) {
|
|
|
@@ -190,7 +190,7 @@ public class CmsAccountController {
|
|
|
}
|
|
|
String extra_sql = StrUtil.EMPTY;
|
|
|
if (expiredAll != null && expiredAll) {
|
|
|
- extra_sql += "(if((select count(distinct relation_id) from user_ticket_cleared_record ur where ur.account_id = a.id and deleted is true and source = 'self')>=5,true,false)) = 1";
|
|
|
+ extra_sql += "(if((select count(ur.id) from user_ticket_cleared_record ur where ur.account_id = a.id and deleted is true and source = 'self')>=4,true,false)) = 1";
|
|
|
}
|
|
|
|
|
|
if (existsExpired != null && existsExpired) {
|
|
|
@@ -663,7 +663,7 @@ public class CmsAccountController {
|
|
|
builder.field(AccountView::getCustomerServiceId, userId);
|
|
|
}
|
|
|
//需要修改密码
|
|
|
- String extra_sql = "(if((select count(distinct relation_id) from user_ticket_cleared_record ur where ur.account_id = a.id and deleted is true and source = 'self')>=5,true,false)) = 1";
|
|
|
+ String extra_sql = "(if((select count(ur.id) from user_ticket_cleared_record ur where ur.account_id = a.id and deleted is true and source = 'self')>=4,true,false)) = 1";
|
|
|
builder.put("extra_sql", extra_sql);
|
|
|
Number expireAll = beanSearcher.searchCount(AccountView.class, builder.build());
|
|
|
//存在过期
|