Commit 92e9c821 by danmo

活码批量下载图片名称修改

1 parent b15da8bf
...@@ -113,7 +113,7 @@ public class WeQrCodeController extends BaseController { ...@@ -113,7 +113,7 @@ public class WeQrCodeController extends BaseController {
Map<String, String> fileMap = new HashMap<>(); Map<String, String> fileMap = new HashMap<>();
List<WeQrScopeUserVo> userVoList = item.getQrUserInfos().stream().map(WeQrScopeVo::getWeQrUserList).flatMap(Collection::stream).collect(Collectors.toList()); List<WeQrScopeUserVo> userVoList = item.getQrUserInfos().stream().map(WeQrScopeVo::getWeQrUserList).flatMap(Collection::stream).collect(Collectors.toList());
String fileName = userVoList.stream().map(WeQrScopeUserVo::getUserName).collect(Collectors.joining(",")); String fileName = userVoList.stream().map(WeQrScopeUserVo::getUserName).collect(Collectors.joining(","));
fileMap.put("fileName", fileName + ".jpg"); fileMap.put("fileName", fileName + "-" + item.getName() + ".jpg");
fileMap.put("url", item.getQrCode()); fileMap.put("url", item.getQrCode());
return fileMap; return fileMap;
}).collect(Collectors.toList()); }).collect(Collectors.toList());
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!