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
d4d4491d
Commit
d4d4491d
authored
Jun 22, 2019
by
libin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
营地
parent
00939e26
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
8 deletions
+30
-8
CampsiteShopAdminPageDTO.java
.../xxfc/platform/campsite/dto/CampsiteShopAdminPageDTO.java
+6
-0
CampsiteShopAdminPageVo.java
...om/xxfc/platform/campsite/vo/CampsiteShopAdminPageVo.java
+5
-0
CampsiteShopBiz.java
.../java/com/xxfc/platform/campsite/biz/CampsiteShopBiz.java
+2
-2
CampsiteShopMapper.xml
...e-server/src/main/resources/mapper/CampsiteShopMapper.xml
+9
-2
TourTagBiz.java
.../src/main/java/com/xxfc/platform/tour/biz/TourTagBiz.java
+8
-4
No files found.
xx-campsite/xx-campsite-api/src/main/java/com/xxfc/platform/campsite/dto/CampsiteShopAdminPageDTO.java
View file @
d4d4491d
...
...
@@ -53,6 +53,12 @@ public class CampsiteShopAdminPageDTO implements Serializable {
@ApiModelProperty
(
value
=
"创建时间"
,
hidden
=
true
)
private
Long
crtTime
;
/**
* 开业时间
*/
@ApiModelProperty
(
value
=
"开业时间"
)
private
Long
shopStartTime
;
/**
* 上下架状态 0-创建状态 1-上架 2-下架
*/
...
...
xx-campsite/xx-campsite-api/src/main/java/com/xxfc/platform/campsite/vo/CampsiteShopAdminPageVo.java
View file @
d4d4491d
...
...
@@ -55,6 +55,11 @@ public class CampsiteShopAdminPageVo implements Serializable {
@ApiModelProperty
(
value
=
"创建时间"
,
hidden
=
true
)
private
Long
crtTime
;
/**
* 开业时间
*/
@ApiModelProperty
(
value
=
"开业时间 "
)
private
Long
shopStartTime
;
/**
* 上下架状态 0-创建状态 1-上架 2-下架
*/
...
...
xx-campsite/xx-campsite-server/src/main/java/com/xxfc/platform/campsite/biz/CampsiteShopBiz.java
View file @
d4d4491d
...
...
@@ -130,7 +130,7 @@ public class CampsiteShopBiz extends BaseBiz<CampsiteShopMapper,CampsiteShop> {
}
//筛选时间处理
Long
startTime
=
campsiteShopAdminFindDTO
.
getStartTime
();
/*
Long startTime = campsiteShopAdminFindDTO.getStartTime();
Long endTime = campsiteShopAdminFindDTO.getEndTime();
if (startTime==null || endTime ==null){
Long processTime = startTime!=null?startTime:(endTime!=null?endTime:null);
...
...
@@ -141,7 +141,7 @@ public class CampsiteShopBiz extends BaseBiz<CampsiteShopMapper,CampsiteShop> {
}else {
campsiteShopAdminFindDTO.setStartTime(processStartTime(startTime));
campsiteShopAdminFindDTO.setEndTime(processEndTime(endTime));
}
}
*/
PageDataVO
<
CampsiteShopAdminPageDTO
>
campsiteShopAdminpageDTOPageDataVO
=
PageDataVO
.
pageInfo
(
campsiteShopAdminFindDTO
.
getPage
(),
campsiteShopAdminFindDTO
.
getLimit
(),()->
mapper
.
findCampsiteShops
(
campsiteShopAdminFindDTO
));
List
<
CampsiteShopAdminPageDTO
>
campsiteShopAdminPageDTOS
=
campsiteShopAdminpageDTOPageDataVO
.
getData
();
if
(
log
.
isDebugEnabled
()){
...
...
xx-campsite/xx-campsite-server/src/main/resources/mapper/CampsiteShopMapper.xml
View file @
d4d4491d
...
...
@@ -52,15 +52,22 @@
</select>
<select
id=
"findCampsiteShops"
parameterType=
"com.xxfc.platform.campsite.dto.CampsiteShopAdminFindDTO"
resultType=
"com.xxfc.platform.campsite.dto.CampsiteShopAdminPageDTO"
>
SELECT `id`,`name`,`hot`,`crt_time` as `crtTime`,`sale_state` as
SELECT `id`,`name`,`hot`,`crt_time` as `crtTime`,`s
tart_time` as `shopStartTime`,`s
ale_state` as
`saleState` FROM `campsite_shop`
where `is_del`=0
<if
test=
"startTime != null and endTime!=null"
>
and
c
rt_time between #{startTime} and #{endTime}
and
sta
rt_time between #{startTime} and #{endTime}
</if>
<if
test=
"startTime != null and endTime==null"
>
and
<![CDATA[ start_time >= #{startTime} ]]>
</if>
<if
test=
"endTime != null and startTime==null"
>
and
<![CDATA[ start_time <= #{endTime} ]]>
</if>
<if
test=
"name != null and name != ''"
>
and `name` like concat('%',#{name},'%')
</if>
</select>
<update
id=
"updateCampsiteStatus"
>
...
...
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/biz/TourTagBiz.java
View file @
d4d4491d
...
...
@@ -159,9 +159,11 @@ public class TourTagBiz extends BaseBiz<TourTagMapper,TourTag> {
if
(
effectRows
==
0
){
return
effectRows
;
}
//保存标签轮播图
tourTagBannerDTOS
.
stream
().
peek
(
tourTagBannerDTO
->
tourTagBannerDTO
.
setTagId
(
tourTagDTO
.
getId
())).
count
();
tourTagBannerBiz
.
saveBatch
(
tourTagBannerDTOS
,
userDTO
);
if
(
CollectionUtils
.
isNotEmpty
(
tourTagBannerDTOS
))
{
//保存标签轮播图
tourTagBannerDTOS
.
stream
().
peek
(
tourTagBannerDTO
->
tourTagBannerDTO
.
setTagId
(
tourTagDTO
.
getId
())).
count
();
tourTagBannerBiz
.
saveBatch
(
tourTagBannerDTOS
,
userDTO
);
}
return
effectRows
;
}
...
...
@@ -205,7 +207,9 @@ public class TourTagBiz extends BaseBiz<TourTagMapper,TourTag> {
if
(
log
.
isDebugEnabled
()){
log
.
debug
(
"更改标签对应的轮播图信息:[{}]"
,
tourTagBannerDTOS
);
}
tourTagBannerDTOS
.
stream
().
filter
(
tourTagBannerDTO
->
Objects
.
isNull
(
tourTagBannerDTO
.
getTagId
())).
peek
(
tourTagBannerDTO
->
tourTagBannerDTO
.
setTagId
(
tourTagDTO
.
getId
())).
count
();
if
(
CollectionUtils
.
isNotEmpty
(
tourTagBannerDTOS
)){
tourTagBannerDTOS
.
stream
().
filter
(
tourTagBannerDTO
->
Objects
.
isNull
(
tourTagBannerDTO
.
getTagId
())).
peek
(
tourTagBannerDTO
->
tourTagBannerDTO
.
setTagId
(
tourTagDTO
.
getId
())).
count
();
}
tourTagBannerBiz
.
updateTourBannerByBatch
(
tourTagBannerDTOS
,
userDTO
);
return
effrows
;
}
...
...
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