Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
caosy
/
fun-golf-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b2f7bfd5
authored
Nov 02, 2017
by
Huang Linyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add order by in communeResource
parent
82e56fbb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
src/main/java/com/ctrip/fun/golf/dao/assemble/AsmCourseResourceDao.java
src/main/java/com/ctrip/fun/golf/service/assemble/AsmCourseResourceService.java
src/main/java/com/ctrip/fun/golf/dao/assemble/AsmCourseResourceDao.java
View file @
b2f7bfd5
...
...
@@ -896,7 +896,7 @@ public class AsmCourseResourceDao extends GenericHibernateDao<AsmCourseresource,
sqlUnion
.
append
(
" UNION ( "
);
sqlUnion
.
append
(
sql2
.
toString
());
sqlUnion
.
append
(
" )"
);
sqlUnion
.
append
(
" ) u "
);
sqlUnion
.
append
(
" ) u
order by u.priceDate
"
);
sql
.
append
(
sqlUnion
.
toString
());
sql_count
.
append
(
sqlUnion
.
toString
());
...
...
src/main/java/com/ctrip/fun/golf/service/assemble/AsmCourseResourceService.java
View file @
b2f7bfd5
...
...
@@ -602,8 +602,8 @@ public class AsmCourseResourceService {
String
priceDateStr
=
df
.
format
(
priceDate
);
int
index
=
containDate
(
v4list
,
priceDateStr
);
CommuneResourceV4PriceBean
bean
=
new
CommuneResourceV4PriceBean
();
String
productName
=
asm
.
getProductName
();
//System.out.println(productName.getBytes());
String
simpleProductName
=
""
;
if
(
productName
!=
null
&&
productName
.
length
()>
2
){
int
endIndex
=
productName
.
indexOf
(
"爱玩公社"
);
...
...
@@ -641,7 +641,7 @@ public class AsmCourseResourceService {
}
/**
* 判断某个 List<
Map<Date, List<CommuneResourceBean>>> v4list 是否包含key为priceDate的Map
元素
* 判断某个 List<
CommuneResourceV4> v4list 是否包含CommuneResourceV4.priceDate为priceDateStr的
元素
* @param priceDateStr
* @param v4list
* @param v4list
...
...
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