Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
03c33d75
Commit
03c33d75
authored
Sep 12, 2019
by
libin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
营地排序
parent
4f460617
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
CampsiteShopBiz.java
.../java/com/xxfc/platform/campsite/biz/CampsiteShopBiz.java
+5
-4
CampsiteShopMapper.xml
...e-server/src/main/resources/mapper/CampsiteShopMapper.xml
+2
-2
No files found.
xx-campsite/xx-campsite-server/src/main/java/com/xxfc/platform/campsite/biz/CampsiteShopBiz.java
View file @
03c33d75
...
...
@@ -205,15 +205,16 @@ public class CampsiteShopBiz extends BaseBiz<CampsiteShopMapper, CampsiteShop> {
List
<
String
>
tagNames
=
shopIdOfTagsMap
.
get
(
campsiteShopAdminPageDTO
.
getId
());
campsiteShopAdminPageDTO
.
setStoreTypeName
(
tagNames
==
null
?
new
ArrayList
<
String
>()
:
tagNames
);
}
}).
sorted
(
Comparator
.
comparing
(
CampsiteShopAdminPageDTO:
:
getHot
).
reversed
().
thenComparing
(
CampsiteShopAdminPageDTO:
:
getCrtTime
).
reversed
()).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
List
<
CampsiteShopAdminPageVo
>
campsiteShopAdminPageVos
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
campsiteShopAdminPageDTOS
),
new
TypeReference
<
List
<
CampsiteShopAdminPageVo
>>()
{
});
campsiteShopAdminPageVos
.
sort
(
Comparator
.
comparing
(
CampsiteShopAdminPageVo:
:
getHot
).
reversed
().
thenComparing
(
Comparator
.
comparing
(
CampsiteShopAdminPageVo:
:
getCrtTime
).
reversed
()));
//组装数据
campsiteShopAdminPageDataVos
.
setTotalPage
(
campsiteShopAdminpageDTOPageDataVO
.
getTotalPage
());
campsiteShopAdminPageDataVos
.
setTotalCount
(
campsiteShopAdminpageDTOPageDataVO
.
getTotalCount
());
campsiteShopAdminPageDataVos
.
setPageSize
(
campsiteShopAdminpageDTOPageDataVO
.
getPageSize
());
campsiteShopAdminPageDataVos
.
setPageNum
(
campsiteShopAdminpageDTOPageDataVO
.
getPageNum
());
campsiteShopAdminPageDataVos
.
setData
(
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
campsiteShopAdminPageDTOS
),
new
TypeReference
<
List
<
CampsiteShopAdminPageVo
>>()
{
}));
campsiteShopAdminPageDataVos
.
setData
(
campsiteShopAdminPageVos
);
return
campsiteShopAdminPageDataVos
;
}
...
...
xx-campsite/xx-campsite-server/src/main/resources/mapper/CampsiteShopMapper.xml
View file @
03c33d75
...
...
@@ -44,7 +44,7 @@
where cs.sale_state=1 and cs.is_del=0
<if
test=
"typeId!=null"
>
and cst.tag_id=#{typeId}
</if>
order by `
crtTime`
DESC
</if>
order by `
hot`DESC,`crt_time`
DESC
</select>
<!--首页查询全部-->
...
...
@@ -79,7 +79,7 @@
<if
test=
"name != null and name != ''"
>
and `name` like concat('%',#{name},'%')
</if>
ORDER BY `hot` DESC
</select>
<!--根据id更新营地状态-->
...
...
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