|
@@ -6,11 +6,13 @@ import java.util.Map;
|
|
import com.yonge.cooleshow.cms.dal.entity.SysNewsInformation;
|
|
import com.yonge.cooleshow.cms.dal.entity.SysNewsInformation;
|
|
import com.yonge.cooleshow.cms.dto.SysNewsInformationDto;
|
|
import com.yonge.cooleshow.cms.dto.SysNewsInformationDto;
|
|
import com.yonge.toolset.mybatis.dal.BaseDAO;
|
|
import com.yonge.toolset.mybatis.dal.BaseDAO;
|
|
|
|
+import org.apache.ibatis.annotations.Param;
|
|
|
|
|
|
public interface SysNewsInformationDao extends BaseDAO<Long, SysNewsInformation> {
|
|
public interface SysNewsInformationDao extends BaseDAO<Long, SysNewsInformation> {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 根据类型查询资讯列表
|
|
* 根据类型查询资讯列表
|
|
|
|
+ *
|
|
* @param type
|
|
* @param type
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@@ -18,21 +20,23 @@ public interface SysNewsInformationDao extends BaseDAO<Long, SysNewsInformation>
|
|
|
|
|
|
/**
|
|
/**
|
|
* 逻辑删除
|
|
* 逻辑删除
|
|
|
|
+ *
|
|
* @param id
|
|
* @param id
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
int deleteWithLogical(Long id);
|
|
int deleteWithLogical(Long id);
|
|
-
|
|
|
|
|
|
+
|
|
List<SysNewsInformation> queryHomePage(Map<String, Object> params);
|
|
List<SysNewsInformation> queryHomePage(Map<String, Object> params);
|
|
-
|
|
|
|
|
|
+
|
|
int queryHomeCount(Map<String, Object> params);
|
|
int queryHomeCount(Map<String, Object> params);
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 查询需要更新状态的对象集合
|
|
* 查询需要更新状态的对象集合
|
|
|
|
+ *
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
List<SysNewsInformation> queryNeedUpdateStatusList();
|
|
List<SysNewsInformation> queryNeedUpdateStatusList();
|
|
-
|
|
|
|
|
|
+
|
|
SysNewsInformationDto queryById(Long id);
|
|
SysNewsInformationDto queryById(Long id);
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -57,4 +61,13 @@ public interface SysNewsInformationDao extends BaseDAO<Long, SysNewsInformation>
|
|
* @param id
|
|
* @param id
|
|
*/
|
|
*/
|
|
void updateStatus(Long id);
|
|
void updateStatus(Long id);
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 查看广告版本
|
|
|
|
+ *
|
|
|
|
+ * @param version 版本
|
|
|
|
+ * @param status 状态
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ Integer selectByVersionAndStatus(@Param("version") String version, @Param("status") Integer status);
|
|
}
|
|
}
|