lrf 2 년 전
부모
커밋
91330ecc68
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      app/service/teamApply.js

+ 9 - 0
app/service/teamApply.js

@@ -83,6 +83,15 @@ class TeamApplyService extends CrudService {
     return rs;
   }
 
+  async count(filter) {
+    let condition = _.cloneDeep(filter);
+    condition = await this.beforeQuery(condition);
+    condition = this.dealFilter(condition);
+    condition = this.selfQueryDeal(condition);
+    const count = await this.model.count(condition);
+    return count;
+  }
+
   selfQueryDeal(condition) {
     if (_.get(condition, 'user_id')) {
       const user_id = _.get(condition, 'user_id');