|
@@ -20,11 +20,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="plantNumber" column="plant_number" />
|
|
|
<result property="plantType" column="plant_type" />
|
|
|
<result property="remarks" column="remarks" />
|
|
|
+ <result property="attachId" column="attach_id" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectCenterdataTForestPlantVo">
|
|
|
select a.id, a.dept_id, a.dept_name, a.create_by, a.create_name, a.create_time, a.update_by, a.update_name, a.update_time, a.longitude,
|
|
|
- a.latitude, a.plant_name, a.plant_number, a.plant_type, a.remarks from centerdata_t_forest_plant a
|
|
|
+ a.latitude, a.plant_name, a.plant_number, a.plant_type, a.remarks, a.attach_id from centerdata_t_forest_plant a
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectCenterdataTForestPlantList" parameterType="CenterdataTForestPlant" resultMap="CenterdataTForestPlantResult">
|
|
@@ -77,6 +78,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="plantNumber != null">plant_number,</if>
|
|
|
<if test="plantType != null">plant_type,</if>
|
|
|
<if test="remarks != null">remarks,</if>
|
|
|
+ <if test="attachId != null">attach_id,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
@@ -94,6 +96,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="plantNumber != null">#{plantNumber},</if>
|
|
|
<if test="plantType != null">#{plantType},</if>
|
|
|
<if test="remarks != null">#{remarks},</if>
|
|
|
+ <if test="attachId != null">#{attachId},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -114,6 +117,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="plantNumber != null">plant_number = #{plantNumber},</if>
|
|
|
<if test="plantType != null">plant_type = #{plantType},</if>
|
|
|
<if test="remarks != null">remarks = #{remarks},</if>
|
|
|
+ <if test="attachId != null">attach_id = #{attachId},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|