|
|
@@ -38,13 +38,14 @@
|
|
|
<result column="assist_aid" jdbcType="VARCHAR" property="assistAid" />
|
|
|
<result column="assist_aid_name" jdbcType="VARCHAR" property="assistAidName" />
|
|
|
<result column="main_id" jdbcType="INTEGER" property="mainId" />
|
|
|
+ <result column="main_name" jdbcType="VARCHAR" property="mainName" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
id, `uid`, aid, release_start, release_end, remarks, annex_url, user_name, longitude,
|
|
|
latitude, `status`, create_time, clock_in, clock_in_time, photo_url, pid, pname,
|
|
|
ufid, duration, valid_date, new_user, sign_sum, main_status, supplement, audit_info,
|
|
|
`plan`, expected_effect, next_plan, `type`, order_no, update_time, update_status,
|
|
|
- assist, assist_aid, assist_aid_name, main_id
|
|
|
+ assist, assist_aid, assist_aid_name, main_id, main_name
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
select
|
|
|
@@ -195,6 +196,9 @@
|
|
|
<if test="mainId != null">
|
|
|
main_id,
|
|
|
</if>
|
|
|
+ <if test="mainName != null">
|
|
|
+ main_name,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
@@ -305,6 +309,9 @@
|
|
|
<if test="mainId != null">
|
|
|
#{mainId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="mainName != null">
|
|
|
+ #{mainName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.PublicRelease">
|
|
|
@@ -415,6 +422,9 @@
|
|
|
<if test="mainId != null">
|
|
|
main_id = #{mainId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="mainName != null">
|
|
|
+ main_name = #{mainName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
@@ -454,7 +464,8 @@
|
|
|
assist = #{assist,jdbcType=INTEGER},
|
|
|
assist_aid = #{assistAid,jdbcType=VARCHAR},
|
|
|
assist_aid_name = #{assistAidName,jdbcType=VARCHAR},
|
|
|
- main_id = #{mainId,jdbcType=INTEGER}
|
|
|
+ main_id = #{mainId,jdbcType=INTEGER},
|
|
|
+ main_name = #{mainName,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
|