|  | @@ -316,7 +316,7 @@ module.exports = app => {
 | 
	
		
			
				|  |  |                          m_tp: this.ctx.helper.round(materialInfo.m_tp, 2),
 | 
	
		
			
				|  |  |                          hs_m_tp: this.ctx.helper.round(this.ctx.helper.mul(materialInfo.m_tp, 1+materialInfo.rate/100), 2),
 | 
	
		
			
				|  |  |                      };
 | 
	
		
			
				|  |  | -                    await this.ctx.helper.sendWechat(nextAudit.id, smsTypeConst.const.TC, smsTypeConst.judge.approval.toString(), wxConst.template.material, wechatData);
 | 
	
		
			
				|  |  | +                    await this.ctx.helper.sendWechat(nextAudit.aid, smsTypeConst.const.TC, smsTypeConst.judge.approval.toString(), wxConst.template.material, wechatData);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |                      // 添加短信通知-需要审批提醒功能
 | 
	
	
		
			
				|  | @@ -543,7 +543,7 @@ module.exports = app => {
 | 
	
		
			
				|  |  |                      m_tp: this.ctx.helper.round(materialInfo.m_tp, 2),
 | 
	
		
			
				|  |  |                      hs_m_tp: this.ctx.helper.round(this.ctx.helper.mul(materialInfo.m_tp, 1+materialInfo.rate/100), 2),
 | 
	
		
			
				|  |  |                  };
 | 
	
		
			
				|  |  | -                await this.ctx.helper.sendWechat(audit.aid, smsTypeConst.const.TC, smsTypeConst.judge.approval.toString(), wxConst.template.material, wechatData);
 | 
	
		
			
				|  |  | +                await this.ctx.helper.sendWechat(preAuditor.aid, smsTypeConst.const.TC, smsTypeConst.judge.approval.toString(), wxConst.template.material, wechatData);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |                  await transaction.insert(this.tableName, newAuditors);
 | 
	
		
			
				|  |  |                  await transaction.commit();
 | 
	
	
		
			
				|  | @@ -669,11 +669,11 @@ module.exports = app => {
 | 
	
		
			
				|  |  |           */
 | 
	
		
			
				|  |  |          async getAuditMaterial(auditorId) {
 | 
	
		
			
				|  |  |              const sql = 'SELECT ma.`aid`, ma.`times`, ma.`order`, ma.`begin_time`, ma.`end_time`, ma.`tid`, ma.`mid`,' +
 | 
	
		
			
				|  |  | -                        '    m.`order` As `morder`, m.`status` As `mstatus`,' +
 | 
	
		
			
				|  |  | -                        '    t.`name`, t.`project_id`, t.`type`, t.`user_id` ' +
 | 
	
		
			
				|  |  | -                        '  FROM ?? AS ma, ?? AS m, ?? As t ' +
 | 
	
		
			
				|  |  | -                        '  WHERE ((ma.`aid` = ? and ma.`status` = ?) OR (m.`user_id` = ? and ma.`status` = ? and m.`status` = ? and ma.`times` = (m.`times`-1)))' +
 | 
	
		
			
				|  |  | -                        '    and ma.`mid` = m.`id` and ma.`tid` = t.`id` ORDER BY ma.`begin_time` DESC';
 | 
	
		
			
				|  |  | +                '    m.`order` As `morder`, m.`status` As `mstatus`,' +
 | 
	
		
			
				|  |  | +                '    t.`name`, t.`project_id`, t.`type`, t.`user_id` ' +
 | 
	
		
			
				|  |  | +                '  FROM ?? AS ma, ?? AS m, ?? As t ' +
 | 
	
		
			
				|  |  | +                '  WHERE ((ma.`aid` = ? and ma.`status` = ?) OR (m.`user_id` = ? and ma.`status` = ? and m.`status` = ? and ma.`times` = (m.`times`-1)))' +
 | 
	
		
			
				|  |  | +                '    and ma.`mid` = m.`id` and ma.`tid` = t.`id` ORDER BY ma.`begin_time` DESC';
 | 
	
		
			
				|  |  |              const sqlParam = [this.tableName, this.ctx.service.material.tableName, this.ctx.service.tender.tableName, auditorId, auditConst.status.checking, auditorId, auditConst.status.checkNo, auditConst.status.checkNo];
 | 
	
		
			
				|  |  |              return await this.db.query(sql, sqlParam);
 | 
	
		
			
				|  |  |          }
 |