Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
C
com.showcase.synapse.sales
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
com.showcase.synapse
com.showcase.synapse.sales
Commits
55010bb9
Commit
55010bb9
authored
Sep 13, 2023
by
lemin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
651a2112
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
1 deletion
+45
-1
ProductSalesDto.java
.../java/com/showcase/synapse/sales/dto/ProductSalesDto.java
+25
-0
SalesService.java
...java/com/showcase/synapse/sales/service/SalesService.java
+20
-1
No files found.
src/main/java/com/showcase/synapse/sales/dto/ProductSalesDto.java
0 → 100644
View file @
55010bb9
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
;
}
src/main/java/com/showcase/synapse/sales/service/SalesService.java
View file @
55010bb9
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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment