<?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.ComActColumnDao">
|
|
<resultMap type="com.panzhihua.service_community.entity.ComActColumn" id="ComActColumnBaseResultMap">
|
<result property="id" column="id"/>
|
<result property="name" column="name"/>
|
<result property="createBy" column="create_by"/>
|
<result property="createTime" column="create_time"/>
|
<result property="updateBy" column="update_by"/>
|
<result property="updateTime" column="update_time"/>
|
<result property="status" column="status"/>
|
<result property="type" column="type"/>
|
<result property="description" column="description"/>
|
</resultMap>
|
<select id="pageList" resultMap="ComActColumnBaseResultMap">
|
select * from com_act_column
|
<where>
|
1=1
|
<if test="commonPage.type!=null">
|
and type = #{commonPage.type}
|
</if>
|
<if test="commonPage.communityId!=null">
|
and community_id = #{commonPage.communityId}
|
</if>
|
<if test="commonPage.status!=null">
|
and status =#{commonPage.status}
|
</if>
|
<if test="commonPage.keyword!=null and commonPage.keyword!=''">
|
and name like concat('%',#{commonPage.keyword},'%')
|
</if>
|
</where>
|
order by create_time desc
|
</select>
|
|
</mapper>
|