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
e0c3f068
Commit
e0c3f068
authored
Aug 28, 2019
by
=
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hungtt-commit
parent
47677e80
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
131 additions
and
60 deletions
+131
-60
src/main/java/com/viettel/campaign/service/CustomerService.java
...in/java/com/viettel/campaign/service/CustomerService.java
+4
-0
src/main/java/com/viettel/campaign/service/impl/CustomerServiceImpl.java
...om/viettel/campaign/service/impl/CustomerServiceImpl.java
+112
-60
src/main/java/com/viettel/campaign/web/dto/CampaignInformationDTO.java
.../com/viettel/campaign/web/dto/CampaignInformationDTO.java
+1
-0
src/main/java/com/viettel/campaign/web/rest/CustomerController.java
...ava/com/viettel/campaign/web/rest/CustomerController.java
+14
-0
No files found.
src/main/java/com/viettel/campaign/service/CustomerService.java
View file @
e0c3f068
...
...
@@ -61,6 +61,10 @@ public interface CustomerService {
ResultDTO
deleteCustomerFromCampaign
(
CampaignCustomerDTO
campaignCustomerDTO
);
ResultDTO
searchCampaignInformation
(
CampaignCustomerDTO
campaignCustomerDTO
);
ResultDTO
addCustomerToCampaign
(
CampaignCustomerDTO
campaignCustomerDTO
);
// ------------ customer ------------ //
...
...
src/main/java/com/viettel/campaign/service/impl/CustomerServiceImpl.java
View file @
e0c3f068
This diff is collapsed.
Click to expand it.
src/main/java/com/viettel/campaign/web/dto/CampaignInformationDTO.java
View file @
e0c3f068
...
...
@@ -16,4 +16,5 @@ public class CampaignInformationDTO {
private
Long
totalNotCall
;
private
Long
campaignCustomer
;
private
Long
customerListId
;
private
Long
totalCusInList
;
}
src/main/java/com/viettel/campaign/web/rest/CustomerController.java
View file @
e0c3f068
...
...
@@ -260,6 +260,20 @@ public class CustomerController {
return
new
ResponseEntity
<>(
resultDTO
,
HttpStatus
.
OK
);
}
@PostMapping
(
"/searchCampaignInformation"
)
@ResponseBody
public
ResponseEntity
<?>
searchCampaignInformation
(
@RequestBody
CampaignCustomerDTO
dto
)
{
ResultDTO
resultDTO
=
customerService
.
searchCampaignInformation
(
dto
);
return
new
ResponseEntity
<>(
resultDTO
,
HttpStatus
.
OK
);
}
@PostMapping
(
"/addCustomerToCampaign"
)
@ResponseBody
public
ResponseEntity
<?>
addCustomerToCampaign
(
@RequestBody
CampaignCustomerDTO
dto
)
{
ResultDTO
resultDTO
=
customerService
.
addCustomerToCampaign
(
dto
);
return
new
ResponseEntity
<>(
resultDTO
,
HttpStatus
.
OK
);
}
private
String
saveUploadFile
(
MultipartFile
file
)
{
...
...
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