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
888819be
Commit
888819be
authored
Aug 23, 2019
by
Tu Bach
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tubn campaign execute manual update
parent
efc567f0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
src/main/java/com/viettel/campaign/service/CampaignExecuteService.java
.../com/viettel/campaign/service/CampaignExecuteService.java
+2
-0
src/main/java/com/viettel/campaign/service/impl/CampaignExecuteServiceImp.java
...ttel/campaign/service/impl/CampaignExecuteServiceImp.java
+26
-0
No files found.
src/main/java/com/viettel/campaign/service/CampaignExecuteService.java
View file @
888819be
...
...
@@ -30,6 +30,8 @@ public interface CampaignExecuteService {
ResultDTO
getCustomer
(
CampaignCustomerDTO
dto
);
ResultDTO
updateCustomerResult
(
ContactCustResultDTO
dto
);
ResultDTO
getCustomerComplete
(
ReceiveCustLogDTO
dto
);
ResultDTO
getCallLog
(
ReceiveCustLogDTO
dto
);
...
...
src/main/java/com/viettel/campaign/service/impl/CampaignExecuteServiceImp.java
View file @
888819be
...
...
@@ -517,6 +517,32 @@ public class CampaignExecuteServiceImp implements CampaignExecuteService {
return
result
;
}
@Override
public
ResultDTO
updateCustomerResult
(
ContactCustResultDTO
dto
)
{
ResultDTO
result
=
new
ResultDTO
();
try
{
ContactCustResult
ccr
=
ccResultRepository
.
getOne
(
dto
.
getContactCustResultId
());
ccr
.
setDurationCall
(
0L
);
ccr
.
setStartCall
(
new
Date
());
ccr
.
setReceiveTime
(
new
Date
());
ccr
.
setPreEndTime
(
new
Date
());
ccr
.
setEndTime
(
new
Date
());
ccr
.
setWaitTime
(
0L
);
ContactCustResult
resultUpdate
=
ccResultRepository
.
save
(
ccr
);
result
.
setErrorCode
(
Constants
.
ApiErrorCode
.
SUCCESS
);
result
.
setDescription
(
Constants
.
ApiErrorDesc
.
SUCCESS
);
result
.
setData
(
resultUpdate
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
result
.
setErrorCode
(
Constants
.
ApiErrorCode
.
ERROR
);
result
.
setDescription
(
Constants
.
ApiErrorDesc
.
ERROR
);
}
return
result
;
}
@Transactional
(
DataSourceQualify
.
CCMS_FULL
)
public
ResultDTO
countRecallCustomer
(
Long
companySiteId
,
Long
agentId
)
{
Long
count
=
campaignCustomerRepository
.
countRecallCustomer
(
companySiteId
,
agentId
);
...
...
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