|
@@ -15,10 +15,11 @@
|
|
|
<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" />
|
|
<result column="clock_in_remarks" jdbcType="VARCHAR" property="clockInRemarks" />
|
|
|
|
|
+ <result column="duration" jdbcType="DOUBLE" property="duration" />
|
|
|
</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, clock_in_remarks
|
|
|
|
|
|
|
+ photo_url, district_name, clock_in_remarks, duration
|
|
|
</sql>
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
select
|
|
select
|
|
@@ -34,13 +35,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, clock_in_remarks
|
|
|
|
|
- )
|
|
|
|
|
|
|
+ photo_url, district_name, clock_in_remarks,
|
|
|
|
|
+ duration)
|
|
|
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}, #{clockInRemarks,jdbcType=VARCHAR}
|
|
|
|
|
- )
|
|
|
|
|
|
|
+ #{photoUrl,jdbcType=VARCHAR}, #{districtName,jdbcType=VARCHAR}, #{clockInRemarks,jdbcType=VARCHAR},
|
|
|
|
|
+ #{duration,jdbcType=DOUBLE})
|
|
|
</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
|
|
@@ -81,6 +82,9 @@
|
|
|
<if test="clockInRemarks != null">
|
|
<if test="clockInRemarks != null">
|
|
|
clock_in_remarks,
|
|
clock_in_remarks,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="duration != null">
|
|
|
|
|
+ duration,
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="prid != null">
|
|
<if test="prid != null">
|
|
@@ -119,6 +123,9 @@
|
|
|
<if test="clockInRemarks != null">
|
|
<if test="clockInRemarks != null">
|
|
|
#{clockInRemarks,jdbcType=VARCHAR},
|
|
#{clockInRemarks,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="duration != null">
|
|
|
|
|
+ #{duration,jdbcType=DOUBLE},
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.PublicReleaseDetails">
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.PublicReleaseDetails">
|
|
@@ -160,6 +167,9 @@
|
|
|
<if test="clockInRemarks != null">
|
|
<if test="clockInRemarks != null">
|
|
|
clock_in_remarks = #{clockInRemarks,jdbcType=VARCHAR},
|
|
clock_in_remarks = #{clockInRemarks,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="duration != null">
|
|
|
|
|
+ duration = #{duration,jdbcType=DOUBLE},
|
|
|
|
|
+ </if>
|
|
|
</set>
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
</update>
|
|
@@ -176,15 +186,15 @@
|
|
|
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}
|
|
|
|
|
|
|
+ clock_in_remarks = #{clockInRemarks,jdbcType=VARCHAR},
|
|
|
|
|
+ duration = #{duration,jdbcType=DOUBLE}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
</update>
|
|
|
|
|
|
|
|
<select id="selectByPCid" resultType="com.goafanti.weChat.bo.OutPublicReleaseDetails">
|
|
<select id="selectByPCid" resultType="com.goafanti.weChat.bo.OutPublicReleaseDetails">
|
|
|
select
|
|
select
|
|
|
- a.id,a.prid, a.`uid`, a.ufid, a.new_user newUser,a.longitude,a.latitude,
|
|
|
|
|
|
|
+ a.id,a.prid, a.`uid`, a.ufid, a.new_user newUser,a.longitude,a.latitude,b.nickname userName,
|
|
|
a.district_name districtName ,a.clock_in clockIn,date_format(a.clock_in_time, '%Y-%m-%d %H:%i:%S') clockInTimes,a.photo_url photoUrl
|
|
a.district_name districtName ,a.clock_in clockIn,date_format(a.clock_in_time, '%Y-%m-%d %H:%i:%S') clockInTimes,a.photo_url photoUrl
|
|
|
-
|
|
|
|
|
from public_release_details a left join user b on a.uid=b.id
|
|
from public_release_details a left join user b on a.uid=b.id
|
|
|
where prid = #{id,jdbcType=INTEGER}
|
|
where prid = #{id,jdbcType=INTEGER}
|
|
|
</select>
|
|
</select>
|
|
@@ -193,13 +203,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,duration)
|
|
|
values
|
|
values
|
|
|
<foreach collection="list" item="prd" separator=",">
|
|
<foreach collection="list" item="prd" separator=",">
|
|
|
(#{prd.prid,jdbcType=INTEGER}, #{prd.uid,jdbcType=VARCHAR}, #{prd.ufid,jdbcType=VARCHAR},
|
|
(#{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.newUser,jdbcType=INTEGER}, #{prd.signSum,jdbcType=INTEGER}, #{prd.longitude,jdbcType=VARCHAR},
|
|
|
#{prd.latitude,jdbcType=VARCHAR}, #{prd.clockIn,jdbcType=INTEGER}, #{prd.clockInTime,jdbcType=TIMESTAMP},
|
|
#{prd.latitude,jdbcType=VARCHAR}, #{prd.clockIn,jdbcType=INTEGER}, #{prd.clockInTime,jdbcType=TIMESTAMP},
|
|
|
- #{prd.photoUrl,jdbcType=VARCHAR}, #{prd.districtName,jdbcType=VARCHAR})
|
|
|
|
|
|
|
+ #{prd.photoUrl,jdbcType=VARCHAR}, #{prd.districtName,jdbcType=VARCHAR},#{prd.duration,jdbcType=DOUBLE})
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|