All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.mingsoft.cms.dao.IContentDao Maven / Gradle / Ivy

There is a newer version: 5.4.2
Show newest version
/**
 * The MIT License (MIT)
 * Copyright (c) 2020 铭软科技(mingsoft.net)
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 * this software and associated documentation files (the "Software"), to deal in
 * the Software without restriction, including without limitation the rights to
 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
 * the Software, and to permit persons to whom the Software is furnished to do so,
 * subject to the following conditions:

 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.

 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */

package net.mingsoft.cms.dao;

import net.mingsoft.base.dao.IBaseDao;
import net.mingsoft.cms.bean.CategoryBean;
import net.mingsoft.cms.bean.ContentBean;
import net.mingsoft.cms.entity.ContentEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 文章持久层
 * @author 铭飞开发团队
 * 创建日期:2019-11-28 15:12:32
* 历史修订:
*/ public interface IContentDao extends IBaseDao { /** * 查询文章编号集合 * @contentBean * @return */ public List queryIdsByCategoryIdForParser(ContentBean contentBean); /** * 根据查询文章实体总数 * * @param tableName * :自定义生成的表名 * @param map * key:字段名 value:List 字段的各种判断值 list[0]:是否为自定义字段 list[1]:是否为整形 * list[2]:是否是等值查询 list[3]:字段的值 * @return 文章实体总数 */ int getSearchCount(@Param("tableName") String tableName, @Param("diyList") List diyList, @Param("map") Map map, @Param("websiteId") int websiteId, @Param("ids") String ids); /** * 分类编号删除文章 * @param ids */ void deleteEntityByCategoryIds(@Param("ids") String[] ids); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy