|
@@ -21,10 +21,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="contactPhone" column="contact_phone" />
|
|
|
<result property="deptId" column="dept_id" />
|
|
|
<result property="createUserId" column="create_user_id" />
|
|
|
+ <result property="forestType" column="forest_type" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTResStationforestVo">
|
|
|
- select id, status, remark, del_flag, create_by, create_time, update_by, update_time, name, longitude, latitude, address, contact_user, contact_phone, dept_id, create_user_id from t_res_stationforest
|
|
|
+ select forest_type, id, status, remark, del_flag, create_by, create_time, update_by, update_time, name, longitude, latitude, address, contact_user, contact_phone, dept_id, create_user_id from t_res_stationforest
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectTResStationforestList" parameterType="TResStationforest" resultMap="TResStationforestResult">
|
|
@@ -39,6 +40,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="contactPhone != null and contactPhone != ''"> and contact_phone = #{contactPhone}</if>
|
|
|
<if test="deptId != null "> and dept_id = #{deptId}</if>
|
|
|
<if test="createUserId != null "> and create_user_id = #{createUserId}</if>
|
|
|
+ <if test="forestType != null "> and forest_type = #{forestType}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
@@ -66,6 +68,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="contactPhone != null">contact_phone,</if>
|
|
|
<if test="deptId != null">dept_id,</if>
|
|
|
<if test="createUserId != null">create_user_id,</if>
|
|
|
+ <if test="forestType != null">forest_type,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null and id != ''">#{id},</if>
|
|
@@ -84,6 +87,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="contactPhone != null">#{contactPhone},</if>
|
|
|
<if test="deptId != null">#{deptId},</if>
|
|
|
<if test="createUserId != null">#{createUserId},</if>
|
|
|
+ <if test="forestType != null">#{forestType},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -105,6 +109,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="contactPhone != null">contact_phone = #{contactPhone},</if>
|
|
|
<if test="deptId != null">dept_id = #{deptId},</if>
|
|
|
<if test="createUserId != null">create_user_id = #{createUserId},</if>
|
|
|
+ <if test="forestType != null">forest_type = #{forestType},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|