Commit 55010bb9 authored by lemin's avatar lemin

commit

parent 651a2112
package com.showcase.synapse.sales.dto;
import java.math.BigDecimal;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class ProductSalesDto {
private String productId;
private String productName;
private String productComment;
private BigDecimal price;
private String salesChannel;
private String whId;
private String whName;
private Integer quantity;
}
package com.showcase.synapse.sales.service; package com.showcase.synapse.sales.service;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Iterator;
import java.util.List; import java.util.List;
import java.util.UUID; import java.util.UUID;
import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutionException;
...@@ -45,8 +46,26 @@ public class SalesService { ...@@ -45,8 +46,26 @@ public class SalesService {
} }
public List<ProductEntity> getProducts() throws ExecutionException, InterruptedException { public List<ProductEntity> getProducts() throws ExecutionException, InterruptedException {
return queryGateway.query(new GetProductsQuery(), List<ProductEntity> productInventoryList = queryGateway.query(new GetProductsQuery(),
ResponseTypes.multipleInstancesOf(ProductEntity.class)).get(); ResponseTypes.multipleInstancesOf(ProductEntity.class)).get();
if(productInventoryList != null && productInventoryList.size() > 0) {
ProductEntity tempPE = null;
int size = productInventoryList.size();
for (int i = 0; i < size; i++) {
}
}
// "productid": "5e75ede3-eb2c-4403-bf41-5f0dbbec07eb",
// "productname": "아이폰15",
// "productcomment": "MSA Product : 아이폰15",
// "price": 30000.00,
// "saleschannel": "company"
// "whid": "494647f8-20b8-4f65-99c9-b28044b270dc",
// "whName": "Busan warehouse",
// "quantity": 5000
return productInventoryList;
} }
public List<SalesEntity> getSalesList() throws ExecutionException, InterruptedException { public List<SalesEntity> getSalesList() throws ExecutionException, InterruptedException {
......
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