|
@@ -95,6 +95,7 @@ module.exports = app => {
|
|
|
switch (status) {
|
|
|
case auditConst.status.checking :
|
|
|
case auditConst.status.checked :
|
|
|
+ case auditConst.status.checkNo :
|
|
|
sql = 'SELECT la.`aid`, pa.`name`, pa.`company`, pa.`role`, la.`times`, la.`cpid`, la.`aid`, la.`order` ' +
|
|
|
' FROM ?? AS la Left Join ?? AS pa On la.`aid` = pa.`id` ' +
|
|
|
' WHERE la.`cpid` = ? and la.`status` = ? ' +
|
|
@@ -102,17 +103,16 @@ module.exports = app => {
|
|
|
sqlParam = [this.tableName, this.ctx.service.projectAccount.tableName, cpId, status];
|
|
|
auditor = await this.db.queryOne(sql, sqlParam);
|
|
|
break;
|
|
|
- case auditConst.status.checkNo :
|
|
|
+ case auditConst.status.back :
|
|
|
sql = 'SELECT la.`aid`, pa.`name`, pa.`company`, pa.`role`, la.`times`, la.`cpid`, la.`aid`, la.`order` ' +
|
|
|
' FROM ?? AS la Left Join ?? AS pa On la.`aid` = pa.`id`' +
|
|
|
' WHERE la.`cpid` = ? and la.`status` = ? and la.`times` = ?' +
|
|
|
' ORDER BY la.`times` desc, la.`order` desc';
|
|
|
- sqlParam = [this.tableName, this.ctx.service.projectAccount.tableName, cpId, auditConst.status.checkNo, parseInt(times) - 1];
|
|
|
+ sqlParam = [this.tableName, this.ctx.service.projectAccount.tableName, cpId, auditConst.status.back, parseInt(times) - 1];
|
|
|
auditor = await this.db.queryOne(sql, sqlParam);
|
|
|
break;
|
|
|
case auditConst.status.uncheck :
|
|
|
break;
|
|
|
- case auditConst.status.back :
|
|
|
default:break;
|
|
|
}
|
|
|
return auditor;
|