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
7f4c76e8
Commit
7f4c76e8
authored
Aug 19, 2019
by
Phạm Duy Phi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
phipd commit
parent
266fb8e6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
102 deletions
+6
-102
src/main/java/com/viettel/campaign/service/impl/AgentsServiceImpl.java
.../com/viettel/campaign/service/impl/AgentsServiceImpl.java
+6
-102
No files found.
src/main/java/com/viettel/campaign/service/impl/AgentsServiceImpl.java
View file @
7f4c76e8
...
...
@@ -86,28 +86,9 @@ public class AgentsServiceImpl implements AgentsService {
sb
.
append
(
" a.USER_NAME userName,"
);
sb
.
append
(
" a.STATUS status,"
);
sb
.
append
(
" a.FULL_NAME fullName,"
);
sb
.
append
(
" a.USER_TYPE_ID userTypeId,"
);
sb
.
append
(
" a.CREATE_DATE createDate,"
);
sb
.
append
(
" a.DESCRIPTION description,"
);
sb
.
append
(
" a.STAFF_CODE staffCode,"
);
sb
.
append
(
" a.MANAGER_ID managerId,"
);
sb
.
append
(
" a.LOCATION_ID locationId,"
);
sb
.
append
(
" a.DEPT_ID deptId,"
);
sb
.
append
(
" a.DEPT_LEVEL deptLevel,"
);
sb
.
append
(
" a.POS_ID posId,"
);
sb
.
append
(
" a.DEPT_NAME deptName,"
);
sb
.
append
(
" a.GROUP_ID groupId,"
);
sb
.
append
(
" a.SITE_ID siteId,"
);
sb
.
append
(
" a.COMPANY_SITE_ID companySiteId,"
);
sb
.
append
(
" a.AGENT_TYPE agentType,"
);
sb
.
append
(
" a.MOBILE_NUMBER mobileNumber,"
);
sb
.
append
(
" a.FACEBOOK_ID facebookId,"
);
sb
.
append
(
" a.LOGIN_TYPE loginType,"
);
sb
.
append
(
" a.GOOGLE_ID googleId,"
);
sb
.
append
(
" a.EMAIL email,"
);
sb
.
append
(
" a.AVAILABLE_TICKET availableTicket,"
);
sb
.
append
(
" a.USER_KAZOO_ID userKazooId,"
);
sb
.
append
(
" b.FILTER_TYPE filterType"
);
sb
.
append
(
" b.FILTER_TYPE filterType,"
);
sb
.
append
(
" b.CAMPAIGN_AGENT_ID campaignAgentId"
);
sb
.
append
(
" FROM VSA_USERS a"
);
sb
.
append
(
" LEFT JOIN CAMPAIGN_AGENT b on a.USER_ID = b.AGENT_ID"
);
...
...
@@ -124,28 +105,9 @@ public class AgentsServiceImpl implements AgentsService {
query
.
addScalar
(
"userName"
,
new
StringType
());
query
.
addScalar
(
"status"
,
new
ShortType
());
query
.
addScalar
(
"fullName"
,
new
StringType
());
query
.
addScalar
(
"userTypeId"
,
new
LongType
());
query
.
addScalar
(
"createDate"
,
new
DateType
());
query
.
addScalar
(
"description"
,
new
StringType
());
query
.
addScalar
(
"staffCode"
,
new
StringType
());
query
.
addScalar
(
"managerId"
,
new
LongType
());
query
.
addScalar
(
"locationId"
,
new
LongType
());
query
.
addScalar
(
"deptId"
,
new
LongType
());
query
.
addScalar
(
"deptLevel"
,
new
StringType
());
query
.
addScalar
(
"posId"
,
new
LongType
());
query
.
addScalar
(
"deptName"
,
new
StringType
());
query
.
addScalar
(
"groupId"
,
new
LongType
());
query
.
addScalar
(
"siteId"
,
new
LongType
());
query
.
addScalar
(
"companySiteId"
,
new
LongType
());
query
.
addScalar
(
"agentType"
,
new
ShortType
());
query
.
addScalar
(
"mobileNumber"
,
new
StringType
());
query
.
addScalar
(
"facebookId"
,
new
StringType
());
query
.
addScalar
(
"loginType"
,
new
ShortType
());
query
.
addScalar
(
"googleId"
,
new
StringType
());
query
.
addScalar
(
"email"
,
new
StringType
());
query
.
addScalar
(
"availableTicket"
,
new
LongType
());
query
.
addScalar
(
"userKazooId"
,
new
StringType
());
query
.
addScalar
(
"filterType"
,
new
ShortType
());
query
.
addScalar
(
"campaignAgentId"
,
new
LongType
());
query
.
setResultTransformer
(
Transformers
.
aliasToBean
(
VSAUsersDTO
.
class
));
int
count
=
0
;
...
...
@@ -199,28 +161,9 @@ public class AgentsServiceImpl implements AgentsService {
sb
.
append
(
" a.USER_NAME userName,"
);
sb
.
append
(
" a.STATUS status,"
);
sb
.
append
(
" a.FULL_NAME fullName,"
);
sb
.
append
(
" a.USER_TYPE_ID userTypeId,"
);
sb
.
append
(
" a.CREATE_DATE createDate,"
);
sb
.
append
(
" a.DESCRIPTION description,"
);
sb
.
append
(
" a.STAFF_CODE staffCode,"
);
sb
.
append
(
" a.MANAGER_ID managerId,"
);
sb
.
append
(
" a.LOCATION_ID locationId,"
);
sb
.
append
(
" a.DEPT_ID deptId,"
);
sb
.
append
(
" a.DEPT_LEVEL deptLevel,"
);
sb
.
append
(
" a.POS_ID posId,"
);
sb
.
append
(
" a.DEPT_NAME deptName,"
);
sb
.
append
(
" a.GROUP_ID groupId,"
);
sb
.
append
(
" a.SITE_ID siteId,"
);
sb
.
append
(
" a.COMPANY_SITE_ID companySiteId,"
);
sb
.
append
(
" a.AGENT_TYPE agentType,"
);
sb
.
append
(
" a.MOBILE_NUMBER mobileNumber,"
);
sb
.
append
(
" a.FACEBOOK_ID facebookId,"
);
sb
.
append
(
" a.LOGIN_TYPE loginType,"
);
sb
.
append
(
" a.GOOGLE_ID googleId,"
);
sb
.
append
(
" a.EMAIL email,"
);
sb
.
append
(
" a.AVAILABLE_TICKET availableTicket,"
);
sb
.
append
(
" a.USER_KAZOO_ID userKazooId,"
);
sb
.
append
(
" b.FILTER_TYPE filterType"
);
sb
.
append
(
" b.FILTER_TYPE filterType,"
);
sb
.
append
(
" b.CAMPAIGN_AGENT_ID campaignAgentId"
);
sb
.
append
(
" FROM VSA_USERS a"
);
sb
.
append
(
" RIGHT JOIN CAMPAIGN_AGENT b on a.USER_ID = b.AGENT_ID"
);
...
...
@@ -238,28 +181,9 @@ public class AgentsServiceImpl implements AgentsService {
query
.
addScalar
(
"userName"
,
new
StringType
());
query
.
addScalar
(
"status"
,
new
ShortType
());
query
.
addScalar
(
"fullName"
,
new
StringType
());
query
.
addScalar
(
"userTypeId"
,
new
LongType
());
query
.
addScalar
(
"createDate"
,
new
DateType
());
query
.
addScalar
(
"description"
,
new
StringType
());
query
.
addScalar
(
"staffCode"
,
new
StringType
());
query
.
addScalar
(
"managerId"
,
new
LongType
());
query
.
addScalar
(
"locationId"
,
new
LongType
());
query
.
addScalar
(
"deptId"
,
new
LongType
());
query
.
addScalar
(
"deptLevel"
,
new
StringType
());
query
.
addScalar
(
"posId"
,
new
LongType
());
query
.
addScalar
(
"deptName"
,
new
StringType
());
query
.
addScalar
(
"groupId"
,
new
LongType
());
query
.
addScalar
(
"siteId"
,
new
LongType
());
query
.
addScalar
(
"companySiteId"
,
new
LongType
());
query
.
addScalar
(
"agentType"
,
new
ShortType
());
query
.
addScalar
(
"mobileNumber"
,
new
StringType
());
query
.
addScalar
(
"facebookId"
,
new
StringType
());
query
.
addScalar
(
"loginType"
,
new
ShortType
());
query
.
addScalar
(
"googleId"
,
new
StringType
());
query
.
addScalar
(
"email"
,
new
StringType
());
query
.
addScalar
(
"availableTicket"
,
new
LongType
());
query
.
addScalar
(
"userKazooId"
,
new
StringType
());
query
.
addScalar
(
"filterType"
,
new
ShortType
());
query
.
addScalar
(
"campaignAgentId"
,
new
LongType
());
query
.
setResultTransformer
(
Transformers
.
aliasToBean
(
VSAUsersDTO
.
class
));
int
count
=
0
;
...
...
@@ -409,27 +333,7 @@ public class AgentsServiceImpl implements AgentsService {
query
.
addScalar
(
"userName"
,
new
StringType
());
query
.
addScalar
(
"status"
,
new
ShortType
());
query
.
addScalar
(
"fullName"
,
new
StringType
());
// query.addScalar("userTypeId", new LongType());
// query.addScalar("createDate", new DateType());
// query.addScalar("description", new StringType());
// query.addScalar("staffCode", new StringType());
// query.addScalar("managerId", new LongType());
// query.addScalar("locationId", new LongType());
// query.addScalar("deptId", new LongType());
// query.addScalar("deptLevel", new StringType());
// query.addScalar("posId", new LongType());
// query.addScalar("deptName", new StringType());
// query.addScalar("groupId", new LongType());
// query.addScalar("siteId", new LongType());
query
.
addScalar
(
"companySiteId"
,
new
LongType
());
// query.addScalar("agentType", new ShortType());
// query.addScalar("mobileNumber", new StringType());
// query.addScalar("facebookId", new StringType());
// query.addScalar("loginType", new ShortType());
// query.addScalar("googleId", new StringType());
// query.addScalar("email", new StringType());
// query.addScalar("availableTicket", new LongType());
// query.addScalar("userKazooId", new StringType());
query
.
addScalar
(
"filterType"
,
new
ShortType
());
query
.
addScalar
(
"campaignAgentId"
,
new
LongType
());
...
...
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