Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
service-campaign
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nguyen Ha
service-campaign
Commits
2e6e4f63
Commit
2e6e4f63
authored
Aug 14, 2019
by
Tu Bach
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://git.myitsol.com/hanv/service-campaign
parents
8db12e44
15442365
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
src/main/java/com/viettel/campaign/web/rest/CustomerController.java
...ava/com/viettel/campaign/web/rest/CustomerController.java
+12
-7
No files found.
src/main/java/com/viettel/campaign/web/rest/CustomerController.java
View file @
2e6e4f63
...
@@ -183,6 +183,7 @@ public class CustomerController {
...
@@ -183,6 +183,7 @@ public class CustomerController {
return
new
ResponseEntity
(
result
,
HttpStatus
.
OK
);
return
new
ResponseEntity
(
result
,
HttpStatus
.
OK
);
}
}
//<editor-fold desc="Download and import excel" defaultState="collapsed">
@GetMapping
(
value
=
"/downloadFileTemplate"
)
@GetMapping
(
value
=
"/downloadFileTemplate"
)
public
ResponseEntity
<
byte
[]>
downloadFileTemplate
(
@RequestParam
(
"companySiteId"
)
Long
companySiteId
)
{
public
ResponseEntity
<
byte
[]>
downloadFileTemplate
(
@RequestParam
(
"companySiteId"
)
Long
companySiteId
)
{
LOGGER
.
debug
(
"--------DOWNLOAD FILE TEMPLATE---------"
);
LOGGER
.
debug
(
"--------DOWNLOAD FILE TEMPLATE---------"
);
...
@@ -239,14 +240,18 @@ public class CustomerController {
...
@@ -239,14 +240,18 @@ public class CustomerController {
return
new
ResponseEntity
<>(
HttpStatus
.
BAD_REQUEST
);
return
new
ResponseEntity
<>(
HttpStatus
.
BAD_REQUEST
);
}
}
}
}
//</editor-fold>
@RequestMapping
(
value
=
"/searchCustomerListInfoFromCustomerList"
,
method
=
RequestMethod
.
GET
)
@PostMapping
(
"/getCustomerListInfo"
)
public
ResultDTO
searchCustomerListInfoFromCustomerList
(
@RequestParam
(
"page"
)
int
page
,
public
ResponseEntity
<?>
getCustomerListInfo
(
@RequestBody
CampaignCustomerDTO
dto
)
{
@RequestParam
(
"pageSize"
)
int
pageSize
,
List
<
CustomerListDTO
>
customers
=
customerService
.
getCustomerListInfo
(
dto
);
@RequestParam
(
"sort"
)
String
sort
,
return
new
ResponseEntity
<>(
customers
,
HttpStatus
.
OK
);
@RequestParam
(
"campaignId"
)
Long
campaignId
,
}
@RequestParam
(
"companySiteId"
)
Long
companySiteId
)
{
return
null
;
// customerService.searchCustomerListInfoFromCustomerList(page, pageSize, sort, campaignId, companySiteId);
@PostMapping
(
"/getIndividualCustomerInfo"
)
public
ResponseEntity
<?>
getIndividualCustomerInfo
(
@RequestBody
CampaignCustomerDTO
dto
)
{
List
<
CustomerDTO
>
customers
=
customerService
.
getIndividualCustomerInfo
(
dto
);
return
new
ResponseEntity
<>(
customers
,
HttpStatus
.
OK
);
}
}
@PostMapping
(
"/getCustomizeField"
)
@PostMapping
(
"/getCustomizeField"
)
...
...
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