|
|
@ -120,6 +120,16 @@ public class RuleController { |
|
|
|
List<RuleExcelVO> resultList = this.getExcelVo(list, mapDropDown); |
|
|
|
ExcelUtils.write(response, "物品基本信息.xlsx", "数据", RuleExcelVO.class, resultList, mapDropDown); |
|
|
|
} |
|
|
|
@PostMapping("/export-excel-senior") |
|
|
|
@Operation(summary = "导出规则配置 Excel") |
|
|
|
@PreAuthorize("@ss.hasPermission('wms:rule:export')") |
|
|
|
@OperateLog(type = EXPORT) |
|
|
|
public void exportItembasicExcel(@Valid @RequestBody CustomConditions conditions, HttpServletResponse response) throws IOException { |
|
|
|
List<RuleDO> list = ruleService.getRuleList(conditions); |
|
|
|
Map<Integer, String[]> mapDropDown = new HashMap<>(); |
|
|
|
List<RuleExcelVO> resultList = this.getExcelVo(list, mapDropDown); |
|
|
|
ExcelUtils.write(response, "物品基本信息.xlsx", "数据", RuleExcelVO.class, resultList, mapDropDown); |
|
|
|
} |
|
|
|
private List<RuleExcelVO> getExcelVo(List<RuleDO> list, Map<Integer, String[]> mapDropDown) { |
|
|
|
|
|
|
|
// 导出 Excel
|
|
|
|