|
|
@@ -30,12 +30,13 @@
|
|
|
<result column="plan" jdbcType="VARCHAR" property="plan" />
|
|
|
<result column="expected_effect" jdbcType="VARCHAR" property="expectedEffect" />
|
|
|
<result column="next_plan" jdbcType="VARCHAR" property="nextPlan" />
|
|
|
+ <result column="type" jdbcType="INTEGER" property="type" />
|
|
|
</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
|
|
|
+ `plan`, expected_effect, next_plan, `type`
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
select
|
|
|
@@ -56,8 +57,8 @@
|
|
|
pname, ufid, duration,
|
|
|
valid_date, new_user, sign_sum,
|
|
|
main_status, supplement, audit_info,
|
|
|
- `plan`, expected_effect, next_plan
|
|
|
- )
|
|
|
+ `plan`, expected_effect, next_plan,
|
|
|
+ `type`)
|
|
|
values (#{uid,jdbcType=VARCHAR}, #{aid,jdbcType=VARCHAR}, #{releaseStart,jdbcType=TIMESTAMP},
|
|
|
#{releaseEnd,jdbcType=TIMESTAMP}, #{remarks,jdbcType=VARCHAR}, #{annexUrl,jdbcType=VARCHAR},
|
|
|
#{userName,jdbcType=VARCHAR}, #{longitude,jdbcType=VARCHAR}, #{latitude,jdbcType=VARCHAR},
|
|
|
@@ -66,8 +67,8 @@
|
|
|
#{pname,jdbcType=VARCHAR}, #{ufid,jdbcType=VARCHAR}, #{duration,jdbcType=DOUBLE},
|
|
|
#{validDate,jdbcType=VARCHAR}, #{newUser,jdbcType=INTEGER}, #{signSum,jdbcType=INTEGER},
|
|
|
#{mainStatus,jdbcType=INTEGER}, #{supplement,jdbcType=VARCHAR}, #{auditInfo,jdbcType=VARCHAR},
|
|
|
- #{plan,jdbcType=VARCHAR}, #{expectedEffect,jdbcType=VARCHAR}, #{nextPlan,jdbcType=VARCHAR}
|
|
|
- )
|
|
|
+ #{plan,jdbcType=VARCHAR}, #{expectedEffect,jdbcType=VARCHAR}, #{nextPlan,jdbcType=VARCHAR},
|
|
|
+ #{type,jdbcType=INTEGER})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.PublicRelease" useGeneratedKeys="true">
|
|
|
insert into public_release
|
|
|
@@ -153,6 +154,9 @@
|
|
|
<if test="nextPlan != null">
|
|
|
next_plan,
|
|
|
</if>
|
|
|
+ <if test="type != null">
|
|
|
+ `type`,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="uid != null">
|
|
|
@@ -236,6 +240,9 @@
|
|
|
<if test="nextPlan != null">
|
|
|
#{nextPlan,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="type != null">
|
|
|
+ #{type,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.PublicRelease">
|
|
|
@@ -322,6 +329,9 @@
|
|
|
<if test="nextPlan != null">
|
|
|
next_plan = #{nextPlan,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="type != null">
|
|
|
+ `type` = #{type,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
@@ -353,7 +363,8 @@
|
|
|
audit_info = #{auditInfo,jdbcType=VARCHAR},
|
|
|
`plan` = #{plan,jdbcType=VARCHAR},
|
|
|
expected_effect = #{expectedEffect,jdbcType=VARCHAR},
|
|
|
- next_plan = #{nextPlan,jdbcType=VARCHAR}
|
|
|
+ next_plan = #{nextPlan,jdbcType=VARCHAR},
|
|
|
+ `type` = #{type,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
|