package com.ydtech.modules.admin.dao; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.ydtech.modules.admin.model.dto.SysUserLinkPtlAgreementDto; import com.ydtech.modules.admin.model.dto.SysUserLinkPtlAgreementQueryDto; import com.ydtech.modules.admin.model.po.SysUserLinkPtlAgreement; import com.ydtech.modules.admin.model.vo.SysUserLinkPtlAgreementVo; import com.ydtech.modules.esm.model.EsmInsCompany; import com.ydtech.modules.protocol.entity.po.PtlAgreement; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.List; /** * @version * @author: hxl * @Date: 2024/4/15 14:47 * @Description: 用户关联协议表Dao */ @Mapper public interface SysUserLinkPtlAgreementMapper extends BaseMapper { /** * @version * @author: hxl * @Date: 2024/4/15 15:32 * @Description: 分页 */ Page queryPage(@Param("page") Page page, @Param("vo") SysUserLinkPtlAgreementVo sysUserLinkPtlAgreementVo, @Param("ids") List ids); /** * @version * @author: hxl * @Date: 2024/4/15 17:08 * @Description: 通过用户id删除旧数据 */ void deleteByUserId(@Param("userId") String userId); /** * @version * @author: hxl * @Date: 2024/4/16 9:32 * @Description: 通过后线人员id查询关联的协议列表 */ List findPtlAgreementListByUserId(@Param("userId") String userId); /** * @version * @author: hxl * @Date: 2024/4/19 9:56 * @Description:创建后线人员绑定的协议回显 */ List findAllPtlAgreementListByUserId(@Param("userId") String userId); /** * @version * @author: hxl * @Date: 2024/7/2 14:53 * @Description: 查询后现人员绑定的协议 */ Page findPtlAgreementListByUserIdPage(@Param("page") Page page, @Param("vo") SysUserLinkPtlAgreementQueryDto sysUserLinkPtlAgreementQueryDto); /** * @version * @author: hxl * @Date: 2024/8/14 11:55 * @Description: 通过用户id查询关联的协议 */ List findAgreeIdsByUserId(@Param("userId") String userId); /** * @version * @author: hxl * @Date: 2025/1/7 11:32 * @Description: 通过用户查询关联的保险公司id */ Page findCompanyPageListByUserId(@Param("page") Page page, @Param("vo") SysUserLinkPtlAgreementQueryDto sysUserLinkPtlAgreementQueryDto); }