<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.artfess.bpm.persistence.dao.BpmCptoReceiverDao">
	<resultMap id="BpmCptoReceiver" type="com.artfess.bpm.persistence.model.BpmCptoReceiver">
		<id property="id" column="id_" jdbcType="VARCHAR"/>
		<result property="cptoId" column="cpto_id_" jdbcType="VARCHAR"/>
		<result property="receiverId" column="receiver_id_" jdbcType="VARCHAR"/>
		<result property="receiver" column="receiver_" jdbcType="VARCHAR"/>
		<result property="isRead" column="is_read_" jdbcType="NUMERIC"/>
		<result property="readTime" column="read_time_" jdbcType="TIMESTAMP"/>
		<result property="createTime" column="create_time_" jdbcType="TIMESTAMP"/>
	</resultMap>
	
	<select id="getByCopyToId"   parameterType="java.util.Map" resultMap="BpmCptoReceiver">
		SELECT * FROM bpm_cpto_receiver 
		WHERE
		cpto_id_='${copToId}' and receiver_id_='${receiverId}'
	</select>
</mapper>