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
675a2688
Commit
675a2688
authored
Oct 03, 2019
by
=
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hungtt-commit fix bug search reallocation customer
parent
07a95c14
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/main/java/com/viettel/campaign/repository/ccms_full/impl/CampaignRepositoryImpl.java
...ign/repository/ccms_full/impl/CampaignRepositoryImpl.java
+4
-2
No files found.
src/main/java/com/viettel/campaign/repository/ccms_full/impl/CampaignRepositoryImpl.java
View file @
675a2688
...
@@ -463,7 +463,7 @@ public class CampaignRepositoryImpl implements CampaignRepositoryCustom {
...
@@ -463,7 +463,7 @@ public class CampaignRepositoryImpl implements CampaignRepositoryCustom {
stringBuilder
.
append
(
" where rownum = 1"
);
stringBuilder
.
append
(
" where rownum = 1"
);
stringBuilder
.
append
(
" ),"
);
stringBuilder
.
append
(
" ),"
);
stringBuilder
.
append
(
" connect_status as ("
);
stringBuilder
.
append
(
" connect_status as ("
);
stringBuilder
.
append
(
" select complete_value, complete_name"
);
stringBuilder
.
append
(
" select complete_value, complete_name
, complete_type
"
);
stringBuilder
.
append
(
" from campaign_complete_code"
);
stringBuilder
.
append
(
" from campaign_complete_code"
);
stringBuilder
.
append
(
" where company_site_id = :p_company_site_id"
);
stringBuilder
.
append
(
" where company_site_id = :p_company_site_id"
);
stringBuilder
.
append
(
" and complete_type = 1"
);
stringBuilder
.
append
(
" and complete_type = 1"
);
...
@@ -479,7 +479,8 @@ public class CampaignRepositoryImpl implements CampaignRepositoryCustom {
...
@@ -479,7 +479,8 @@ public class CampaignRepositoryImpl implements CampaignRepositoryCustom {
stringBuilder
.
append
(
" b.name customerName,"
);
stringBuilder
.
append
(
" b.name customerName,"
);
stringBuilder
.
append
(
" c.contact mobileNumber,"
);
stringBuilder
.
append
(
" c.contact mobileNumber,"
);
stringBuilder
.
append
(
" to_char(a.call_time, 'DD/MM/YYYY HH24:MI:SS') connectTime,"
);
stringBuilder
.
append
(
" to_char(a.call_time, 'DD/MM/YYYY HH24:MI:SS') connectTime,"
);
stringBuilder
.
append
(
" d.complete_name connectStatus"
);
stringBuilder
.
append
(
" d.complete_name connectStatus,"
);
stringBuilder
.
append
(
" d.complete_type completeType"
);
stringBuilder
.
append
(
" from campaign_customer a"
);
stringBuilder
.
append
(
" from campaign_customer a"
);
stringBuilder
.
append
(
" left join customer b on a.customer_id = b.customer_id"
);
stringBuilder
.
append
(
" left join customer b on a.customer_id = b.customer_id"
);
stringBuilder
.
append
(
" left join contact c on a.customer_id = c.customer_id"
);
stringBuilder
.
append
(
" left join contact c on a.customer_id = c.customer_id"
);
...
@@ -487,6 +488,7 @@ public class CampaignRepositoryImpl implements CampaignRepositoryCustom {
...
@@ -487,6 +488,7 @@ public class CampaignRepositoryImpl implements CampaignRepositoryCustom {
stringBuilder
.
append
(
" where a.campaign_id = :p_campaign_id"
);
stringBuilder
.
append
(
" where a.campaign_id = :p_campaign_id"
);
stringBuilder
.
append
(
" and a.in_campaign_status = 1"
);
stringBuilder
.
append
(
" and a.in_campaign_status = 1"
);
stringBuilder
.
append
(
" and a.status in (select connect_status from connect_status_list)"
);
stringBuilder
.
append
(
" and a.status in (select connect_status from connect_status_list)"
);
stringBuilder
.
append
(
" and d.complete_type = 1"
);
stringBuilder
.
append
(
" order by connectTime desc, customerName"
);
stringBuilder
.
append
(
" order by connectTime desc, customerName"
);
stringBuilder
.
append
(
" ),"
);
stringBuilder
.
append
(
" ),"
);
stringBuilder
.
append
(
" final_data as ("
);
stringBuilder
.
append
(
" final_data as ("
);
...
...
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