Commit 20073a1f by zhiwj

门店导出优化

parent 171e2cce
......@@ -392,10 +392,9 @@ public class StoreController extends DownloadUtils {
String path = RequestContext.getContext().getRequest().getSession().getServletContext().getRealPath("/excel/csv/collaborator/file/");
List<String> nameList = new ArrayList<>();
List<StoreListSourceVO> listSource = this.getStoreAllListSource(UserDetailUtils.getUserDetail().getEnterpriseId());
for(StoreListSourceVO vo : listSource){
if(storeExportQO.getFieldCodeList().contains(vo.getValue())){
nameList.add(vo.getKey());
}
Map<String, String> map = listSource.stream().collect(Collectors.toMap(e -> e.getValue(), e -> e.getKey()));
for (String fieldCode: storeExportQO.getFieldCodeList()) {
nameList.add(map.get(fieldCode));
}
List<String> fieldCodeList = storeExportQO.getFieldCodeList();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment