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
57bf4800
Commit
57bf4800
authored
Sep 12, 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
8db5fc4d
94f54711
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
363 additions
and
143 deletions
+363
-143
src/main/java/com/viettel/campaign/repository/ccms_full/CustomerListRepository.java
...campaign/repository/ccms_full/CustomerListRepository.java
+3
-0
src/main/java/com/viettel/campaign/service/impl/CustomerServiceImpl.java
...om/viettel/campaign/service/impl/CustomerServiceImpl.java
+353
-134
src/main/java/com/viettel/campaign/utils/Constants.java
src/main/java/com/viettel/campaign/utils/Constants.java
+2
-0
src/main/resources/i18n/language_en.properties
src/main/resources/i18n/language_en.properties
+3
-5
src/main/resources/i18n/language_vi.properties
src/main/resources/i18n/language_vi.properties
+2
-4
No files found.
src/main/java/com/viettel/campaign/repository/ccms_full/CustomerListRepository.java
View file @
57bf4800
...
@@ -14,6 +14,9 @@ public interface CustomerListRepository extends JpaRepository<CustomerList, Long
...
@@ -14,6 +14,9 @@ public interface CustomerListRepository extends JpaRepository<CustomerList, Long
CustomerList
findByCustomerListCode
(
String
customerListCode
);
CustomerList
findByCustomerListCode
(
String
customerListCode
);
@Query
(
"select c from CustomerList c where c.customerListId in (:p_ids) and c.companySiteId=:p_company_site_id and c.status = 1"
)
List
<
CustomerList
>
findAllCustomerList
(
@Param
(
"p_ids"
)
List
<
Long
>
p_ids
,
@Param
(
"p_company_site_id"
)
Long
p_company_site_id
);
@Modifying
@Modifying
@Query
(
"update CustomerList c set c.status = 0 where c.customerListId=:p_customer_list_id and c.companySiteId=:p_company_site_id"
)
@Query
(
"update CustomerList c set c.status = 0 where c.customerListId=:p_customer_list_id and c.companySiteId=:p_company_site_id"
)
int
deleteCustomerList
(
@Param
(
"p_customer_list_id"
)
Long
p_customer_list_id
,
@Param
(
"p_company_site_id"
)
Long
p_company_site_id
);
int
deleteCustomerList
(
@Param
(
"p_customer_list_id"
)
Long
p_customer_list_id
,
@Param
(
"p_company_site_id"
)
Long
p_company_site_id
);
...
...
src/main/java/com/viettel/campaign/service/impl/CustomerServiceImpl.java
View file @
57bf4800
This diff is collapsed.
Click to expand it.
src/main/java/com/viettel/campaign/utils/Constants.java
View file @
57bf4800
...
@@ -7,10 +7,12 @@ public class Constants {
...
@@ -7,10 +7,12 @@ public class Constants {
public
interface
ApiErrorCode
{
public
interface
ApiErrorCode
{
String
ERROR
=
"01"
;
String
ERROR
=
"01"
;
String
SUCCESS
=
"00"
;
String
SUCCESS
=
"00"
;
String
DELETE_ERROR
=
"02"
;
}
}
public
interface
ApiErrorDesc
{
public
interface
ApiErrorDesc
{
String
ERROR
=
"ERROR"
;
String
ERROR
=
"ERROR"
;
String
SUCCESS
=
"SUCCESS"
;
String
SUCCESS
=
"SUCCESS"
;
String
DELETE_ERROR
=
"DELETE_ERROR"
;
}
}
public
interface
FileType
{
public
interface
FileType
{
String
pdf
=
"pdf"
;
String
pdf
=
"pdf"
;
...
...
src/main/resources/i18n/language_en.properties
View file @
57bf4800
...
@@ -87,15 +87,13 @@ customer.cusType.vip = VIP
...
@@ -87,15 +87,13 @@ customer.cusType.vip = VIP
customer.cusType.blacklist
=
Blacklist
customer.cusType.blacklist
=
Blacklist
customer.yes
=
Yes
customer.yes
=
Yes
customer.not
=
No
customer.not
=
No
customer.noData
=
Template empty
customer.nameRequired
=
Full name required;
customer.nameRequired
=
Full name required;
customer.emailMax100
=
Email must less than 100 character;
customer.invalidRecord
=
Invalid Record, required one more contact information;
customer.invalidRecord
=
Invalid Record, required one more contact information;
customer.onlyNumber
=
Phone contain number only;
customer.onlyNumber
=
Phone contain number only;
customer.importSuccess
=
Import Successful
customer.importFailed
=
Import Failed
customer.errorValidate
=
Error while validating
customer.errorValidate
=
Error while validating
customer.phoneMax50
=
Mobile phone must less than 50 character;
customer.phoneMax50
=
Mobile phone must less than 50 characters;
customer.phone8to15
=
Mobile phone from 8 to 15 characters;
customer.3phone
=
Max 3 mobile phone;
customer.phoneExists
=
Mobile phone exists;
customer.phoneExists
=
Mobile phone exists;
customer.notMatch
=
not match regexp validation
customer.notMatch
=
not match regexp validation
customer.notGreaterThan
=
not greater than
customer.notGreaterThan
=
not greater than
...
...
src/main/resources/i18n/language_vi.properties
View file @
57bf4800
...
@@ -89,15 +89,13 @@ customer.cusType.vip = VIP
...
@@ -89,15 +89,13 @@ customer.cusType.vip = VIP
customer.cusType.blacklist
=
Blacklist
customer.cusType.blacklist
=
Blacklist
customer.yes
=
Có
customer.yes
=
Có
customer.not
=
Không
customer.not
=
Không
customer.noData
=
Template không có dữ liệu
customer.nameRequired
=
Họ và tên không được để trống;
customer.nameRequired
=
Họ và tên không được để trống;
customer.emailMax100
=
Email không được quá 100 kí tự;
customer.invalidRecord
=
Bắt buộc nhập 1 trong 3 thông tin liên lạc(Số điện thoại chính, Số điện thoại phụ, Email);
customer.invalidRecord
=
Bắt buộc nhập 1 trong 3 thông tin liên lạc(Số điện thoại chính, Số điện thoại phụ, Email);
customer.onlyNumber
=
Số điện thoại chỉ được nhập số;
customer.onlyNumber
=
Số điện thoại chỉ được nhập số;
customer.importSuccess
=
Import dữ liệu thành công
customer.importFailed
=
Import dữ liệu thất bại
customer.errorValidate
=
Validate dữ liệu lỗi
customer.errorValidate
=
Validate dữ liệu lỗi
customer.phoneMax50
=
Số điện thoại không được quá 50 kí tự;
customer.phoneMax50
=
Số điện thoại không được quá 50 kí tự;
customer.phone8to15
=
Số điện thoại chỉ được từ 8 đến 15 kí tự;
customer.3phone
=
Tối đa chỉ được nhập 3 số điện thoại;
customer.phoneExists
=
Số điện thoại chính đã tồn tại;
customer.phoneExists
=
Số điện thoại chính đã tồn tại;
customer.notMatch
=
không đúng định dạng
customer.notMatch
=
không đúng định dạng
customer.notGreaterThan
=
không được lớn hơn
customer.notGreaterThan
=
không được lớn hơn
...
...
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