|
|
@ -142,13 +142,13 @@ public class ItemareaController { |
|
|
|
|
|
|
|
private List<ItemareaExcelVO> getExcelVo(List<ItemareaDO> list, Map<Integer, String[]> mapDropDown) { |
|
|
|
String[] autoRepleinsh = DictFrameworkUtils.dictTypeDictDataValue(DictTypeConstants.TRUE_FALSE); |
|
|
|
mapDropDown.put(7, autoRepleinsh); |
|
|
|
mapDropDown.put(10, autoRepleinsh); |
|
|
|
mapDropDown.put(8, autoRepleinsh); |
|
|
|
mapDropDown.put(12, autoRepleinsh); |
|
|
|
mapDropDown.put(11, autoRepleinsh); |
|
|
|
mapDropDown.put(15, autoRepleinsh); |
|
|
|
mapDropDown.put(17, autoRepleinsh); |
|
|
|
mapDropDown.put(16, autoRepleinsh); |
|
|
|
String[] manageMode = DictFrameworkUtils.dictTypeDictDataValue(DictTypeConstants.MANAGEMENT_MODE); |
|
|
|
mapDropDown.put(14, manageMode); |
|
|
|
mapDropDown.put(15, manageMode); |
|
|
|
// 导出
|
|
|
|
List<ItemareaExcelVO> datas = ItemareaConvert.INSTANCE.convertList02(list); |
|
|
|
return datas; |
|
|
@ -160,9 +160,9 @@ public class ItemareaController { |
|
|
|
List<ItemareaImportVO> list = Arrays.asList(); |
|
|
|
Map<Integer, String[]> mapDropDown = new HashMap<>(); |
|
|
|
String[] manageMode = DictFrameworkUtils.dictTypeDictDataValue(DictTypeConstants.MANAGEMENT_MODE); |
|
|
|
mapDropDown.put(3, manageMode); |
|
|
|
mapDropDown.put(4, manageMode); |
|
|
|
String[] trueFalse = DictFrameworkUtils.dictTypeDictDataValue(DictTypeConstants.TRUE_FALSE); |
|
|
|
mapDropDown.put(6, trueFalse); |
|
|
|
mapDropDown.put(8, trueFalse); |
|
|
|
mapDropDown.put(7, trueFalse); |
|
|
|
// 输出
|
|
|
|
ExcelUtils.write(response, "物料库区配置基本信息导入模板.xls", "物料库区配置基本信息列表", ItemareaImportVO.class, list,mapDropDown); |
|
|
|