Selaa lähdekoodia

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

zhongzewei 7 vuotta sitten
vanhempi
commit
8b418927b8
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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不为空、且为数值)';