PBOM列表去掉仓库地点

This commit is contained in:
10002327 2024-10-21 16:15:55 +08:00
parent 04480c3b04
commit 31b25008e0
1 changed files with 12 additions and 12 deletions

View File

@ -80,18 +80,18 @@ public class PBomApi extends BaseApi {
public ResultVO<IPage<BomNewPbomParentVO>> workDetailsListByPage(@RequestBody BomNewPbomParentQuery query) {
IPage<BomNewPbomParentVO> r = bomNewPbomParentService.workDetailsListByPage(query);
//添加仓库地点 by 10002327 0830
if(!r.getRecords().isEmpty()){
List<String> materialNoList = Lists.newArrayList();
List<String> facList = Lists.newArrayList();
this.get(r.getRecords(),materialNoList,facList);
List<Map<String,Object>> lgproList = sapService.lgproByList(materialNoList,facList);
Map<String,String> lgproMap = lgproList.stream().collect(Collectors.toMap(m->
String.valueOf(m.get("MATNR")) + String.valueOf(m.get("WERKS"))
,m->String.valueOf(m.get("LGPRO")),(k1,k2)->k1));
this.set(r.getRecords(),lgproMap);
}
// if(!r.getRecords().isEmpty()){
// List<String> materialNoList = Lists.newArrayList();
// List<String> facList = Lists.newArrayList();
//
// this.get(r.getRecords(),materialNoList,facList);
// List<Map<String,Object>> lgproList = sapService.lgproByList(materialNoList,facList);
// Map<String,String> lgproMap = lgproList.stream().collect(Collectors.toMap(m->
// String.valueOf(m.get("MATNR")) + String.valueOf(m.get("WERKS"))
// ,m->String.valueOf(m.get("LGPRO")),(k1,k2)->k1));
// this.set(r.getRecords(),lgproMap);
//
// }
return ResultVO.success(r);
}