| 
					
				 | 
			
			
				@@ -813,6 +813,25 @@ module.exports = app => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return result;
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        /**
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+         * 获取项目下所有账号
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+         * @param {String} project_id - 项目id
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+         * @return {Promise<Array>} - 账号
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+         */
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        async getAllProjectAccountByPid(project_id) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.initSqlBuilder();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            const columns = ['account', 'name', 'company', 'role', 'mobile', 'telephone', 'is_admin', 'account_group',];
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.sqlBuilder.columns = columns;
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.sqlBuilder.setAndWhere('project_id', {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                value: project_id,
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                operate: '=',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            });
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            const [sql, sqlParam] = this.sqlBuilder.build(this.tableName);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            const accountData = await this.db.query(sql, sqlParam);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            return accountData;
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     return ProjectAccount;
 
			 |