<?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.ComActEasyPhotoMemberDao">
|
|
<resultMap type="com.panzhihua.service_community.entity.ComActEasyPhotoMember"
|
id="ComActEasyPhotoMemberBaseResultMap">
|
<result property="id" column="id"/>
|
<result property="communityId" column="community_id"/>
|
<result property="name" column="name"/>
|
<result property="phone" column="phone"/>
|
<result property="createTime" column="create_time"/>
|
</resultMap>
|
|
<select id="pageList" resultType="com.panzhihua.common.model.vos.community.easyPhoto.ComActEasyPhotoMemberVO">
|
select * from com_act_easy_photo_member
|
<where>
|
1=1
|
<if test="commonPage.name !=null and commonPage.name !=''">
|
and name like concat('%',#{commonPage.name},'%')
|
</if>
|
<if test="commonPage.phone !=null and commonPage.phone !=''">
|
and phone like concat('%',#{commonPage.phone},'%')
|
</if>
|
<if test="commonPage.communityId !=null and commonPage.communityId !=0">
|
and community_id = #{commonPage.communityId}
|
</if>
|
</where>
|
order by create_time desc
|
</select>
|
</mapper>
|