<?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.ComPropertyEquipmentDao">
|
|
<resultMap type="com.panzhihua.service_property.entity.ComPropertyEquipment" id="ComPropertyEquipmentBaseResultMap">
|
<result property="id" column="id"/>
|
<result property="serialNo" column="serial_no"/>
|
<result property="position" column="position"/>
|
<result property="communityId" column="community_id"/>
|
<result property="longitude" column="longitude"/>
|
<result property="latitude" column="latitude"/>
|
<result property="name" column="name"/>
|
<result property="createTime" column="create_time"/>
|
<result property="type" column="type"/>
|
<result property="username" column="username"/>
|
<result property="villageId" column="villageId"/>
|
<result property="path" column="path"/>
|
</resultMap>
|
|
<select id="pageList" resultMap="ComPropertyEquipmentBaseResultMap">
|
select * from com_property_equipment
|
<where>
|
1=1
|
<if test="commonPage.type!=null">
|
and type =#{commonPage.type}
|
</if>
|
<if test="commonPage.paramId !=null">
|
and community_id = ${commonPage.paramId}
|
</if>
|
<if test="commonPage.name!=null and commonPage.name!=''">
|
and name like concat(#{commonPage.name},'%')
|
</if>
|
<if test="commonPage.serialNo!=null and commonPage.serialNo!=''">
|
and serial_no like concat(#{commonPage.serialNo},'%')
|
</if>
|
<if test="commonPage.address!=null and commonPage.address!=''">
|
and position like concat(#{commonPage.address},'%')
|
</if>
|
</where>
|
</select>
|
</mapper>
|