opt:越南富佳导出更新

This commit is contained in:
2026-04-14 15:33:00 +08:00
parent 02b71795ca
commit 30acfef570
2 changed files with 18 additions and 4 deletions

View File

@@ -3,6 +3,7 @@ package org.nl.common.utils;
import java.io.Serializable;
import java.util.HashMap;
import java.util.LinkedHashMap;
/*
* @author ZZQ
@@ -17,4 +18,13 @@ public class MapOf implements Serializable {
}
return map;
}
// 新增LinkedHashMap 版本,和上面逻辑完全一致
public static <K> LinkedHashMap ofLinked(K... key) {
LinkedHashMap map = new LinkedHashMap();
for (int i = 0; i < (key.length & ~1); i = i + 2) {
map.put(key[i], key[i + 1]);
}
return map;
}
}

View File

@@ -68,10 +68,14 @@ public class StructIvtController {
}
}).collect(Collectors.toList());
try {
columnInfoService.exportFile("md_pb_groupplate", maps, response,
null, MapOf.of(
"material_code","物料编号","material_name","物料名称","sect_name","库区名称"
,"stor_name","库名称","struct_name","仓位名称","struct_code","仓位编码"
columnInfoService.exportFile(null, maps, response,
null, MapOf.ofLinked(
"stor_name","仓库名称","sect_name","库区名称",
"struct_code","位编码","struct_name","仓位名称",
"material_code","物料编号","material_name","物料名称",
"qty","组盘数量","frozen_qty","冻结数量",
"storagevehicle_code","载具编码","qty_unit_name","计量单位名称"
,"create_time","组盘时间","update_time","修改时间"
)
);
} catch (IOException e) {