|
@@ -22,6 +22,7 @@
|
|
<result property="businessIndustry" column="business_industry" jdbcType="VARCHAR"/>
|
|
<result property="businessIndustry" column="business_industry" jdbcType="VARCHAR"/>
|
|
<result property="landState" column="land_state" jdbcType="INTEGER"/>
|
|
<result property="landState" column="land_state" jdbcType="INTEGER"/>
|
|
<result property="point" column="point" jdbcType="VARCHAR"/>
|
|
<result property="point" column="point" jdbcType="VARCHAR"/>
|
|
|
|
+ <result property="belongPark" column="belong_park" jdbcType="INTEGER"/>
|
|
<result property="createTime" column="create_time" jdbcType="VARCHAR"/>
|
|
<result property="createTime" column="create_time" jdbcType="VARCHAR"/>
|
|
<association property="parkData" javaType="com.example.nngkxxdp.entity.ParkData">
|
|
<association property="parkData" javaType="com.example.nngkxxdp.entity.ParkData">
|
|
<result column="title" property="title"/>
|
|
<result column="title" property="title"/>
|
|
@@ -79,17 +80,20 @@
|
|
<select id="queryCount" resultType="java.lang.Integer">
|
|
<select id="queryCount" resultType="java.lang.Integer">
|
|
select count(*) from t_sell_land
|
|
select count(*) from t_sell_land
|
|
<if test="parkId != null">
|
|
<if test="parkId != null">
|
|
- where belong_park = #{parkId}
|
|
|
|
|
|
+ where belong_park = #{parkId} and land_name like concat('%', #{keyword}, '%')
|
|
</if>
|
|
</if>
|
|
</select>
|
|
</select>
|
|
- <select id="queryData" resultType="com.example.nngkxxdp.entity.SellLand" resultMap="BaseResultMap">
|
|
|
|
- select ts.*, ts.addr as landAddr,pd.title,pd.id,pd.addr as parkAddr
|
|
|
|
- from t_sell_land ts
|
|
|
|
- left join t_park_data pd on pd.id=ts.belong_park
|
|
|
|
- <if test="parkId != null">
|
|
|
|
- where belong_park = #{parkId}
|
|
|
|
- </if>
|
|
|
|
|
|
+ <select id="queryData" resultType="com.example.nngkxxdp.entity.SellLand" >
|
|
|
|
+ select * from t_sell_land
|
|
|
|
+ <where>
|
|
|
|
+ belong_park = #{parkId}
|
|
|
|
+ <if test="keyword != null and keyword != ''">
|
|
|
|
+ and land_name like CONCAT('%', #{keyword}, '%')
|
|
|
|
+ </if>
|
|
|
|
+ </where>
|
|
limit #{begin},#{pageSize}
|
|
limit #{begin},#{pageSize}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
</mapper>
|
|
</mapper>
|