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
9a32f07d
Commit
9a32f07d
authored
5 years ago
by
Vu Duy Anh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
anhvd commit fix bug campaign mng
parent
ad46b6ea
master
tubn
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
src/main/java/com/viettel/campaign/repository/ccms_full/impl/CampaignRepositoryImpl.java
...ign/repository/ccms_full/impl/CampaignRepositoryImpl.java
+5
-5
src/main/java/com/viettel/campaign/service/impl/ScenarioServiceImpl.java
...om/viettel/campaign/service/impl/ScenarioServiceImpl.java
+4
-0
No files found.
src/main/java/com/viettel/campaign/repository/ccms_full/impl/CampaignRepositoryImpl.java
View file @
9a32f07d
...
...
@@ -131,16 +131,16 @@ public class CampaignRepositoryImpl implements CampaignRepositoryCustom {
sb
.
append
(
" AND a.STATUS IN (:p_statuses) "
);
}
if
(!
DataUtil
.
isNullOrEmpty
(
requestDto
.
getFromDateFr
()))
{
sb
.
append
(
" AND TO_DATE(a.START_TIME, 'DD
/MM/YYYY') >= :p_frDateFr
"
);
sb
.
append
(
" AND TO_DATE(a.START_TIME, 'DD
-MM-RR') >= TO_DATE(:p_frDateFr, 'YYYYMMDD')
"
);
}
if
(!
DataUtil
.
isNullOrEmpty
(
requestDto
.
getToDateFr
()))
{
sb
.
append
(
" AND TO_DATE(a.START_TIME, 'DD
/MM/YYYY') <= :p_toDateFr
"
);
sb
.
append
(
" AND TO_DATE(a.START_TIME, 'DD
-MM-RR') <= TO_DATE(:p_toDateFr, 'YYYYMMDD')
"
);
}
if
(!
DataUtil
.
isNullOrEmpty
(
requestDto
.
getFromDateTo
()))
{
sb
.
append
(
" AND TO_DATE(a.END_TIME, 'DD
/MM/YYYY') >= :p_frDateTo
"
);
sb
.
append
(
" AND TO_DATE(a.END_TIME, 'DD
-MM-RR') >= TO_DATE(:p_frDateTo, 'YYYYMMDD')
"
);
}
if
(!
DataUtil
.
isNullOrEmpty
(
requestDto
.
getToDateTo
()))
{
sb
.
append
(
" AND TO_DATE(a.END_TIME, 'DD
/MM/YYYY') <= :p_toDateTo
"
);
sb
.
append
(
" AND TO_DATE(a.END_TIME, 'DD
-MM-RR') <= TO_DATE(:p_toDateTo, 'YYYYMMDD')
"
);
}
if
(!
DataUtil
.
isNullOrZero
(
requestDto
.
getNumOfCusFr
()))
{
sb
.
append
(
" AND a.CUSTOMER_NUMBER >= :p_cusNumFr"
);
...
...
@@ -165,7 +165,7 @@ public class CampaignRepositoryImpl implements CampaignRepositoryCustom {
SQLQuery
query
=
session
.
createSQLQuery
(
sb
.
toString
());
if
(!
DataUtil
.
isNullOrEmpty
(
requestDto
.
getCampaignCode
()))
{
String
[]
lstCode
=
requestDto
.
getCampaignCode
().
split
(
","
);
String
[]
lstCode
=
requestDto
.
getCampaignCode
().
trim
().
split
(
","
);
query
.
setParameterList
(
"p_code"
,
lstCode
);
}
...
...
This diff is collapsed.
Click to expand it.
src/main/java/com/viettel/campaign/service/impl/ScenarioServiceImpl.java
View file @
9a32f07d
...
...
@@ -215,6 +215,7 @@ public class ScenarioServiceImpl implements ScenarioService {
CellRangeAddressList
typeCellRangeAddressList
=
new
CellRangeAddressList
(
3
,
9999
,
1
,
1
);
DataValidation
typeValidation
=
dataValidationHelper
.
createValidation
(
questionType
,
typeCellRangeAddressList
);
typeValidation
.
setSuppressDropDownArrow
(
true
);
typeValidation
.
setShowErrorBox
(
true
);
sheet
.
addValidationData
(
typeValidation
);
//HashInputCombobox
...
...
@@ -222,6 +223,7 @@ public class ScenarioServiceImpl implements ScenarioService {
CellRangeAddressList
hasInputCellRangeAddressList
=
new
CellRangeAddressList
(
3
,
9999
,
4
,
4
);
DataValidation
hasInputValidation
=
dataValidationHelper
.
createValidation
(
hasInput
,
hasInputCellRangeAddressList
);
hasInputValidation
.
setSuppressDropDownArrow
(
true
);
hasInputValidation
.
setShowErrorBox
(
true
);
sheet
.
addValidationData
(
hasInputValidation
);
//Required
...
...
@@ -229,6 +231,7 @@ public class ScenarioServiceImpl implements ScenarioService {
CellRangeAddressList
requiredCellRangeAddressList
=
new
CellRangeAddressList
(
3
,
9999
,
5
,
5
);
DataValidation
requiredValidation
=
dataValidationHelper
.
createValidation
(
required
,
requiredCellRangeAddressList
);
requiredValidation
.
setSuppressDropDownArrow
(
true
);
requiredValidation
.
setShowErrorBox
(
true
);
sheet
.
addValidationData
(
requiredValidation
);
//Required
...
...
@@ -236,6 +239,7 @@ public class ScenarioServiceImpl implements ScenarioService {
CellRangeAddressList
defaultValueCellRangeAddressList
=
new
CellRangeAddressList
(
3
,
9999
,
6
,
6
);
DataValidation
defaultValueValidation
=
dataValidationHelper
.
createValidation
(
defaultValue
,
defaultValueCellRangeAddressList
);
defaultValueValidation
.
setSuppressDropDownArrow
(
true
);
defaultValueValidation
.
setShowErrorBox
(
true
);
sheet
.
addValidationData
(
defaultValueValidation
);
...
...
This diff is collapsed.
Click to expand it.
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