浏览代码

定额库导入内部数据、显示名称

zhongzewei 7 年之前
父节点
当前提交
8b418927b8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/ration_repository/models/ration_item.js

+ 1 - 1
modules/ration_repository/models/ration_item.js

@@ -792,7 +792,7 @@ rationItemDAO.prototype.batchUpdateSectionIdFromExcel = async function(data) {
         if (sectionId <= 0 || rationId <= 0) {
             continue;
         }
-        bulkOprs.push({updateOne: {filter: {ID: rationId}, update: {$set: {sectionId: sectionId, feeType: feeType, name: name}}}});
+        bulkOprs.push({updateOne: {filter: {ID: rationId}, update: {$set: {sectionId: sectionId, feeType: feeType, name: name, caption: name}}}});
     }
     if(bulkOprs.length <= 0){
         throw '无有效数据(树ID、定额ID不为空、且为数值)';