<?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.panzhihua.service_community.dao.ComActSocialProjectMemberDao">
|
|
<resultMap type="com.panzhihua.service_community.entity.ComActSocialProjectMember"
|
id="ComActSocialProjectMemberBaseResultMap">
|
<result property="id" column="id"/>
|
<result property="name" column="name"/>
|
<result property="age" column="age"/>
|
<result property="image" column="image"/>
|
<result property="phone" column="phone"/>
|
<result property="type" column="type"/>
|
<result property="createTime" column="create_time"/>
|
<result property="projectId" column="project_id"/>
|
<result property="communityId" column="community_id"/>
|
</resultMap>
|
|
<select id="pageList" resultType="com.panzhihua.common.model.vos.community.social.ComActSocialProjectMemberVO">
|
select t.*,t1.name as communityName from com_act_social_project_member t left join com_act t1 on t.community_id = t1.community_id where t.project_id = #{commonPage.paramId}
|
<if test="commonPage.type !=null">
|
and t.type=#{commonPage.type}
|
</if>
|
order by t.create_time desc
|
</select>
|
|
</mapper>
|