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
59972098
Commit
59972098
authored
Sep 03, 2019
by
đinh thị đầm
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://git.myitsol.com/hanv/service-campaign
parents
dfc63142
56267616
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
6 deletions
+34
-6
src/main/java/com/viettel/campaign/repository/ccms_full/impl/CampaignExecuteRepositoryImp.java
...pository/ccms_full/impl/CampaignExecuteRepositoryImp.java
+5
-1
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
+20
-5
src/main/java/com/viettel/campaign/web/rest/CampaignExecuteController.java
.../viettel/campaign/web/rest/CampaignExecuteController.java
+7
-0
No files found.
src/main/java/com/viettel/campaign/repository/ccms_full/impl/CampaignExecuteRepositoryImp.java
View file @
59972098
...
...
@@ -126,7 +126,9 @@ public class CampaignExecuteRepositoryImp implements CampaignExecuteRepository {
sql
.
append
(
" CC2.COMPLETE_NAME AS surveyStatus, "
);
sql
.
append
(
" C.STATUS AS status, "
);
sql
.
append
(
" CCR.STATUS AS recordStatus, "
);
sql
.
append
(
" (( CCR.END_TIME - CCR.START_CALL ) * 24 * 60 * 60) AS callTime "
);
sql
.
append
(
" (( CCR.END_TIME - CCR.START_CALL ) * 24 * 60 * 60) AS callTime, "
);
sql
.
append
(
" C.CAMPAIGN_ID AS campaignId, "
);
sql
.
append
(
" CUS.CUSTOMER_ID AS customerId "
);
sql
.
append
(
"FROM CONTACT_CUST_RESULT CCR "
);
sql
.
append
(
" INNER JOIN CAMPAIGN C ON CCR.CAMPAIGN_ID = C.CAMPAIGN_ID "
);
sql
.
append
(
" INNER JOIN VSA_USERS VU ON CCR.AGENT_ID = VU.USER_ID "
);
...
...
@@ -293,6 +295,8 @@ public class CampaignExecuteRepositoryImp implements CampaignExecuteRepository {
item
.
setStatus
(
obj
[
10
]
==
null
?
0
:
((
BigDecimal
)
obj
[
10
]).
shortValueExact
());
item
.
setRecordStatus
(
obj
[
11
]
==
null
?
0
:
((
BigDecimal
)
obj
[
11
]).
shortValueExact
());
item
.
setCallTime
(
obj
[
12
]
==
null
?
0L
:
((
BigDecimal
)
obj
[
12
]).
longValueExact
());
item
.
setCampaignId
(
obj
[
13
]
==
null
?
0L
:
((
BigDecimal
)
obj
[
13
]).
longValueExact
());
item
.
setCustomerId
(
obj
[
14
]
==
null
?
0L
:
((
BigDecimal
)
obj
[
14
]).
longValueExact
());
list
.
add
(
item
);
}
...
...
src/main/java/com/viettel/campaign/service/CampaignExecuteService.java
View file @
59972098
...
...
@@ -52,4 +52,6 @@ public interface CampaignExecuteService {
ResultDTO
createListContacQuestResult
(
List
<
ContactQuestResultDTO
>
dtoList
);
String
getDialModeAtCurrent
(
Long
campaignId
,
Long
companySiteId
);
ResultDTO
getContactCustResultById
(
Long
contactCustResultId
);
}
src/main/java/com/viettel/campaign/service/impl/CampaignExecuteServiceImp.java
View file @
59972098
...
...
@@ -38,9 +38,6 @@ public class CampaignExecuteServiceImp implements CampaignExecuteService {
@Autowired
ModelMapper
modelMapper
;
@Autowired
ContactCustResultRepository
ccResultRepository
;
@Autowired
ReceiveCustLogRepository
custLogRepository
;
...
...
@@ -68,6 +65,9 @@ public class CampaignExecuteServiceImp implements CampaignExecuteService {
@Autowired
CampaignCustomerListColumnRepository
campaignCustomerListColumnRepository
;
@Autowired
ContactCustResultRepository
ccResultRepository
;
@Autowired
ContactQuestResultRepository
contactQuestResultRepository
;
...
...
@@ -226,9 +226,9 @@ public class CampaignExecuteServiceImp implements CampaignExecuteService {
++
rowIndex
;
++
count
;
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
}
finally
{
}
finally
{
if
(
workbook
!=
null
)
workbook
.
close
();
}
...
...
@@ -728,4 +728,19 @@ public class CampaignExecuteServiceImp implements CampaignExecuteService {
return
"-1"
;
}
@Override
public
ResultDTO
getContactCustResultById
(
Long
contactCustResultId
)
{
ResultDTO
resultDTO
=
new
ResultDTO
();
try
{
resultDTO
.
setErrorCode
(
Constants
.
ApiErrorCode
.
SUCCESS
);
resultDTO
.
setDescription
(
Constants
.
ApiErrorDesc
.
SUCCESS
);
resultDTO
.
setData
(
ccResultRepository
.
findById
(
contactCustResultId
));
}
catch
(
Exception
e
)
{
resultDTO
.
setErrorCode
(
Constants
.
ApiErrorCode
.
ERROR
);
resultDTO
.
setDescription
(
Constants
.
ApiErrorDesc
.
ERROR
);
}
return
resultDTO
;
}
}
src/main/java/com/viettel/campaign/web/rest/CampaignExecuteController.java
View file @
59972098
...
...
@@ -180,4 +180,11 @@ public class CampaignExecuteController {
String
result
=
campaignExecuteService
.
getDialModeAtCurrent
(
companySiteId
,
campaignId
);
return
new
ResponseEntity
<>(
result
,
HttpStatus
.
OK
);
}
@GetMapping
(
"/getContactCustResultById"
)
@ResponseBody
public
ResponseEntity
getContactCustResultById
(
@RequestParam
(
"contactCustResultId"
)
Long
contactCustResultId
)
{
ResultDTO
result
=
campaignExecuteService
.
getContactCustResultById
(
contactCustResultId
);
return
new
ResponseEntity
<>(
result
,
HttpStatus
.
OK
);
}
}
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