|
@@ -198,7 +198,7 @@ module.exports = app => {
|
|
|
const times = ctx.material.status === auditConst.status.checkNo ? ctx.material.times - 1 : ctx.material.times;
|
|
|
ctx.material.user = await ctx.service.projectAccount.getAccountInfoById(ctx.material.user_id);
|
|
|
ctx.material.auditHistory = [];
|
|
|
- if (ctx.material.times > 1) {
|
|
|
+ if (ctx.material.times >= 1) {
|
|
|
for (let i = 1; i <= times; i++) {
|
|
|
ctx.material.auditHistory.push(await ctx.service.materialAudit.getAuditors(ctx.material.id, i));
|
|
|
}
|