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
f8bf5b8a
Commit
f8bf5b8a
authored
Aug 30, 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
9be2fb1c
1383a8fb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
+6
-7
src/main/java/com/viettel/campaign/repository/ccms_full/impl/CampaignRepositoryImpl.java
...ign/repository/ccms_full/impl/CampaignRepositoryImpl.java
+4
-4
src/main/java/com/viettel/campaign/service/impl/CustomerServiceImpl.java
...om/viettel/campaign/service/impl/CustomerServiceImpl.java
+1
-1
src/main/java/com/viettel/campaign/service/impl/ScenarioServiceImpl.java
...om/viettel/campaign/service/impl/ScenarioServiceImpl.java
+1
-2
No files found.
src/main/java/com/viettel/campaign/repository/ccms_full/impl/CampaignRepositoryImpl.java
View file @
f8bf5b8a
...
...
@@ -754,10 +754,10 @@ public class CampaignRepositoryImpl implements CampaignRepositoryCustom {
SQLQuery
query
=
session
.
createSQLQuery
(
sb
.
toString
());
query
.
setParameter
(
"p_company_site_id"
,
dto
.
getCompanySiteId
());
query
.
setParameter
(
"p_campaign_id"
,
dto
.
getCampaignId
());
query
.
setParameter
(
"p_cus_list_code"
,
DataUtil
.
isNullOrEmpty
(
dto
.
getCustListCode
())
?
null
:
dto
.
getCustListCode
().
trim
().
toUpperCase
());
query
.
setParameter
(
"p_cus_list_name"
,
DataUtil
.
isNullOrEmpty
(
dto
.
getCustListName
())
?
null
:
dto
.
getCustListName
().
trim
().
toUpperCase
());
query
.
setParameter
(
"p_to_date"
,
DataUtil
.
isNullOrEmpty
(
dto
.
getC
ustListCode
())
?
null
:
dto
.
getCreateTimeTo
());
query
.
setParameter
(
"p_from_date"
,
DataUtil
.
isNullOrEmpty
(
dto
.
getC
ustListCode
())
?
null
:
dto
.
getCreateTimeFr
());
query
.
setParameter
(
"p_cus_list_code"
,
DataUtil
.
isNullOrEmpty
(
dto
.
getCustListCode
())
?
null
:
dto
.
getCustListCode
().
trim
().
replace
(
"\\"
,
"\\\\"
).
replaceAll
(
"%"
,
"\\%"
).
replaceAll
(
"_"
,
"\\_"
).
toUpperCase
());
query
.
setParameter
(
"p_cus_list_name"
,
DataUtil
.
isNullOrEmpty
(
dto
.
getCustListName
())
?
null
:
dto
.
getCustListName
().
trim
().
replace
(
"\\"
,
"\\\\"
).
replaceAll
(
"%"
,
"\\%"
).
replaceAll
(
"_"
,
"\\_"
).
toUpperCase
());
query
.
setParameter
(
"p_to_date"
,
DataUtil
.
isNullOrEmpty
(
dto
.
getC
reateTimeTo
())
?
null
:
dto
.
getCreateTimeTo
());
query
.
setParameter
(
"p_from_date"
,
DataUtil
.
isNullOrEmpty
(
dto
.
getC
reateTimeFr
())
?
null
:
dto
.
getCreateTimeFr
());
query
.
setParameter
(
"p_page_number"
,
dto
.
getPage
());
query
.
setParameter
(
"p_page_size"
,
dto
.
getPageSize
());
...
...
src/main/java/com/viettel/campaign/service/impl/CustomerServiceImpl.java
View file @
f8bf5b8a
...
...
@@ -1860,7 +1860,7 @@ public class CustomerServiceImpl implements CustomerService {
{
"-5"
,
"Địa chỉ"
,
"text"
},
{
"-6"
,
"Nơi sinh"
,
"text"
},
{
"-7"
,
"Ngày sinh"
,
"date"
},
{
"-8"
,
"Số điện thoại"
,
"
text
"
},
{
"-8"
,
"Số điện thoại"
,
"
number
"
},
{
"-9"
,
"email"
,
"text"
},
{
"-10"
,
"Tên đăng nhập"
,
"text"
},
{
"-11"
,
"Loại Khách hàng"
,
"combobox"
},
...
...
src/main/java/com/viettel/campaign/service/impl/ScenarioServiceImpl.java
View file @
f8bf5b8a
...
...
@@ -267,7 +267,6 @@ public class ScenarioServiceImpl implements ScenarioService {
File
file
=
new
File
(
path
);
FileInputStream
fis
=
new
FileInputStream
(
file
);
workbook
=
new
XSSFWorkbook
(
fis
);
workbook
=
new
XSSFWorkbook
(
fis
);
ByteArrayOutputStream
os
=
new
ByteArrayOutputStream
();
Sheet
sheet
=
workbook
.
getSheetAt
(
0
);
Row
row
=
sheet
.
getRow
(
2
);
...
...
@@ -449,7 +448,7 @@ public class ScenarioServiceImpl implements ScenarioService {
result
.
put
(
"message"
,
BundleUtils
.
getLangString
(
"customer.errorValidate"
,
locale
));
}
finally
{
if
(
workbook
!=
null
)
workbook
.
close
();
result
.
put
(
"code"
,
Constants
.
FILE_UPLOAD_RESP_CODE
.
ERROR
);
//
result.put("code", Constants.FILE_UPLOAD_RESP_CODE.ERROR);
}
return
result
;
}
...
...
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