|
|
@ -172,7 +172,8 @@ public class WarehouseStorageOrderController extends BaseController |
|
|
|
@RequestMapping("/temporaryPurchaseWarehouseDetailList") |
|
|
|
public Map<String,List<WarehouseStorageOrderDetail>> temporaryPurchaseWarehouseDetail(String warehouseStorageCode){ |
|
|
|
List<WarehouseStorageOrderDetail> allDetails = storageOrderDetailService.selectStorageOrderDetailListByCode(warehouseStorageCode); |
|
|
|
Map<String, List<WarehouseStorageOrderDetail>> groupedDetails = allDetails.stream().collect(Collectors.groupingBy(WarehouseStorageOrderDetail::getSupplierCode)); |
|
|
|
List<WarehouseStorageOrderDetail> filterAllDetails = allDetails.stream().filter(wso -> "0".equals(wso.getMaterialDeptType())).collect(Collectors.toList()); |
|
|
|
Map<String, List<WarehouseStorageOrderDetail>> groupedDetails = filterAllDetails.stream().collect(Collectors.groupingBy(WarehouseStorageOrderDetail::getSupplierCode)); |
|
|
|
return groupedDetails; |
|
|
|
} |
|
|
|
|
|
|
@ -232,7 +233,8 @@ public class WarehouseStorageOrderController extends BaseController |
|
|
|
@RequestMapping("/temporaryPurchaseDetailList") |
|
|
|
public Map<String,List<WarehouseStorageOrderDetail>> temporaryPurchaseDetail(String warehouseStorageCode){ |
|
|
|
List<WarehouseStorageOrderDetail> allDetails = storageOrderDetailService.selectStorageOrderDetailListByCode(warehouseStorageCode); |
|
|
|
Map<String, List<WarehouseStorageOrderDetail>> groupedDetails = allDetails.stream().collect(Collectors.groupingBy(WarehouseStorageOrderDetail::getSupplierCode)); |
|
|
|
List<WarehouseStorageOrderDetail> filterAllDetails = allDetails.stream().filter(wso -> "1".equals(wso.getMaterialDeptType())).collect(Collectors.toList()); |
|
|
|
Map<String, List<WarehouseStorageOrderDetail>> groupedDetails = filterAllDetails.stream().collect(Collectors.groupingBy(WarehouseStorageOrderDetail::getSupplierCode)); |
|
|
|
return groupedDetails; |
|
|
|
} |
|
|
|
|
|
|
@ -354,7 +356,8 @@ public class WarehouseStorageOrderController extends BaseController |
|
|
|
@RequestMapping("/storagePurchaseDetailList") |
|
|
|
public Map<String,List<WarehouseStorageOrderDetail>> storagePurchaseDetail(String warehouseStorageCode){ |
|
|
|
List<WarehouseStorageOrderDetail> allDetails = storageOrderDetailService.selectStorageOrderDetailListByCode(warehouseStorageCode); |
|
|
|
Map<String, List<WarehouseStorageOrderDetail>> groupedDetails = allDetails.stream().collect(Collectors.groupingBy(WarehouseStorageOrderDetail::getSupplierCode)); |
|
|
|
List<WarehouseStorageOrderDetail> filterAllDetails = allDetails.stream().filter(wso -> "1".equals(wso.getMaterialDeptType())).collect(Collectors.toList()); |
|
|
|
Map<String, List<WarehouseStorageOrderDetail>> groupedDetails = filterAllDetails.stream().collect(Collectors.groupingBy(WarehouseStorageOrderDetail::getSupplierCode)); |
|
|
|
return groupedDetails; |
|
|
|
} |
|
|
|
|
|
|
@ -415,7 +418,8 @@ public class WarehouseStorageOrderController extends BaseController |
|
|
|
@RequestMapping("/storagePurchaseWarehouseDetailList") |
|
|
|
public Map<String,List<WarehouseStorageOrderDetail>> storagePurchaseWarehouseDetail(String warehouseStorageCode){ |
|
|
|
List<WarehouseStorageOrderDetail> allDetails = storageOrderDetailService.selectStorageOrderDetailListByCode(warehouseStorageCode); |
|
|
|
Map<String, List<WarehouseStorageOrderDetail>> groupedDetails = allDetails.stream().collect(Collectors.groupingBy(WarehouseStorageOrderDetail::getSupplierCode)); |
|
|
|
List<WarehouseStorageOrderDetail> filterAllDetails = allDetails.stream().filter(wso -> "0".equals(wso.getMaterialDeptType())).collect(Collectors.toList()); |
|
|
|
Map<String, List<WarehouseStorageOrderDetail>> groupedDetails = filterAllDetails.stream().collect(Collectors.groupingBy(WarehouseStorageOrderDetail::getSupplierCode)); |
|
|
|
return groupedDetails; |
|
|
|
} |
|
|
|
|
|
|
|