|
|
@@ -16,10 +16,11 @@
|
|
|
<result column="district_name" jdbcType="VARCHAR" property="districtName" />
|
|
|
<result column="clock_in_remarks" jdbcType="VARCHAR" property="clockInRemarks" />
|
|
|
<result column="duration" jdbcType="DOUBLE" property="duration" />
|
|
|
+ <result column="main_status" jdbcType="INTEGER" property="mainStatus" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
id, prid, `uid`, ufid, new_user, sign_sum, longitude, latitude, clock_in, clock_in_time,
|
|
|
- photo_url, district_name, clock_in_remarks, duration
|
|
|
+ photo_url, district_name, clock_in_remarks, duration, main_status
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
select
|
|
|
@@ -36,12 +37,12 @@
|
|
|
new_user, sign_sum, longitude,
|
|
|
latitude, clock_in, clock_in_time,
|
|
|
photo_url, district_name, clock_in_remarks,
|
|
|
- duration)
|
|
|
+ duration, main_status)
|
|
|
values (#{prid,jdbcType=INTEGER}, #{uid,jdbcType=VARCHAR}, #{ufid,jdbcType=VARCHAR},
|
|
|
#{newUser,jdbcType=INTEGER}, #{signSum,jdbcType=INTEGER}, #{longitude,jdbcType=VARCHAR},
|
|
|
#{latitude,jdbcType=VARCHAR}, #{clockIn,jdbcType=INTEGER}, #{clockInTime,jdbcType=TIMESTAMP},
|
|
|
#{photoUrl,jdbcType=VARCHAR}, #{districtName,jdbcType=VARCHAR}, #{clockInRemarks,jdbcType=VARCHAR},
|
|
|
- #{duration,jdbcType=DOUBLE})
|
|
|
+ #{duration,jdbcType=DOUBLE}, #{mainStatus,jdbcType=INTEGER})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.PublicReleaseDetails" useGeneratedKeys="true">
|
|
|
insert into public_release_details
|
|
|
@@ -85,6 +86,9 @@
|
|
|
<if test="duration != null">
|
|
|
duration,
|
|
|
</if>
|
|
|
+ <if test="mainStatus != null">
|
|
|
+ main_status,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="prid != null">
|
|
|
@@ -126,6 +130,9 @@
|
|
|
<if test="duration != null">
|
|
|
#{duration,jdbcType=DOUBLE},
|
|
|
</if>
|
|
|
+ <if test="mainStatus != null">
|
|
|
+ #{mainStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.PublicReleaseDetails">
|
|
|
@@ -170,6 +177,9 @@
|
|
|
<if test="duration != null">
|
|
|
duration = #{duration,jdbcType=DOUBLE},
|
|
|
</if>
|
|
|
+ <if test="mainStatus != null">
|
|
|
+ main_status = #{mainStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
@@ -187,7 +197,8 @@
|
|
|
photo_url = #{photoUrl,jdbcType=VARCHAR},
|
|
|
district_name = #{districtName,jdbcType=VARCHAR},
|
|
|
clock_in_remarks = #{clockInRemarks,jdbcType=VARCHAR},
|
|
|
- duration = #{duration,jdbcType=DOUBLE}
|
|
|
+ duration = #{duration,jdbcType=DOUBLE},
|
|
|
+ main_status = #{mainStatus,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
|
|
|
@@ -203,13 +214,14 @@
|
|
|
insert into public_release_details (prid, `uid`, ufid,
|
|
|
new_user, sign_sum, longitude,
|
|
|
latitude, clock_in, clock_in_time,
|
|
|
- photo_url, district_name,duration)
|
|
|
+ photo_url, district_name,duration,main_status)
|
|
|
values
|
|
|
<foreach collection="list" item="prd" separator=",">
|
|
|
(#{prd.prid,jdbcType=INTEGER}, #{prd.uid,jdbcType=VARCHAR}, #{prd.ufid,jdbcType=VARCHAR},
|
|
|
#{prd.newUser,jdbcType=INTEGER}, #{prd.signSum,jdbcType=INTEGER}, #{prd.longitude,jdbcType=VARCHAR},
|
|
|
#{prd.latitude,jdbcType=VARCHAR}, #{prd.clockIn,jdbcType=INTEGER}, #{prd.clockInTime,jdbcType=TIMESTAMP},
|
|
|
- #{prd.photoUrl,jdbcType=VARCHAR}, #{prd.districtName,jdbcType=VARCHAR},#{prd.duration,jdbcType=DOUBLE})
|
|
|
+ #{prd.photoUrl,jdbcType=VARCHAR}, #{prd.districtName,jdbcType=VARCHAR},#{prd.duration,jdbcType=DOUBLE},
|
|
|
+ #{prd.mainStatus,jdbcType=INTEGER})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|