|
|
@@ -46,6 +46,7 @@
|
|
|
<result column="new_user" jdbcType="VARCHAR" property="newUser" />
|
|
|
<result column="sign_sum" jdbcType="VARCHAR" property="signSum" />
|
|
|
<result column="user_names" jdbcType="VARCHAR" property="userNames" />
|
|
|
+ <result column="object_type" jdbcType="INTEGER" property="objectType" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
id, aid, release_start, release_end, remarks, annex_url, user_name, longitude, latitude,
|
|
|
@@ -53,7 +54,7 @@
|
|
|
valid_date, 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, main_name, clock_in_remarks, reject_name, assistant_aid, assistant_name,
|
|
|
- public_again, audit_time, `uid`, ufid, new_user, sign_sum, user_names
|
|
|
+ public_again, audit_time, `uid`, ufid, new_user, sign_sum, user_names, object_type
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
select
|
|
|
@@ -80,7 +81,7 @@
|
|
|
reject_name, assistant_aid, assistant_name,
|
|
|
public_again, audit_time, `uid`,
|
|
|
ufid, new_user, sign_sum,
|
|
|
- user_names)
|
|
|
+ user_names, object_type)
|
|
|
values (#{aid,jdbcType=VARCHAR}, #{releaseStart,jdbcType=TIMESTAMP}, #{releaseEnd,jdbcType=TIMESTAMP},
|
|
|
#{remarks,jdbcType=VARCHAR}, #{annexUrl,jdbcType=VARCHAR}, #{userName,jdbcType=VARCHAR},
|
|
|
#{longitude,jdbcType=VARCHAR}, #{latitude,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
|
|
|
@@ -95,7 +96,7 @@
|
|
|
#{rejectName,jdbcType=VARCHAR}, #{assistantAid,jdbcType=VARCHAR}, #{assistantName,jdbcType=VARCHAR},
|
|
|
#{publicAgain,jdbcType=INTEGER}, #{auditTime,jdbcType=TIMESTAMP}, #{uid,jdbcType=INTEGER},
|
|
|
#{ufid,jdbcType=VARCHAR}, #{newUser,jdbcType=VARCHAR}, #{signSum,jdbcType=VARCHAR},
|
|
|
- #{userNames,jdbcType=VARCHAR})
|
|
|
+ #{userNames,jdbcType=VARCHAR}, #{objectType,jdbcType=INTEGER})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.PublicRelease" useGeneratedKeys="true">
|
|
|
insert into public_release
|
|
|
@@ -229,6 +230,9 @@
|
|
|
<if test="userNames != null">
|
|
|
user_names,
|
|
|
</if>
|
|
|
+ <if test="objectType != null">
|
|
|
+ object_type,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="aid != null">
|
|
|
@@ -360,6 +364,9 @@
|
|
|
<if test="userNames != null">
|
|
|
#{userNames,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="objectType != null">
|
|
|
+ #{objectType,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.PublicRelease">
|
|
|
@@ -494,6 +501,9 @@
|
|
|
<if test="userNames != null">
|
|
|
user_names = #{userNames,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="objectType != null">
|
|
|
+ object_type = #{objectType,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
@@ -541,7 +551,8 @@
|
|
|
ufid = #{ufid,jdbcType=VARCHAR},
|
|
|
new_user = #{newUser,jdbcType=VARCHAR},
|
|
|
sign_sum = #{signSum,jdbcType=VARCHAR},
|
|
|
- user_names = #{userNames,jdbcType=VARCHAR}
|
|
|
+ user_names = #{userNames,jdbcType=VARCHAR},
|
|
|
+ object_type = #{objectType,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
|