|
@@ -15,10 +15,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="addrFrom" column="addr_from" />
|
|
|
<result property="addrEnd" column="addr_end" />
|
|
|
<result property="exId1" column="ex_id_1" />
|
|
|
+
|
|
|
+ <result property="fLength" column="f_length" />
|
|
|
+ <result property="ext1" column="ext1" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTblFacilitiesVo">
|
|
|
- select id, area_des, area_ad_des, ex_id, name, road_name, nature, addr_from, addr_end, ex_id_1 from tbl_facilities
|
|
|
+ select id, area_des, area_ad_des, ex_id, name, road_name, nature, addr_from, addr_end, ex_id_1,ext1,f_length from tbl_facilities
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectTblFacilitiesList" parameterType="TblFacilities" resultMap="TblFacilitiesResult">
|
|
@@ -33,6 +36,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="addrFrom != null and addrFrom != ''"> and addr_from = #{addrFrom}</if>
|
|
|
<if test="addrEnd != null and addrEnd != ''"> and addr_end = #{addrEnd}</if>
|
|
|
<if test="exId1 != null and exId1 != ''"> and ex_id_1 = #{exId1}</if>
|
|
|
+ <if test="fLength != null and fLength != ''"> and fLength = #{f_length}</if>
|
|
|
+ <if test="ext1 != null and ext1 != ''"> and ext1 = #{ext1}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
@@ -53,6 +58,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="addrFrom != null">addr_from,</if>
|
|
|
<if test="addrEnd != null">addr_end,</if>
|
|
|
<if test="exId1 != null">ex_id_1,</if>
|
|
|
+ <if test="fLength != null">f_length,</if>
|
|
|
+ <if test="ext1 != null">ext1,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="areaDes != null">#{areaDes},</if>
|
|
@@ -64,6 +71,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="addrFrom != null">#{addrFrom},</if>
|
|
|
<if test="addrEnd != null">#{addrEnd},</if>
|
|
|
<if test="exId1 != null">#{exId1},</if>
|
|
|
+ <if test="fLength != null">#{fLength},</if>
|
|
|
+ <if test="ext1 != null">#{ext1},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -79,6 +88,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="addrFrom != null">addr_from = #{addrFrom},</if>
|
|
|
<if test="addrEnd != null">addr_end = #{addrEnd},</if>
|
|
|
<if test="exId1 != null">ex_id_1 = #{exId1},</if>
|
|
|
+ <if test="fLength != null">f_length = #{fLength},</if>
|
|
|
+ <if test="ext1 != null">ext1 = #{ext1},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|