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

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

import java.util.List;

/**
 * @author wmj
 * @version 创建时间:2017/11/24
 * @description 河道政策接口
 */
@Repository
public interface RiverPolicyDao {

    int addRiverPolicy(@Param("policyContent") String policyContent,
                       @Param("riverNo") String riverNo,
                       @Param("createUserNo") String createUserNo,
                       @Param("policyNo") String policyNo,
                       @Param("fileNo") String fileNo,
                       @Param("officalFileNo") String officalFileNo);

    int updateRiverPolicy(@Param("policyContent") String policyContent,
                          @Param("policyNo") String policyNo,
                          @Param("fileNo") String fileNo,
                          @Param("officalFileNo") String officalFileNo);

    int deleteRiverPolicy(@Param("policyNo") List<String> policyNo);

    List<RiverPolicy> selectRiverPolicyList(@Param("pageNo") Integer pageNo,
                                            @Param("pageSize") Integer pageSize,
                                            @Param("policyNo") String policyNo,
                                            @Param("riverNo") String riverNo);

    int countRiverPolicyList(@Param("policyNo") String policyNo,
                             @Param("riverNo") String riverNo);
    //业务管理--河道信息--我的河道策略
    List<RiverPolicy> selectRiverPolicyNos(@Param("chiefUserNo") String chiefUserNo);
    //业务管理--河道信息--我的河道策略
    List<RiverPolicy> selectRiverPolicyNoByPolicyNos(@Param("pageNo") Integer pageNo,
                                                     @Param("pageSize") Integer pageSize,
                                                     @Param("list") List<String> list,
                                                     @Param("chiefUserNo") String chiefUserNo);

    List<RiverPolicy> selectPolicyByRiverNo(@Param("riverNo") String riverNo);
}