|
@@ -33,12 +33,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="waterArea" column="water_area" />
|
|
|
<result property="forestArea" column="forest_area" />
|
|
|
<result property="remark" column="remark" />
|
|
|
+ <result property="dicallyLand" column="dically_land" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectCenterdataTFarmCollectiveFarmlandVo">
|
|
|
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.name,
|
|
|
a.type, a.collective_farmland, a.home_contracting, a.other_collective_farmland, a.maneuverable_land,a.contracted_land,a.extinction_land,a.only_child_land,a.returnable_land,
|
|
|
- a.reclaim_lang,a.four_wastelands_land,a.school_land,a.village_school_land,a.water_area,a.forest_area,a.remark from centerdata_t_farm_collective_farmland a
|
|
|
+ a.reclaim_lang,a.four_wastelands_land,a.school_land,a.village_school_land,a.water_area,a.forest_area,a.remark, a.dically_land from centerdata_t_farm_collective_farmland a
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectCenterdataTFarmCollectiveFarmlandList" parameterType="CenterdataTFarmCollectiveFarmland" resultMap="CenterdataTFarmCollectiveFarmlandResult">
|
|
@@ -95,6 +96,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="waterArea != null">water_area,</if>
|
|
|
<if test="forestArea != null">forest_area,</if>
|
|
|
<if test="remark != null">remark,</if>
|
|
|
+ <if test="dicallyLand != null">dically_land,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
@@ -125,6 +127,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="waterArea != null">#{waterArea},</if>
|
|
|
<if test="forestArea != null">#{forestArea},</if>
|
|
|
<if test="remark != null">#{remark},</if>
|
|
|
+ <if test="dicallyLand != null">#{dicallyLand},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -158,6 +161,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="waterArea != null">water_area = #{waterArea},</if>
|
|
|
<if test="forestArea != null">forest_area = #{forestArea},</if>
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
+ <if test="dicallyLand != null">dically_land = #{dicallyLand},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|