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
bc521952
Commit
bc521952
authored
Aug 17, 2019
by
=
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hungtt-commit reallocation customer
parent
b2e6cdb5
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
9 deletions
+9
-9
src/main/java/com/viettel/campaign/repository/ccms_full/CampaignRepositoryCustom.java
...mpaign/repository/ccms_full/CampaignRepositoryCustom.java
+1
-1
src/main/java/com/viettel/campaign/repository/ccms_full/impl/CampaignRepositoryImpl.java
...ign/repository/ccms_full/impl/CampaignRepositoryImpl.java
+1
-1
src/main/java/com/viettel/campaign/service/CampaignService.java
...in/java/com/viettel/campaign/service/CampaignService.java
+1
-1
src/main/java/com/viettel/campaign/service/impl/CampaignServiceImpl.java
...om/viettel/campaign/service/impl/CampaignServiceImpl.java
+2
-2
src/main/java/com/viettel/campaign/web/rest/CampaignController.java
...ava/com/viettel/campaign/web/rest/CampaignController.java
+3
-3
src/main/resources/sql/campaign-mng/get-list-customer-reallocation.sql
...urces/sql/campaign-mng/get-list-customer-reallocation.sql
+1
-1
No files found.
src/main/java/com/viettel/campaign/repository/ccms_full/CampaignRepositoryCustom.java
View file @
bc521952
...
...
@@ -19,7 +19,7 @@ public interface CampaignRepositoryCustom {
ResultDTO
checkAllowStatusToPrepare
(
Long
campaignId
);
//hungtt
ResultDTO
findCustomerList
(
CampaignRequestDTO
dto
);
ResultDTO
findCustomerList
Reallocation
(
CampaignRequestDTO
dto
);
//hungtt
ResultDTO
reallocationCustomer
(
CampaignRequestDTO
dto
);
}
src/main/java/com/viettel/campaign/repository/ccms_full/impl/CampaignRepositoryImpl.java
View file @
bc521952
...
...
@@ -332,7 +332,7 @@ public class CampaignRepositoryImpl implements CampaignRepositoryCustom {
@Override
@Transactional
(
DataSourceQualify
.
CCMS_FULL
)
public
ResultDTO
findCustomerList
(
CampaignRequestDTO
dto
)
{
public
ResultDTO
findCustomerList
Reallocation
(
CampaignRequestDTO
dto
)
{
ResultDTO
resultDTO
=
new
ResultDTO
();
List
<
CustomerCustomDTO
>
list
=
new
ArrayList
<>();
Map
<
String
,
String
>
params
=
new
HashMap
<>();
...
...
src/main/java/com/viettel/campaign/service/CampaignService.java
View file @
bc521952
...
...
@@ -51,7 +51,7 @@ public interface CampaignService {
ResultDTO
updateCampaign
(
CampaignDTO
dto
);
//<editor-fold: hungtt>
ResultDTO
findCustomerList
(
CampaignRequestDTO
dto
);
ResultDTO
findCustomerList
Reallocation
(
CampaignRequestDTO
dto
);
ResultDTO
reallocationCustomer
(
CampaignRequestDTO
dto
);
//</editor-fold>
...
...
src/main/java/com/viettel/campaign/service/impl/CampaignServiceImpl.java
View file @
bc521952
...
...
@@ -455,8 +455,8 @@ public class CampaignServiceImpl implements CampaignService {
// hungtt
@Override
@Transactional
(
DataSourceQualify
.
CCMS_FULL
)
public
ResultDTO
findCustomerList
(
CampaignRequestDTO
dto
)
{
return
campaignRepositoryCustom
.
findCustomerList
(
dto
);
public
ResultDTO
findCustomerList
Reallocation
(
CampaignRequestDTO
dto
)
{
return
campaignRepositoryCustom
.
findCustomerList
Reallocation
(
dto
);
}
// hungtt
...
...
src/main/java/com/viettel/campaign/web/rest/CampaignController.java
View file @
bc521952
...
...
@@ -216,10 +216,10 @@ public class CampaignController {
return
new
ResponseEntity
<>(
resultDTO
,
HttpStatus
.
OK
);
}
@PostMapping
(
"/findCustomerList"
)
@PostMapping
(
"/findCustomerList
Reallocation
"
)
@ResponseBody
public
ResponseEntity
<?>
findCustomerList
(
@RequestBody
CampaignRequestDTO
dto
)
{
ResultDTO
result
=
campaignService
.
findCustomerList
(
dto
);
public
ResponseEntity
<?>
findCustomerList
Reallocation
(
@RequestBody
CampaignRequestDTO
dto
)
{
ResultDTO
result
=
campaignService
.
findCustomerList
Reallocation
(
dto
);
return
new
ResponseEntity
<>(
result
,
HttpStatus
.
OK
);
}
...
...
src/main/resources/sql/campaign-mng/get-list-customer-reallocation.sql
View file @
bc521952
...
...
@@ -34,7 +34,7 @@ data as (
where
a
.
campaign_id
=
:
p_campaign_id
and
a
.
in_campaign_status
=
1
and
a
.
status
in
(
select
connect_status
from
connect_status_list
)
order
by
customerName
order
by
c
onnectTime
desc
,
c
ustomerName
),
final_data
as
(
select
a
.
*
,
rownum
row_
from
data
a
...
...
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