|
@@ -14,10 +14,11 @@
|
|
|
<result column="clock_in_time" jdbcType="TIMESTAMP" property="clockInTime" />
|
|
<result column="clock_in_time" jdbcType="TIMESTAMP" property="clockInTime" />
|
|
|
<result column="photo_url" jdbcType="VARCHAR" property="photoUrl" />
|
|
<result column="photo_url" jdbcType="VARCHAR" property="photoUrl" />
|
|
|
<result column="district_name" jdbcType="VARCHAR" property="districtName" />
|
|
<result column="district_name" jdbcType="VARCHAR" property="districtName" />
|
|
|
|
|
+ <result column="clock_in_remarks" jdbcType="VARCHAR" property="clockInRemarks" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
|
id, prid, `uid`, ufid, new_user, sign_sum, longitude, latitude, clock_in, clock_in_time,
|
|
id, prid, `uid`, ufid, new_user, sign_sum, longitude, latitude, clock_in, clock_in_time,
|
|
|
- photo_url, district_name
|
|
|
|
|
|
|
+ photo_url, district_name, clock_in_remarks
|
|
|
</sql>
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
select
|
|
select
|
|
@@ -33,11 +34,13 @@
|
|
|
insert into public_release_details (prid, `uid`, ufid,
|
|
insert into public_release_details (prid, `uid`, ufid,
|
|
|
new_user, sign_sum, longitude,
|
|
new_user, sign_sum, longitude,
|
|
|
latitude, clock_in, clock_in_time,
|
|
latitude, clock_in, clock_in_time,
|
|
|
- photo_url, district_name)
|
|
|
|
|
|
|
+ photo_url, district_name, clock_in_remarks
|
|
|
|
|
+ )
|
|
|
values (#{prid,jdbcType=INTEGER}, #{uid,jdbcType=VARCHAR}, #{ufid,jdbcType=VARCHAR},
|
|
values (#{prid,jdbcType=INTEGER}, #{uid,jdbcType=VARCHAR}, #{ufid,jdbcType=VARCHAR},
|
|
|
#{newUser,jdbcType=INTEGER}, #{signSum,jdbcType=INTEGER}, #{longitude,jdbcType=VARCHAR},
|
|
#{newUser,jdbcType=INTEGER}, #{signSum,jdbcType=INTEGER}, #{longitude,jdbcType=VARCHAR},
|
|
|
#{latitude,jdbcType=VARCHAR}, #{clockIn,jdbcType=INTEGER}, #{clockInTime,jdbcType=TIMESTAMP},
|
|
#{latitude,jdbcType=VARCHAR}, #{clockIn,jdbcType=INTEGER}, #{clockInTime,jdbcType=TIMESTAMP},
|
|
|
- #{photoUrl,jdbcType=VARCHAR}, #{districtName,jdbcType=VARCHAR})
|
|
|
|
|
|
|
+ #{photoUrl,jdbcType=VARCHAR}, #{districtName,jdbcType=VARCHAR}, #{clockInRemarks,jdbcType=VARCHAR}
|
|
|
|
|
+ )
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.PublicReleaseDetails" useGeneratedKeys="true">
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.PublicReleaseDetails" useGeneratedKeys="true">
|
|
|
insert into public_release_details
|
|
insert into public_release_details
|
|
@@ -75,6 +78,9 @@
|
|
|
<if test="districtName != null">
|
|
<if test="districtName != null">
|
|
|
district_name,
|
|
district_name,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="clockInRemarks != null">
|
|
|
|
|
+ clock_in_remarks,
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="prid != null">
|
|
<if test="prid != null">
|
|
@@ -110,6 +116,9 @@
|
|
|
<if test="districtName != null">
|
|
<if test="districtName != null">
|
|
|
#{districtName,jdbcType=VARCHAR},
|
|
#{districtName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="clockInRemarks != null">
|
|
|
|
|
+ #{clockInRemarks,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.PublicReleaseDetails">
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.PublicReleaseDetails">
|
|
@@ -148,6 +157,9 @@
|
|
|
<if test="districtName != null">
|
|
<if test="districtName != null">
|
|
|
district_name = #{districtName,jdbcType=VARCHAR},
|
|
district_name = #{districtName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="clockInRemarks != null">
|
|
|
|
|
+ clock_in_remarks = #{clockInRemarks,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
</set>
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
</update>
|
|
@@ -163,7 +175,8 @@
|
|
|
clock_in = #{clockIn,jdbcType=INTEGER},
|
|
clock_in = #{clockIn,jdbcType=INTEGER},
|
|
|
clock_in_time = #{clockInTime,jdbcType=TIMESTAMP},
|
|
clock_in_time = #{clockInTime,jdbcType=TIMESTAMP},
|
|
|
photo_url = #{photoUrl,jdbcType=VARCHAR},
|
|
photo_url = #{photoUrl,jdbcType=VARCHAR},
|
|
|
- district_name = #{districtName,jdbcType=VARCHAR}
|
|
|
|
|
|
|
+ district_name = #{districtName,jdbcType=VARCHAR},
|
|
|
|
|
+ clock_in_remarks = #{clockInRemarks,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
</update>
|
|
|
|
|
|