| 
					
				 | 
			
			
				@@ -410,11 +410,15 @@ module.exports = app => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         where: { tender_id: tenderId, times }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         columns: ['tender_id', 'audit_order', 'audit_id'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    const insertAuditors = []; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     for (const a of auditors) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        if (insertAuditors.find(x => { return x.audit_id === a.audit_id; })) continue; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        a.audit_order = insertAuditors.length + 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         a.times = times + 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         a.status = auditConst.status.uncheck; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        insertAuditors.push(a) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    await transaction.insert(this.tableName, auditors); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    await transaction.insert(this.tableName, insertAuditors); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     // const users = this._.pull(this._.map(auditList, 'audit_id'), audit.id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     await this.ctx.helper.sendAliSms(users, smsTypeConst.const.TZ, smsTypeConst.judge.result.toString(), SmsAliConst.template.ledger_result, { 
			 |