|
|
@@ -36,13 +36,14 @@
|
|
|
<result column="update_status" jdbcType="INTEGER" property="updateStatus" />
|
|
|
<result column="assist" jdbcType="INTEGER" property="assist" />
|
|
|
<result column="assist_aid" jdbcType="VARCHAR" property="assistAid" />
|
|
|
+ <result column="assist_aid_name" jdbcType="VARCHAR" property="assistAidName" />
|
|
|
</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, assist_aid, assist_aid_name
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
select
|
|
|
@@ -65,8 +66,8 @@
|
|
|
main_status, supplement, audit_info,
|
|
|
`plan`, expected_effect, next_plan,
|
|
|
`type`, order_no, update_time,
|
|
|
- update_status, assist, assist_aid
|
|
|
- )
|
|
|
+ update_status, assist, assist_aid,
|
|
|
+ assist_aid_name)
|
|
|
values (#{id,jdbcType=INTEGER}, #{uid,jdbcType=VARCHAR}, #{aid,jdbcType=VARCHAR},
|
|
|
#{releaseStart,jdbcType=TIMESTAMP}, #{releaseEnd,jdbcType=TIMESTAMP}, #{remarks,jdbcType=VARCHAR},
|
|
|
#{annexUrl,jdbcType=VARCHAR}, #{userName,jdbcType=VARCHAR}, #{longitude,jdbcType=VARCHAR},
|
|
|
@@ -77,8 +78,8 @@
|
|
|
#{mainStatus,jdbcType=INTEGER}, #{supplement,jdbcType=VARCHAR}, #{auditInfo,jdbcType=VARCHAR},
|
|
|
#{plan,jdbcType=VARCHAR}, #{expectedEffect,jdbcType=VARCHAR}, #{nextPlan,jdbcType=VARCHAR},
|
|
|
#{type,jdbcType=INTEGER}, #{orderNo,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
|
|
- #{updateStatus,jdbcType=INTEGER}, #{assist,jdbcType=INTEGER}, #{assistAid,jdbcType=VARCHAR}
|
|
|
- )
|
|
|
+ #{updateStatus,jdbcType=INTEGER}, #{assist,jdbcType=INTEGER}, #{assistAid,jdbcType=VARCHAR},
|
|
|
+ #{assistAidName,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.PublicRelease" useGeneratedKeys="true">
|
|
|
@@ -186,6 +187,9 @@
|
|
|
<if test="assistAid != null">
|
|
|
assist_aid,
|
|
|
</if>
|
|
|
+ <if test="assistAidName != null">
|
|
|
+ assist_aid_name,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
@@ -290,6 +294,9 @@
|
|
|
<if test="assistAid != null">
|
|
|
#{assistAid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="assistAidName != null">
|
|
|
+ #{assistAidName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.PublicRelease">
|
|
|
@@ -394,6 +401,9 @@
|
|
|
<if test="assistAid != null">
|
|
|
assist_aid = #{assistAid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="assistAidName != null">
|
|
|
+ assist_aid_name = #{assistAidName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
@@ -431,7 +441,8 @@
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
update_status = #{updateStatus,jdbcType=INTEGER},
|
|
|
assist = #{assist,jdbcType=INTEGER},
|
|
|
- assist_aid = #{assistAid,jdbcType=VARCHAR}
|
|
|
+ assist_aid = #{assistAid,jdbcType=VARCHAR},
|
|
|
+ assist_aid_name = #{assistAidName,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
|