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
08c2af74
Commit
08c2af74
authored
Jun 21, 2019
by
libin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
营地
parent
462f54e1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
CampsiteTagBiz.java
...n/java/com/xxfc/platform/campsite/biz/CampsiteTagBiz.java
+1
-0
CampsiteTagAdminController.java
...tform/campsite/rest/admin/CampsiteTagAdminController.java
+1
-1
CampsiteShopMapper.xml
...e-server/src/main/resources/mapper/CampsiteShopMapper.xml
+6
-7
No files found.
xx-campsite/xx-campsite-server/src/main/java/com/xxfc/platform/campsite/biz/CampsiteTagBiz.java
View file @
08c2af74
...
...
@@ -13,6 +13,7 @@ import com.xxfc.platform.campsite.entity.CampsiteTag;
import
com.xxfc.platform.campsite.mapper.CampsiteTagMapper
;
import
com.github.wxiaoqi.security.common.biz.BaseBiz
;
import
java.util.Comparator
;
import
java.util.List
;
/**
...
...
xx-campsite/xx-campsite-server/src/main/java/com/xxfc/platform/campsite/rest/admin/CampsiteTagAdminController.java
View file @
08c2af74
...
...
@@ -31,7 +31,7 @@ public class CampsiteTagAdminController extends BaseController<CampsiteTagBiz,Ca
public
ObjectRestResponse
<
CampsiteTag
>
remove
(
@PathVariable
(
"id"
)
int
id
)
{
int
effectRows
=
getBaseBiz
().
updateCampsiteTagStatus
(
id
);
if
(
effectRows
>
0
){
ObjectRestResponse
.
succ
();
return
ObjectRestResponse
.
succ
();
}
return
ObjectRestResponse
.
createDefaultFail
();
}
...
...
xx-campsite/xx-campsite-server/src/main/resources/mapper/CampsiteShopMapper.xml
View file @
08c2af74
...
...
@@ -40,8 +40,9 @@
FROM `campsite_shop_tag` cst
left JOIN `campsite_shop` cs on cst.shop_id=cs.id
left JOIN `campsite_tag` ct on cst.tag_id=ct.id
where cs.sale_state=1
<if
test=
"typeId!=null"
>
WHERE
cst.tag_id=#{typeId}
and
cst.tag_id=#{typeId}
</if>
</select>
...
...
@@ -53,18 +54,18 @@
<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
`saleState` FROM `campsite_shop`
<where>
where `is_del`=0
<if
test=
"startTime != null || endTime!=null"
>
<choose>
<when
test=
"startTime!=null and endTime!=null"
>
crt_time between #{startTime} and #{endTime}
and
crt_time between #{startTime} and #{endTime}
</when>
<otherwise>
<if
test=
"startTime!=null"
>
crt_time=#{startTime}
and
crt_time=#{startTime}
</if>
<if
test=
"endTime != null"
>
crt_time=#{endTime}
and
crt_time=#{endTime}
</if>
</otherwise>
</choose>
...
...
@@ -72,8 +73,6 @@
<if
test=
"name != null and name != ''"
>
and `name` like concat('%',#{name},'%')
</if>
</where>
</select>
<update
id=
"updateCampsiteStatus"
>
...
...
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