Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
shop
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曲欣亮
shop
Commits
a78c844f
Commit
a78c844f
authored
Sep 27, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
e8ed3e39
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
PromoServiceImpl.java
...in/java/com/egolm/shop/service/impl/PromoServiceImpl.java
+4
-4
No files found.
src/main/java/com/egolm/shop/service/impl/PromoServiceImpl.java
View file @
a78c844f
...
...
@@ -44,7 +44,7 @@ public class PromoServiceImpl implements PromoService {
" CASE WHEN nUseCycle&32 = 32 THEN '6,' ELSE '' END +"
+
" CASE WHEN nUseCycle&64 = 64 THEN '7' ELSE '' END LIKE '%' + convert(VARCHAR,datepart(weekday,getdate())) + '%' "
+
" AND c.sShopNO = ?"
;
List
<
Map
<
String
,
Object
>>
list
=
jdbcTemplate
.
limit
(
sql
,
page
,
sCustTypeID
);
List
<
Map
<
String
,
Object
>>
list
=
jdbcTemplate
.
limit
(
sql
.
replaceAll
(
"\\s+"
,
" "
)
,
page
,
sCustTypeID
);
return
list
;
}
...
...
@@ -93,7 +93,7 @@ public class PromoServiceImpl implements PromoService {
" AND a.sPromoPaperNO = ? "
+
" AND b.sPromoGroupNO = ? "
+
" AND c.sShopNO = ? "
;
List
<
Map
<
String
,
Object
>>
list
=
jdbcTemplate
.
queryForList
(
sql
,
sPromoPaperNO
,
sPromoGroupNO
,
sCustTypeID
);
List
<
Map
<
String
,
Object
>>
list
=
jdbcTemplate
.
queryForList
(
sql
.
replaceAll
(
"\\s+"
,
" "
)
,
sPromoPaperNO
,
sPromoGroupNO
,
sCustTypeID
);
return
list
;
}
...
...
@@ -103,11 +103,11 @@ public class PromoServiceImpl implements PromoService {
" SELECT sURL = sURL "
+
" FROM tPromoPicture "
+
" WHERE sPictureTypeID = ? "
+
" AND nTag&3=
3
"
+
" AND nTag&3=
2
"
+
" AND sPromoPaperNO = ? "
+
" AND sPromoGroupNO = ? "
+
" ORDER BY nItem"
;
List
<
Map
<
String
,
Object
>>
list
=
jdbcTemplate
.
queryForList
(
sql
,
sPictureTypeID
,
sPromoPaperNO
,
sPromoGroupNO
);
List
<
Map
<
String
,
Object
>>
list
=
jdbcTemplate
.
queryForList
(
sql
.
replaceAll
(
"\\s+"
,
" "
)
,
sPictureTypeID
,
sPromoPaperNO
,
sPromoGroupNO
);
return
list
;
}
...
...
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