<?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_property.dao.ComPropertyHelpDao">
|
|
<resultMap type="com.panzhihua.service_property.entity.ComPropertyHelp" id="ComPropertyHelpBaseResultMap">
|
<result property="id" column="id"/>
|
<result property="name" column="name"/>
|
<result property="imgUrl" column="img_url"/>
|
<result property="phone" column="phone"/>
|
<result property="status" column="status"/>
|
<result property="createTime" column="create_time"/>
|
<result property="communityId" column="community_id"/>
|
</resultMap>
|
|
|
<select id="pageList" resultMap="ComPropertyHelpBaseResultMap">
|
select * from com_property_help
|
<where>
|
1=1
|
<if test="commonPage.status !=null">
|
and status =#{commonPage.status}
|
</if>
|
<if test="commonPage.paramId !=null">
|
and community_id = ${commonPage.paramId}
|
</if>
|
</where>
|
order by create_time desc
|
</select>
|
|
</mapper>
|