Newer
Older
huludao / src / main / java / com / newfiber / api / pc / dao / RiverManage / OfficialManageDao.java
package com.newfiber.api.pc.dao.RiverManage;

import com.newfiber.api.pc.model.River.OfficialManage;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * @author wmj
 * @Date: 2017/12/16 13:13
 * @description 业务管理--文案管理--我的文案接口
 */
@Repository
public interface OfficialManageDao {

    int addOfficialManage(@Param("officialName") String officialName,
                          @Param("riverNo") String riverNo,
                          @Param("officialType") Integer officialType,
                          @Param("officialContent") String officialContent,
                          @Param("officialFileNo") String officialFileNo,
                          @Param("officialSecrecy") Integer officialSecrecy,
                          @Param("createUserNo") String createUserNo,
                          @Param("browseNumber") Integer browseNumber);

    int updateOfficialManage(@Param("officialName") String officialName,
                             @Param("officialType") Integer officialType,
                             @Param("officialContent") String officialContent,
                             @Param("officialFileNo") String officialFileNo,
                             @Param("officialSecrecy") Integer officialSecrecy,
                             @Param("updateUserNo") String updateUserNo,
                             @Param("updateTime") Date updateTime,
                             @Param("serial") Integer serial);

    int deleteOfficialManage(@Param("serial") Integer serial);

    List<OfficialManage> selectOfficialManageList(@Param("officialName") String officialName,
                                                  @Param("officialType") Integer officialType,
                                                  @Param("createUserNo") String createUserNo,
                                                  @Param("startTime") Date startTime,
                                                  @Param("endTime") Date endTime,
                                                  @Param("pageNo") Integer pageNo,
                                                  @Param("pageSize") Integer pageSize,
                                                  @Param("serial") Integer serial,
                                                  @Param("order") String order,
                                                  @Param("sort") String sort);

    int countOfficialManage(@Param("officialName") String officialName,
                            @Param("officialType") Integer officialType,
                            @Param("createUserNo") String createUserNo,
                            @Param("startTime") Date startTime,
                            @Param("endTime") Date endTime,
                            @Param("serial") Integer serial);
    //修改浏览数量记录数
    int updateOfficialManageByNumber(@Param("browseNumber") Integer browseNumber,
                                     @Param("serial") Integer serial);

    OfficialManage selectOfficialManageByNumber(@Param("serial") Integer serial);

    List<OfficialManage> selectNextOfficialManage(@Param("listString") List<String> listString,
                                                  @Param("startTime") Date startTime,
                                                  @Param("endTime") Date endTime,
                                                  @Param("riverGrade") Integer riverGrade,
                                                  @Param("pageNo") Integer pageNo,
                                                  @Param("pageSize") Integer pageSize);

    int selectNextOfficialManageCount(@Param("listString") List<String> listString,
                                      @Param("startTime") Date startTime,
                                      @Param("endTime") Date endTime,
                                      @Param("riverGrade") Integer riverGrade);
}