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
44a61bea
Commit
44a61bea
authored
Oct 17, 2019
by
libin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
官网旅游*会员等级*分公司排序
parent
537f1c2d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
3 deletions
+40
-3
GwTourController.java
...in/java/com/xxfc/platform/uccn/rest/GwTourController.java
+8
-2
MemberLevelController.java
...va/com/xxfc/platform/uccn/rest/MemberLevelController.java
+31
-0
BranchCompanyMapper.xml
...-server/src/main/resources/mapper/BranchCompanyMapper.xml
+1
-1
No files found.
xx-uccn/xx-uccn-server/src/main/java/com/xxfc/platform/uccn/rest/GwTourController.java
View file @
44a61bea
...
@@ -4,12 +4,17 @@ import com.github.wxiaoqi.security.auth.client.annotation.IgnoreClientToken;
...
@@ -4,12 +4,17 @@ import com.github.wxiaoqi.security.auth.client.annotation.IgnoreClientToken;
import
com.github.wxiaoqi.security.auth.client.annotation.IgnoreUserToken
;
import
com.github.wxiaoqi.security.auth.client.annotation.IgnoreUserToken
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.rest.CommonBaseController
;
import
com.github.wxiaoqi.security.common.rest.CommonBaseController
;
import
com.xxfc.platform.tour.entity.TourTag
;
import
com.xxfc.platform.tour.feign.TourFeign
;
import
com.xxfc.platform.tour.feign.TourFeign
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.Comparator
;
import
java.util.List
;
import
java.util.stream.Collectors
;
@RestController
@RestController
@RequestMapping
(
"app/unauth/tour"
)
@RequestMapping
(
"app/unauth/tour"
)
@Slf4j
@Slf4j
...
@@ -47,8 +52,9 @@ public class GwTourController extends CommonBaseController {
...
@@ -47,8 +52,9 @@ public class GwTourController extends CommonBaseController {
@GetMapping
(
"/tagList"
)
@GetMapping
(
"/tagList"
)
@IgnoreUserToken
@IgnoreUserToken
public
ObjectRestResponse
getTagList
(
@RequestParam
(
value
=
"isHot"
,
defaultValue
=
"0"
)
Integer
isHot
)
{
public
ObjectRestResponse
getTagList
(
@RequestParam
(
value
=
"isHot"
,
defaultValue
=
"0"
)
Integer
isHot
)
{
List
<
TourTag
>
tourTags
=
tourFeign
.
tagList
(
isHot
);
return
ObjectRestResponse
.
succ
(
tourFeign
.
tagList
(
isHot
));
tourTags
=
tourTags
.
stream
().
filter
(
x
->
!
x
.
getName
().
contains
(
"全部"
)).
sorted
(
Comparator
.
comparing
(
TourTag:
:
getRank
)).
collect
(
Collectors
.
toList
());
return
ObjectRestResponse
.
succ
(
tourTags
);
}
}
}
}
xx-uccn/xx-uccn-server/src/main/java/com/xxfc/platform/uccn/rest/MemberLevelController.java
0 → 100644
View file @
44a61bea
package
com
.
xxfc
.
platform
.
uccn
.
rest
;
import
com.github.wxiaoqi.security.admin.entity.BaseUserMemberLevel
;
import
com.github.wxiaoqi.security.admin.feign.UserFeign
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
/**
* @author libin
* @version 1.0
* @description
* @data 2019/10/17 9:37
*/
@RestController
@RequiredArgsConstructor
(
onConstructor
=
@__
(
@Autowired
))
@RequestMapping
(
"/member_level"
)
public
class
MemberLevelController
{
private
final
UserFeign
userFeign
;
@GetMapping
(
"/list"
)
public
ObjectRestResponse
<
BaseUserMemberLevel
>
listMemberLevels
(){
List
<
BaseUserMemberLevel
>
levels
=
userFeign
.
levels
();
return
ObjectRestResponse
.
succ
(
levels
);
}
}
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/BranchCompanyMapper.xml
View file @
44a61bea
...
@@ -91,6 +91,6 @@
...
@@ -91,6 +91,6 @@
<if
test=
"cityCode != null"
>
<if
test=
"cityCode != null"
>
AND `addr_city`=#{cityCode}
AND `addr_city`=#{cityCode}
</if>
</if>
) AS `cb` ON cb.id = bc.company_base_id
) AS `cb` ON cb.id = bc.company_base_id
ORDER BY `id`
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
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