类 CmsContentDao

java.lang.Object
com.publiccms.common.base.BaseDao<CmsContent>
com.publiccms.logic.dao.cms.CmsContentDao

@Repository public class CmsContentDao extends BaseDao<CmsContent>
CmsContentDao
  • 构造器详细资料

    • CmsContentDao

      public CmsContentDao()
  • 方法详细资料

    • deleteByCategoryIds

      public int deleteByCategoryIds(short siteId, Integer[] categoryIds)
      参数:
      siteId -
      categoryIds -
      返回:
      number of data deleted
    • moveByTopId

      public int moveByTopId(short siteId, Long topId, Integer categoryId)
      参数:
      siteId -
      topId -
      categoryId -
      返回:
      number of data updated
    • deleteByQuoteId

      public int deleteByQuoteId(short siteId, Long quoteId)
    • index

      public void index(short siteId, Serializable[] ids)
      参数:
      siteId -
      ids -
    • batchWorkContent

      public void batchWorkContent(short siteId, Integer categoryId, String modelId, ObjIntConsumer<List<CmsContent>> worker, int batchSize)
    • batchWorkId

      public void batchWorkId(short siteId, Integer categoryId, String modelId, ObjIntConsumer<List<Serializable>> worker, int batchSize)
    • getPage

      public PageHandler getPage(CmsContentQuery queryEntitry, String orderField, String orderType, Integer firstResult, Integer pageIndex, Integer pageSize, Integer maxResults)
      参数:
      queryEntitry -
      orderField -
      orderType -
      firstResult -
      pageIndex -
      pageSize -
      maxResults -
      返回:
      results page
    • getList

      public List<CmsContent> getList(CmsContentQuery queryEntitry, String orderField, String orderType)
      参数:
      queryEntitry -
      orderField -
      orderType -
      返回:
      results list
    • getQueryHandler

      private static QueryHandler getQueryHandler(CmsContentQuery queryEntitry, String orderField, String orderType)
    • getWorkLoadList

      public List<Workload> getWorkLoadList(short siteId, Integer[] status, Date startCreateDate, Date endCreateDate, String workloadType, String dateField)
      参数:
      siteId -
      status -
      startCreateDate -
      endCreateDate -
      workloadType -
      dateField -
      返回:
      result list
    • getListByQuoteId

      public List<CmsContent> getListByQuoteId(short siteId, long quoteId)
    • getListByTopId

      public List<CmsContent> getListByTopId(short siteId, long topId)
      参数:
      siteId -
      topId -
      返回:
      number of data deleted
    • init

      protected CmsContent init(CmsContent entity)
      指定者:
      init 在类中 BaseDao<CmsContent>