@@ -62,7 +62,7 @@ public class NewsController extends BaseController {
} else {
return failed("参数错误");
}
- return succeed(sysNewsInformationDao.queryBySubType(subType));
+ return succeed(sysNewsInformationService.queryBySubType(subType));
@ApiOperation("资讯列表分页查询")
@@ -17,7 +17,7 @@ public interface SysNewsInformationDao extends BaseDAO<Long, SysNewsInformation>
*/
List<SysNewsInformation> queryByType(@Param("type") Integer type,@Param("subType") Integer subType);
- List<SysNewsInformation> queryBySubType(Integer subType);
+ List<SysNewsInformation> queryBySubType(@Param("subType") Integer subType);
/**
* 逻辑删除