CrmAccountSetMapper.xml
778 Bytes
<?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="cn.runsa.portal.base.dao.CrmAccountSetMapper" >
<resultMap id="BaseResultMap" type="cn.runsa.portal.base.entity.CrmAccountSet" >
<id column="ACT_ID" property="id" />
<result column="ACT_NAME" property="name"/>
<result column="PTF_ID" property="platId"/>
<result column="usId" property="userId"/>
</resultMap>
<select id="selectByUserId" resultMap="BaseResultMap">
select t1.*,t2.usId
from crm_account_set t1
inner join smUsers t2 on t1.PTF_ID=t2.plId and t2.usId in
<foreach collection="userIds" item="userId" open="(" close=")" separator=",">#{userId}</foreach>
</select>
</mapper>