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
5dc42ec5
Commit
5dc42ec5
authored
Jun 26, 2019
by
libin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
banner
parent
2758e544
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
AppApplication.java
...r/src/main/java/com/xxfc/platform/app/AppApplication.java
+1
-1
BannerBiz.java
...er/src/main/java/com/xxfc/platform/app/biz/BannerBiz.java
+2
-1
BannerMapper.java
.../main/java/com/xxfc/platform/app/mapper/BannerMapper.java
+3
-0
No files found.
xx-app/xx-app-server/src/main/java/com/xxfc/platform/app/AppApplication.java
View file @
5dc42ec5
...
...
@@ -16,7 +16,7 @@ import org.springframework.scheduling.annotation.EnableScheduling;
@EnableDiscoveryClient
@EnableScheduling
@EnableAceAuthClient
@EnableFeignClients
(
value
=
{
"com.github.wxiaoqi.security"
,
"com.xxfc.platform
.app.feign
"
},
defaultConfiguration
=
HeaderConfig
.
class
)
@EnableFeignClients
(
value
=
{
"com.github.wxiaoqi.security"
,
"com.xxfc.platform"
},
defaultConfiguration
=
HeaderConfig
.
class
)
@EnableAceCache
@tk
.
mybatis
.
spring
.
annotation
.
MapperScan
(
basePackages
=
"com.xxfc.platform.app.mapper"
)
public
class
AppApplication
{
...
...
xx-app/xx-app-server/src/main/java/com/xxfc/platform/app/biz/BannerBiz.java
View file @
5dc42ec5
...
...
@@ -34,7 +34,8 @@ public class BannerBiz extends BaseBiz<BannerMapper,Banner> {
Banner
banner
=
new
Banner
();
banner
.
setIsDel
(
0
);
banner
.
setType
(
type
);
return
mapper
.
selectByExample
(
banner
);
//mapper.findByType(type);
return
mapper
.
findBannerListByType
(
type
);
}
/*
...
...
xx-app/xx-app-server/src/main/java/com/xxfc/platform/app/mapper/BannerMapper.java
View file @
5dc42ec5
...
...
@@ -21,4 +21,7 @@ public interface BannerMapper extends Mapper<Banner> {
@Select
(
"select * from `banner` where is_del=#{isDel} order by rank ASC"
)
List
<
Banner
>
findBannerListByisDelOrderByRank
(
Banner
banner
);
@Select
(
"select * from `banner` where `is_del`=0 and `type`=#{type} order by rank asc "
)
List
<
Banner
>
findBannerListByType
(
Integer
type
);
}
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