@@ -61,7 +61,7 @@ public class NewsController extends BaseController {
} else {
return failed("参数错误");
}
- return succeed(sysNewsInformationService.queryBySubType(subType));
+ return succeed(sysNewsInformationService.queryBottomInfo(subType));
@ApiOperation("资讯列表分页查询")
@@ -17,7 +17,7 @@ public interface SysNewsInformationDao extends BaseDAO<Long, SysNewsInformation>
*/
List<SysNewsInformation> queryByType(Integer type);
- List<SysNewsInformation> queryBySubType(@Param("subType") Integer subType);
+ List<SysNewsInformation> queryBottomInfo(@Param("subType") Integer subType);
/**
* 逻辑删除
@@ -19,7 +19,7 @@ public interface SysNewsInformationService extends BaseService<Long, SysNewsInfo
- List<SysNewsInformation> queryBySubType(Integer subType);
+ List<SysNewsInformation> queryBottomInfo(Integer subType);
@@ -54,8 +54,8 @@ public class SysNewsInformationServiceImpl extends BaseServiceImpl<Long, SysNews
@Override
- public List<SysNewsInformation> queryBySubType(Integer subType) {
- return sysNewsInformationDao.queryBySubType(subType);
+ public List<SysNewsInformation> queryBottomInfo(Integer subType) {
+ return sysNewsInformationDao.queryBottomInfo(subType);
@@ -195,9 +195,9 @@
</where>
</select>
- <select id="queryBySubType" resultMap="SysNewsInformation" parameterType="java.lang.Integer">
+ <select id="queryBottomInfo" resultMap="SysNewsInformation" parameterType="java.lang.Integer">
SELECT * FROM sys_news_information
- where del_flag_=0
+ where del_flag_=0 and status_ = 1
and sub_type_ = #{subType}