|
@@ -9,7 +9,9 @@
|
|
<result property="projectId" column="project_id"/>
|
|
<result property="projectId" column="project_id"/>
|
|
<result property="tdyt" column="tdyt"/>
|
|
<result property="tdyt" column="tdyt"/>
|
|
<result property="ydArea" column="yd_area"/>
|
|
<result property="ydArea" column="yd_area"/>
|
|
|
|
+ <result property="ydUnit" column="yd_unit"/>
|
|
<result property="zsArea" column="zs_area"/>
|
|
<result property="zsArea" column="zs_area"/>
|
|
|
|
+ <result property="zsUnit" column="zs_unit"/>
|
|
<result property="hasZZ" column="has_zz"/>
|
|
<result property="hasZZ" column="has_zz"/>
|
|
<result property="bpDate" column="bp_date"/>
|
|
<result property="bpDate" column="bp_date"/>
|
|
<result property="pfwh" column="pfwh"/>
|
|
<result property="pfwh" column="pfwh"/>
|
|
@@ -27,9 +29,9 @@
|
|
</select>
|
|
</select>
|
|
<!-- 插入语句 -->
|
|
<!-- 插入语句 -->
|
|
<insert id="add" parameterType="com.siwei.apply.domain.Ydbp">
|
|
<insert id="add" parameterType="com.siwei.apply.domain.Ydbp">
|
|
- INSERT INTO t_ydbp (id, project_id, tdyt, yd_area, zs_area, has_zz,
|
|
|
|
|
|
+ INSERT INTO t_ydbp (id, project_id, tdyt, yd_area, yd_unit, zs_area, zs_unit, has_zz,
|
|
bp_date, pfwh, pf_date, has_onchain, creator_id, created_at, updated_at)
|
|
bp_date, pfwh, pf_date, has_onchain, creator_id, created_at, updated_at)
|
|
- VALUES (#{id}, #{projectId}, #{tdyt}, #{ydArea}, #{zsArea}, #{hasZZ},
|
|
|
|
|
|
+ VALUES (#{id}, #{projectId}, #{tdyt}, #{ydArea}, #{ydUnit}, #{zsArea}, #{zsUnit}, #{hasZZ},
|
|
#{bpDate}, #{pfwh}, #{pfDate}, false, #{creatorId}, now(), now())
|
|
#{bpDate}, #{pfwh}, #{pfDate}, false, #{creatorId}, now(), now())
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -48,7 +50,9 @@
|
|
<if test="projectId != null">project_id = #{projectId},</if>
|
|
<if test="projectId != null">project_id = #{projectId},</if>
|
|
<if test="tdyt != null">tdyt = #{tdyt},</if>
|
|
<if test="tdyt != null">tdyt = #{tdyt},</if>
|
|
<if test="ydArea != null">yd_area = #{ydArea},</if>
|
|
<if test="ydArea != null">yd_area = #{ydArea},</if>
|
|
|
|
+ <if test="ydUnit != null">yd_unit = #{ydUnit},</if>
|
|
<if test="zsArea != null">zs_area = #{zsArea},</if>
|
|
<if test="zsArea != null">zs_area = #{zsArea},</if>
|
|
|
|
+ <if test="zsUnit != null">zs_unit = #{zsUnit},</if>
|
|
<if test="hasZZ != null">has_zz = #{hasZZ},</if>
|
|
<if test="hasZZ != null">has_zz = #{hasZZ},</if>
|
|
<if test="bpDate != null">bp_date = #{bpDate},</if>
|
|
<if test="bpDate != null">bp_date = #{bpDate},</if>
|
|
<if test="pfwh != null">pfwh = #{pfwh},</if>
|
|
<if test="pfwh != null">pfwh = #{pfwh},</if>
|