|  | @@ -181,6 +181,7 @@ module.exports = app => {
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          async updatePosArr(tid, data) {
 | 
	
		
			
				|  |  | +            console.log(data);
 | 
	
		
			
				|  |  |              if (data.length === 0) return;
 | 
	
		
			
				|  |  |              const op = await this.getDataById(data[0].id);
 | 
	
		
			
				|  |  |              const bills = await this.ctx.service.reviseBills.getDataById(op.lid);
 | 
	
	
		
			
				|  | @@ -235,7 +236,7 @@ module.exports = app => {
 | 
	
		
			
				|  |  |              const transaction = await this.db.beginTransaction();
 | 
	
		
			
				|  |  |              try {
 | 
	
		
			
				|  |  |                  for (const d of data) {
 | 
	
		
			
				|  |  | -                    if (needUpdateBills) await transaction.update(this.tableName, d);
 | 
	
		
			
				|  |  | +                    await transaction.update(this.tableName, d);
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |                  if (needUpdateBills) await transaction.update(this.ctx.service.reviseBills.tableName, updateBills);
 | 
	
		
			
				|  |  |                  await transaction.commit();
 |