Commit 8e1a787a authored by 周健威's avatar 周健威

修改banner

parent c7898c8b
......@@ -19,10 +19,10 @@ import java.util.List;
@Repository
public interface BannerMapper extends Mapper<Banner> {
@Select("select * from `banner` where is_del=#{isDel} and `platform`=#{platform} " +
@Select("<script> select * from `banner` where is_del=#{isDel} and `platform`=#{platform} " +
" <when test='status != null'> and `status`=#{status} </when > " +
" <when test='location != null'> and `location`=#{location} </when > " +
"order by rank ASC")
"order by rank ASC </script>")
List<Banner> findBannerListByisDelOrderByRank(Banner banner);
......
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