|  | @@ -600,15 +600,18 @@ module.exports = app => {
 | 
	
		
			
				|  |  |              const sql =
 | 
	
		
			
				|  |  |                  'SELECT pda.`aid`, pda.`times`, pda.`order`, pda.`begin_time`, pda.`end_time`, pda.`tender_id`, pda.`tr_id`, pda.`td_id`,' +
 | 
	
		
			
				|  |  |                  '    pd.`code` As `scode`, pd.`order` As `sorder`, pd.`status` As `sstatus`,' +
 | 
	
		
			
				|  |  | +                '    pr.`rpt_name` As `rpt_name`,' +
 | 
	
		
			
				|  |  |                  '    t.`name`, t.`pid`, t.`uid` ' +
 | 
	
		
			
				|  |  |                  '  FROM ?? AS pda ' +
 | 
	
		
			
				|  |  |                  '    Left Join ?? AS pd On pda.`td_id` = pd.`id` ' +
 | 
	
		
			
				|  |  | +                '    Left Join ?? AS pr On pda.`tr_id` = pr.`id` ' +
 | 
	
		
			
				|  |  |                  '    Left Join ?? As t ON pda.`tender_id` = t.`id`' +
 | 
	
		
			
				|  |  |                  '  WHERE ((pda.`aid` = ? and pda.`status` = ?) OR (pd.`uid` = ? and pda.`status` = ? and pd.`status` = ? and pda.`times` = (pd.`times`-1)))' +
 | 
	
		
			
				|  |  |                  '  ORDER BY pda.`begin_time` DESC';
 | 
	
		
			
				|  |  |              const sqlParam = [
 | 
	
		
			
				|  |  |                  this.tableName,
 | 
	
		
			
				|  |  |                  this.ctx.service.paymentDetail.tableName,
 | 
	
		
			
				|  |  | +                this.ctx.service.paymentTenderRpt.tableName,
 | 
	
		
			
				|  |  |                  this.ctx.service.paymentTender.tableName,
 | 
	
		
			
				|  |  |                  auditorId,
 | 
	
		
			
				|  |  |                  auditConst.status.checking,
 |