|
@ -172,7 +172,8 @@ public class WarehouseStorageOrderController extends BaseController |
|
|
@RequestMapping("/temporaryPurchaseWarehouseDetailList") |
|
|
@RequestMapping("/temporaryPurchaseWarehouseDetailList") |
|
|
public Map<String,List<WarehouseStorageOrderDetail>> temporaryPurchaseWarehouseDetail(String warehouseStorageCode){ |
|
|
public Map<String,List<WarehouseStorageOrderDetail>> temporaryPurchaseWarehouseDetail(String warehouseStorageCode){ |
|
|
List<WarehouseStorageOrderDetail> allDetails = storageOrderDetailService.selectStorageOrderDetailListByCode(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; |
|
|
return groupedDetails; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -232,7 +233,8 @@ public class WarehouseStorageOrderController extends BaseController |
|
|
@RequestMapping("/temporaryPurchaseDetailList") |
|
|
@RequestMapping("/temporaryPurchaseDetailList") |
|
|
public Map<String,List<WarehouseStorageOrderDetail>> temporaryPurchaseDetail(String warehouseStorageCode){ |
|
|
public Map<String,List<WarehouseStorageOrderDetail>> temporaryPurchaseDetail(String warehouseStorageCode){ |
|
|
List<WarehouseStorageOrderDetail> allDetails = storageOrderDetailService.selectStorageOrderDetailListByCode(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; |
|
|
return groupedDetails; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -354,7 +356,8 @@ public class WarehouseStorageOrderController extends BaseController |
|
|
@RequestMapping("/storagePurchaseDetailList") |
|
|
@RequestMapping("/storagePurchaseDetailList") |
|
|
public Map<String,List<WarehouseStorageOrderDetail>> storagePurchaseDetail(String warehouseStorageCode){ |
|
|
public Map<String,List<WarehouseStorageOrderDetail>> storagePurchaseDetail(String warehouseStorageCode){ |
|
|
List<WarehouseStorageOrderDetail> allDetails = storageOrderDetailService.selectStorageOrderDetailListByCode(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; |
|
|
return groupedDetails; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -415,7 +418,8 @@ public class WarehouseStorageOrderController extends BaseController |
|
|
@RequestMapping("/storagePurchaseWarehouseDetailList") |
|
|
@RequestMapping("/storagePurchaseWarehouseDetailList") |
|
|
public Map<String,List<WarehouseStorageOrderDetail>> storagePurchaseWarehouseDetail(String warehouseStorageCode){ |
|
|
public Map<String,List<WarehouseStorageOrderDetail>> storagePurchaseWarehouseDetail(String warehouseStorageCode){ |
|
|
List<WarehouseStorageOrderDetail> allDetails = storageOrderDetailService.selectStorageOrderDetailListByCode(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; |
|
|
return groupedDetails; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|