瀏覽代碼

修复批量上报判断bug

ellisran 1 年之前
父節點
當前提交
0a177b00a8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/service/change.js

+ 1 - 1
app/service/change.js

@@ -2109,7 +2109,7 @@ module.exports = app => {
                 const nullList = this._.filter(changeList, function(item) {
                     return !item.name;
                 });
-                if (nullList.length > 0) continue;
+                if (changeList.length === 0 || nullList.length > 0) continue;
                 // 判断是否需要更新auditList
                 const auditList = await this.ctx.service.changeAudit.getAllDataByCondition({ where: { cid: l.cid, times: l.times }, orders: [['usite', 'asc']] });
                 auditList.shift();