Explorar o código

调差审批流程不显示bug

laiguoran %!s(int64=5) %!d(string=hai) anos
pai
achega
9bc420e1a5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/controller/material_controller.js

+ 1 - 1
app/controller/material_controller.js

@@ -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));
                 }