|  | @@ -685,7 +685,7 @@ module.exports = app => {
 | 
	
		
			
				|  |  |              const filter = 'cb.`code` = ' + this.db.escape(bills.b_code) + (pos ? ' And cb.`bwmx` = ' + this.db.escape(pos.name) : '');
 | 
	
		
			
				|  |  |              const sql = 'SELECT c.cid, c.code, c.name, c.w_code, c.p_code, c.peg, c.org_name, c.org_code, c.new_name, c.new_code,' +
 | 
	
		
			
				|  |  |                          '    c.content, c.basis, c.memo, c.type, c.class, c.quality, c.company, c.charge, ' +
 | 
	
		
			
				|  |  | -                        '    cb.id As cbid, cb.code As b_code, cb.name As b_name, cb.unit As b_unit, cb.samount As b_amount, cb.detail As b_detail, cb.bwmx As b_bwmx ' +
 | 
	
		
			
				|  |  | +                        '    cb.id As cbid, cb.code As b_code, cb.name As b_name, cb.unit As b_unit, cb.samount As b_amount, cb.detail As b_detail, cb.bwmx As b_bwmx, ' +
 | 
	
		
			
				|  |  |                          '    scb.used_amount' +
 | 
	
		
			
				|  |  |                          '  FROM ' + this.tableName + ' As c ' +
 | 
	
		
			
				|  |  |                          '  Left Join ' + this.ctx.service.changeAuditList.tableName +' As cb On c.cid = cb.cid ' +
 |