You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<?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.air.housing.mapper.HousingEstatesMapper">
|
|
|
|
|
|
|
|
<select id="getHousingEstatesNamePage" resultType="com.air.housing.vo.HousingEstatesName">
|
|
|
|
select housing_estates_id, name
|
|
|
|
from housing_estates
|
|
|
|
where name like concat('%', #{name}, '%')
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<select id="selectIPage" resultType="com.air.housing.vo.HousingEstatesListVO">
|
|
|
|
select h.housing_estate_id,
|
|
|
|
h.anno_id,
|
|
|
|
h.other_anno_ids,
|
|
|
|
h.`name`,
|
|
|
|
h.status_cd,
|
|
|
|
h.status_date,
|
|
|
|
h.create_user_id,
|
|
|
|
h.create_date,
|
|
|
|
h.update_user_id,
|
|
|
|
h.update_date,
|
|
|
|
h.remark,
|
|
|
|
l.big_group,
|
|
|
|
l.small_group
|
|
|
|
from housing_estates h
|
|
|
|
join land_listed l on h.anno_id = l.anno_id
|
|
|
|
<where>
|
|
|
|
<if test="query.name != null and query.name != ''">
|
|
|
|
and h.name like concat('%', #{query.name}, '%')
|
|
|
|
</if>
|
|
|
|
<if test="query.annoId != null and query.annoId != ''">
|
|
|
|
and h.anno_id like concat('%', #{query.annoId}, '%')
|
|
|
|
</if>
|
|
|
|
<if test="query.bigGroup != null and query.bigGroup != ''">
|
|
|
|
and l.big_group = #{query.bigGroup}
|
|
|
|
</if>
|
|
|
|
<if test="query.smallGroup != null and query.smallGroup != ''">
|
|
|
|
and l.small_group = #{query.smallGroup}
|
|
|
|
</if>
|
|
|
|
<if test="query.createDate != null and query.createDate != ''">
|
|
|
|
and h.create_date like concat(#{query.createDate}, '%')
|
|
|
|
</if>
|
|
|
|
</where>
|
|
|
|
</select>
|
|
|
|
</mapper>
|