| 
					
				 | 
			
			
				@@ -116,8 +116,8 @@ module.exports = app => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         ]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         break; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     case 1: // 待处理(你的) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        sql = 'SELECT a.*, p.name as account_name FROM ?? as a LEFT JOIN ?? AS p On a.notice_uid = p.id WHERE a.id in(SELECT b.caid FROM ?? as b WHERE b.tid = ? AND b.aid = ? AND b.status = ?) OR (a.uid = ? AND (a.status = ? OR a.status = ?))'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        sqlParam = [this.tableName, this.ctx.service.projectAccount.tableName, this.ctx.service.changeApplyAudit.tableName, tenderId, this.ctx.session.sessionUser.accountId, audit.status.checking, this.ctx.session.sessionUser.accountId, audit.status.uncheck, audit.status.checkNo]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        sql = 'SELECT a.*, p.name as account_name FROM ?? as a LEFT JOIN ?? AS p On a.notice_uid = p.id WHERE a.tid = ? AND (a.id in(SELECT b.caid FROM ?? as b WHERE b.tid = ? AND b.aid = ? AND b.status = ?) OR (a.uid = ? AND (a.status = ? OR a.status = ?)))'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        sqlParam = [this.tableName, this.ctx.service.projectAccount.tableName, tenderId, this.ctx.service.changeApplyAudit.tableName, tenderId, this.ctx.session.sessionUser.accountId, audit.status.checking, this.ctx.session.sessionUser.accountId, audit.status.uncheck, audit.status.checkNo]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         break; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     case 5: // 待上报(所有的)PS:取未上报,退回,修订的变更令 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         sql = 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -203,8 +203,8 @@ module.exports = app => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     //     uid: this.ctx.session.sessionUser.accountId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     //     status: 2, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     // }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    const sql6 = 'SELECT count(*) AS count FROM ?? as a WHERE a.id in(SELECT b.caid FROM ?? as b WHERE b.tid = ? AND b.aid = ? AND b.status = ?) OR (a.uid = ? AND (a.status = ? OR a.status = ?))'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    const sqlParam6 = [this.tableName, this.ctx.service.changeApplyAudit.tableName, tenderId, this.ctx.session.sessionUser.accountId, audit.status.checking, this.ctx.session.sessionUser.accountId, audit.status.uncheck, audit.status.checkNo]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    const sql6 = 'SELECT count(*) AS count FROM ?? as a WHERE a.tid = ? AND (a.id in(SELECT b.caid FROM ?? as b WHERE b.tid = ? AND b.aid = ? AND b.status = ?) OR (a.uid = ? AND (a.status = ? OR a.status = ?)))'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    const sqlParam6 = [this.tableName, tenderId, this.ctx.service.changeApplyAudit.tableName, tenderId, this.ctx.session.sessionUser.accountId, audit.status.checking, this.ctx.session.sessionUser.accountId, audit.status.uncheck, audit.status.checkNo]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     const result6 = await this.db.query(sql6, sqlParam6); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     return result6[0].count; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 case 5: // 待上报(所有的)PS:取未上报,退回的变更立项 
			 |