Commit 5dc42ec5 authored by libin's avatar libin

banner

parent 2758e544
...@@ -16,7 +16,7 @@ import org.springframework.scheduling.annotation.EnableScheduling; ...@@ -16,7 +16,7 @@ import org.springframework.scheduling.annotation.EnableScheduling;
@EnableDiscoveryClient @EnableDiscoveryClient
@EnableScheduling @EnableScheduling
@EnableAceAuthClient @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 @EnableAceCache
@tk.mybatis.spring.annotation.MapperScan(basePackages = "com.xxfc.platform.app.mapper") @tk.mybatis.spring.annotation.MapperScan(basePackages = "com.xxfc.platform.app.mapper")
public class AppApplication { public class AppApplication {
......
...@@ -34,7 +34,8 @@ public class BannerBiz extends BaseBiz<BannerMapper,Banner> { ...@@ -34,7 +34,8 @@ public class BannerBiz extends BaseBiz<BannerMapper,Banner> {
Banner banner = new Banner(); Banner banner = new Banner();
banner.setIsDel(0); banner.setIsDel(0);
banner.setType(type); banner.setType(type);
return mapper.selectByExample(banner); //mapper.findByType(type);
return mapper.findBannerListByType(type);
} }
/* /*
......
...@@ -21,4 +21,7 @@ public interface BannerMapper extends Mapper<Banner> { ...@@ -21,4 +21,7 @@ public interface BannerMapper extends Mapper<Banner> {
@Select("select * from `banner` where is_del=#{isDel} order by rank ASC") @Select("select * from `banner` where is_del=#{isDel} order by rank ASC")
List<Banner> findBannerListByisDelOrderByRank(Banner banner); 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);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment