|
|
@@ -1,180 +1,342 @@
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
-<!DOCTYPE mapper
|
|
|
- PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
- "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.goafanti.common.dao.PublicReleaseDetailsMapper">
|
|
|
|
|
|
- <resultMap id="BaseResultMap" type="com.goafanti.common.model.PublicReleaseDetails">
|
|
|
- <id property="id" column="id" jdbcType="INTEGER"/>
|
|
|
- <result property="prid" column="prid" jdbcType="INTEGER"/>
|
|
|
- <result property="uid" column="uid" jdbcType="VARCHAR"/>
|
|
|
- <result property="ufid" column="ufid" jdbcType="VARCHAR"/>
|
|
|
- <result property="newUser" column="new_user" jdbcType="INTEGER"/>
|
|
|
- <result property="signSum" column="sign_sum" jdbcType="INTEGER"/>
|
|
|
- <result property="longitude" column="longitude" jdbcType="VARCHAR"/>
|
|
|
- <result property="latitude" column="latitude" jdbcType="VARCHAR"/>
|
|
|
- <result property="clockIn" column="clock_in" jdbcType="INTEGER"/>
|
|
|
- <result property="clockInTime" column="clock_in_time" jdbcType="TIMESTAMP"/>
|
|
|
- <result property="photoUrl" column="photo_url" jdbcType="VARCHAR"/>
|
|
|
- <result property="districtName" column="district_name" jdbcType="VARCHAR"/>
|
|
|
- <result property="clockInRemarks" column="clock_in_remarks" jdbcType="VARCHAR"/>
|
|
|
- <result property="duration" column="duration" jdbcType="DOUBLE"/>
|
|
|
- <result property="mainStatus" column="main_status" jdbcType="INTEGER"/>
|
|
|
- <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
|
|
- <result property="addressName" column="address_name" jdbcType="VARCHAR"/>
|
|
|
+ <resultMap type="com.goafanti.common.model.PublicReleaseDetails" id="PublicReleaseDetailsMap">
|
|
|
+ <result property="id" column="id" jdbcType="INTEGER"/>
|
|
|
+ <result property="prid" column="prid" jdbcType="INTEGER"/>
|
|
|
+ <result property="uid" column="uid" jdbcType="VARCHAR"/>
|
|
|
+ <result property="ufid" column="ufid" jdbcType="VARCHAR"/>
|
|
|
+ <result property="newUser" column="new_user" jdbcType="INTEGER"/>
|
|
|
+ <result property="signSum" column="sign_sum" jdbcType="INTEGER"/>
|
|
|
+ <result property="longitude" column="longitude" jdbcType="VARCHAR"/>
|
|
|
+ <result property="latitude" column="latitude" jdbcType="VARCHAR"/>
|
|
|
+ <result property="clockIn" column="clock_in" jdbcType="INTEGER"/>
|
|
|
+ <result property="clockInTime" column="clock_in_time" jdbcType="TIMESTAMP"/>
|
|
|
+ <result property="photoUrl" column="photo_url" jdbcType="VARCHAR"/>
|
|
|
+ <result property="districtName" column="district_name" jdbcType="VARCHAR"/>
|
|
|
+ <result property="clockInRemarks" column="clock_in_remarks" jdbcType="VARCHAR"/>
|
|
|
+ <result property="duration" column="duration" jdbcType="NUMERIC"/>
|
|
|
+ <result property="mainStatus" column="main_status" jdbcType="INTEGER"/>
|
|
|
+ <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
|
|
+ <result property="addressName" column="address_name" jdbcType="VARCHAR"/>
|
|
|
+ <result property="interviewStatus" column="interview_status" jdbcType="INTEGER"/>
|
|
|
</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,main_status,
|
|
|
- update_time,address_name
|
|
|
+ <sql id="PublicReleaseDetailsAllSql">
|
|
|
+ id, prid, uid, ufid, new_user, sign_sum, longitude, latitude, clock_in, clock_in_time, photo_url, district_name, clock_in_remarks, duration, main_status, update_time, address_name, interview_status
|
|
|
</sql>
|
|
|
|
|
|
- <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
+ <!--查询单个-->
|
|
|
+ <select id="selectById" resultMap="PublicReleaseDetailsMap">
|
|
|
select
|
|
|
- <include refid="Base_Column_List" />
|
|
|
+ <include refid="PublicReleaseDetailsAllSql"/>
|
|
|
from public_release_details
|
|
|
- where id = #{id,jdbcType=INTEGER}
|
|
|
+ where id = #{id}
|
|
|
</select>
|
|
|
|
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
|
- delete from public_release_details
|
|
|
- where id = #{id,jdbcType=INTEGER}
|
|
|
- </delete>
|
|
|
- <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.PublicReleaseDetails" useGeneratedKeys="true">
|
|
|
- insert into public_release_details
|
|
|
- ( id,prid,uid
|
|
|
- ,ufid,new_user,sign_sum
|
|
|
- ,longitude,latitude,clock_in
|
|
|
- ,clock_in_time,photo_url,district_name
|
|
|
- ,clock_in_remarks,duration,main_status
|
|
|
- ,update_time,address_name)
|
|
|
- values (#{id,jdbcType=INTEGER},#{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},#{mainStatus,jdbcType=INTEGER}
|
|
|
- ,#{updateTime,jdbcType=TIMESTAMP},#{addressName,jdbcType=VARCHAR})
|
|
|
+ <!--新增所有列-->
|
|
|
+ <insert id="insert" keyProperty="id" useGeneratedKeys="true">
|
|
|
+ insert into public_release_details(prid, uid, ufid, new_user, sign_sum, longitude, latitude, clock_in,
|
|
|
+ clock_in_time, photo_url, district_name, clock_in_remarks, duration,
|
|
|
+ main_status, update_time, address_name, interview_status)
|
|
|
+ values (#{prid}, #{uid}, #{ufid}, #{newUser}, #{signSum}, #{longitude}, #{latitude}, #{clockIn}, #{clockInTime},
|
|
|
+ #{photoUrl}, #{districtName}, #{clockInRemarks}, #{duration}, #{mainStatus}, #{updateTime},
|
|
|
+ #{addressName}, #{interviewStatus})
|
|
|
</insert>
|
|
|
+
|
|
|
+ <insert id="insertBatch">
|
|
|
+ insert into public_release_details (prid, `uid`, ufid,
|
|
|
+ new_user, sign_sum, longitude,
|
|
|
+ latitude, clock_in, clock_in_time,
|
|
|
+ photo_url, district_name,duration,main_status,address_name)
|
|
|
+ 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.mainStatus,jdbcType=INTEGER},#{prd.addressName,jdbcType=VARCHAR})
|
|
|
+ </foreach>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+
|
|
|
+ <insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
|
|
+ insert into public_release_details(prid, uid, ufid, new_user, sign_sum, longitude, latitude, clock_in,
|
|
|
+ clock_in_time, photo_url, district_name, clock_in_remarks, duration, main_status, update_time, address_name,
|
|
|
+ interview_status)
|
|
|
+ values
|
|
|
+ <foreach collection="entities" item="entity" separator=",">
|
|
|
+ (#{entity.prid}, #{entity.uid}, #{entity.ufid}, #{entity.newUser}, #{entity.signSum}, #{entity.longitude},
|
|
|
+ #{entity.latitude}, #{entity.clockIn}, #{entity.clockInTime}, #{entity.photoUrl}, #{entity.districtName},
|
|
|
+ #{entity.clockInRemarks}, #{entity.duration}, #{entity.mainStatus}, #{entity.updateTime},
|
|
|
+ #{entity.addressName}, #{entity.interviewStatus})
|
|
|
+ </foreach>
|
|
|
+ on duplicate key update
|
|
|
+ prid = values(prid),
|
|
|
+ uid = values(uid),
|
|
|
+ ufid = values(ufid),
|
|
|
+ new_user = values(new_user),
|
|
|
+ sign_sum = values(sign_sum),
|
|
|
+ longitude = values(longitude),
|
|
|
+ latitude = values(latitude),
|
|
|
+ clock_in = values(clock_in),
|
|
|
+ clock_in_time = values(clock_in_time),
|
|
|
+ photo_url = values(photo_url),
|
|
|
+ district_name = values(district_name),
|
|
|
+ clock_in_remarks = values(clock_in_remarks),
|
|
|
+ duration = values(duration),
|
|
|
+ main_status = values(main_status),
|
|
|
+ update_time = values(update_time),
|
|
|
+ address_name = values(address_name),
|
|
|
+ interview_status = values(interview_status)
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <!--通过主键修改数据-->
|
|
|
+ <update id="update">
|
|
|
+ update public_release_details
|
|
|
+ <set>
|
|
|
+ <if test="prid != null">
|
|
|
+ prid = #{prid},
|
|
|
+ </if>
|
|
|
+ <if test="uid != null and uid != ''">
|
|
|
+ uid = #{uid},
|
|
|
+ </if>
|
|
|
+ <if test="ufid != null and ufid != ''">
|
|
|
+ ufid = #{ufid},
|
|
|
+ </if>
|
|
|
+ <if test="newUser != null">
|
|
|
+ new_user = #{newUser},
|
|
|
+ </if>
|
|
|
+ <if test="signSum != null">
|
|
|
+ sign_sum = #{signSum},
|
|
|
+ </if>
|
|
|
+ <if test="longitude != null and longitude != ''">
|
|
|
+ longitude = #{longitude},
|
|
|
+ </if>
|
|
|
+ <if test="latitude != null and latitude != ''">
|
|
|
+ latitude = #{latitude},
|
|
|
+ </if>
|
|
|
+ <if test="clockIn != null">
|
|
|
+ clock_in = #{clockIn},
|
|
|
+ </if>
|
|
|
+ <if test="clockInTime != null">
|
|
|
+ clock_in_time = #{clockInTime},
|
|
|
+ </if>
|
|
|
+ <if test="photoUrl != null and photoUrl != ''">
|
|
|
+ photo_url = #{photoUrl},
|
|
|
+ </if>
|
|
|
+ <if test="districtName != null and districtName != ''">
|
|
|
+ district_name = #{districtName},
|
|
|
+ </if>
|
|
|
+ <if test="clockInRemarks != null and clockInRemarks != ''">
|
|
|
+ clock_in_remarks = #{clockInRemarks},
|
|
|
+ </if>
|
|
|
+ <if test="duration != null">
|
|
|
+ duration = #{duration},
|
|
|
+ </if>
|
|
|
+ <if test="mainStatus != null">
|
|
|
+ main_status = #{mainStatus},
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ update_time = #{updateTime},
|
|
|
+ </if>
|
|
|
+ <if test="addressName != null and addressName != ''">
|
|
|
+ address_name = #{addressName},
|
|
|
+ </if>
|
|
|
+ <if test="interviewStatus != null">
|
|
|
+ interview_status = #{interviewStatus},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <!--查询指定行数据-->
|
|
|
+ <select id="findPublicReleaseDetailsList" resultMap="PublicReleaseDetailsMap">
|
|
|
+ select
|
|
|
+ <include refid="PublicReleaseDetailsAllSql"/>
|
|
|
+
|
|
|
+ from public_release_details
|
|
|
+ <where>
|
|
|
+ <if test="id != null">
|
|
|
+ and id = #{id}
|
|
|
+ </if>
|
|
|
+ <if test="prid != null">
|
|
|
+ and prid = #{prid}
|
|
|
+ </if>
|
|
|
+ <if test="uid != null and uid != ''">
|
|
|
+ and uid = #{uid}
|
|
|
+ </if>
|
|
|
+ <if test="ufid != null and ufid != ''">
|
|
|
+ and ufid = #{ufid}
|
|
|
+ </if>
|
|
|
+ <if test="newUser != null">
|
|
|
+ and new_user = #{newUser}
|
|
|
+ </if>
|
|
|
+ <if test="signSum != null">
|
|
|
+ and sign_sum = #{signSum}
|
|
|
+ </if>
|
|
|
+ <if test="longitude != null and longitude != ''">
|
|
|
+ and longitude = #{longitude}
|
|
|
+ </if>
|
|
|
+ <if test="latitude != null and latitude != ''">
|
|
|
+ and latitude = #{latitude}
|
|
|
+ </if>
|
|
|
+ <if test="clockIn != null">
|
|
|
+ and clock_in = #{clockIn}
|
|
|
+ </if>
|
|
|
+ <if test="clockInTime != null">
|
|
|
+ and clock_in_time = #{clockInTime}
|
|
|
+ </if>
|
|
|
+ <if test="photoUrl != null and photoUrl != ''">
|
|
|
+ and photo_url = #{photoUrl}
|
|
|
+ </if>
|
|
|
+ <if test="districtName != null and districtName != ''">
|
|
|
+ and district_name = #{districtName}
|
|
|
+ </if>
|
|
|
+ <if test="clockInRemarks != null and clockInRemarks != ''">
|
|
|
+ and clock_in_remarks = #{clockInRemarks}
|
|
|
+ </if>
|
|
|
+ <if test="duration != null">
|
|
|
+ and duration = #{duration}
|
|
|
+ </if>
|
|
|
+ <if test="mainStatus != null">
|
|
|
+ and main_status = #{mainStatus}
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ and update_time = #{updateTime}
|
|
|
+ </if>
|
|
|
+ <if test="addressName != null and addressName != ''">
|
|
|
+ and address_name = #{addressName}
|
|
|
+ </if>
|
|
|
+ <if test="interviewStatus != null">
|
|
|
+ and interview_status = #{interviewStatus}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ <if test="page_sql != null">
|
|
|
+ ${page_sql}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <!--统计总行数-->
|
|
|
+ <select id="findPublicReleaseDetailsCount" resultType="java.lang.Integer">
|
|
|
+ select count(1)
|
|
|
+ from public_release_details
|
|
|
+ <where>
|
|
|
+ <if test="id != null">
|
|
|
+ and id = #{id}
|
|
|
+ </if>
|
|
|
+ <if test="prid != null">
|
|
|
+ and prid = #{prid}
|
|
|
+ </if>
|
|
|
+ <if test="uid != null and uid != ''">
|
|
|
+ and uid = #{uid}
|
|
|
+ </if>
|
|
|
+ <if test="ufid != null and ufid != ''">
|
|
|
+ and ufid = #{ufid}
|
|
|
+ </if>
|
|
|
+ <if test="newUser != null">
|
|
|
+ and new_user = #{newUser}
|
|
|
+ </if>
|
|
|
+ <if test="signSum != null">
|
|
|
+ and sign_sum = #{signSum}
|
|
|
+ </if>
|
|
|
+ <if test="longitude != null and longitude != ''">
|
|
|
+ and longitude = #{longitude}
|
|
|
+ </if>
|
|
|
+ <if test="latitude != null and latitude != ''">
|
|
|
+ and latitude = #{latitude}
|
|
|
+ </if>
|
|
|
+ <if test="clockIn != null">
|
|
|
+ and clock_in = #{clockIn}
|
|
|
+ </if>
|
|
|
+ <if test="clockInTime != null">
|
|
|
+ and clock_in_time = #{clockInTime}
|
|
|
+ </if>
|
|
|
+ <if test="photoUrl != null and photoUrl != ''">
|
|
|
+ and photo_url = #{photoUrl}
|
|
|
+ </if>
|
|
|
+ <if test="districtName != null and districtName != ''">
|
|
|
+ and district_name = #{districtName}
|
|
|
+ </if>
|
|
|
+ <if test="clockInRemarks != null and clockInRemarks != ''">
|
|
|
+ and clock_in_remarks = #{clockInRemarks}
|
|
|
+ </if>
|
|
|
+ <if test="duration != null">
|
|
|
+ and duration = #{duration}
|
|
|
+ </if>
|
|
|
+ <if test="mainStatus != null">
|
|
|
+ and main_status = #{mainStatus}
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ and update_time = #{updateTime}
|
|
|
+ </if>
|
|
|
+ <if test="addressName != null and addressName != ''">
|
|
|
+ and address_name = #{addressName}
|
|
|
+ </if>
|
|
|
+ <if test="interviewStatus != null">
|
|
|
+ and interview_status = #{interviewStatus}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <!--通过主键删除-->
|
|
|
+ <delete id="deleteById">
|
|
|
+ delete
|
|
|
+ from public_release_details
|
|
|
+ where id = #{id}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.PublicReleaseDetails" useGeneratedKeys="true">
|
|
|
insert into public_release_details
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
- <if test="id != null">id,</if>
|
|
|
- <if test="prid != null">prid,</if>
|
|
|
- <if test="uid != null">uid,</if>
|
|
|
- <if test="ufid != null">ufid,</if>
|
|
|
- <if test="newUser != null">new_user,</if>
|
|
|
- <if test="signSum != null">sign_sum,</if>
|
|
|
- <if test="longitude != null">longitude,</if>
|
|
|
- <if test="latitude != null">latitude,</if>
|
|
|
- <if test="clockIn != null">clock_in,</if>
|
|
|
- <if test="clockInTime != null">clock_in_time,</if>
|
|
|
- <if test="photoUrl != null">photo_url,</if>
|
|
|
- <if test="districtName != null">district_name,</if>
|
|
|
- <if test="clockInRemarks != null">clock_in_remarks,</if>
|
|
|
- <if test="duration != null">duration,</if>
|
|
|
- <if test="mainStatus != null">main_status,</if>
|
|
|
- <if test="updateTime != null">update_time,</if>
|
|
|
- <if test="addressName != null">address_name,</if>
|
|
|
+ <if test="id != null">id,</if>
|
|
|
+ <if test="prid != null">prid,</if>
|
|
|
+ <if test="uid != null">uid,</if>
|
|
|
+ <if test="ufid != null">ufid,</if>
|
|
|
+ <if test="newUser != null">new_user,</if>
|
|
|
+ <if test="signSum != null">sign_sum,</if>
|
|
|
+ <if test="longitude != null">longitude,</if>
|
|
|
+ <if test="latitude != null">latitude,</if>
|
|
|
+ <if test="clockIn != null">clock_in,</if>
|
|
|
+ <if test="clockInTime != null">clock_in_time,</if>
|
|
|
+ <if test="photoUrl != null">photo_url,</if>
|
|
|
+ <if test="districtName != null">district_name,</if>
|
|
|
+ <if test="clockInRemarks != null">clock_in_remarks,</if>
|
|
|
+ <if test="duration != null">duration,</if>
|
|
|
+ <if test="mainStatus != null">main_status,</if>
|
|
|
+ <if test="updateTime != null">update_time,</if>
|
|
|
+ <if test="addressName != null">address_name,</if>
|
|
|
+ <if test="interviewStatus != null">
|
|
|
+ interview_status ,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
- <if test="id != null">#{id,jdbcType=INTEGER},</if>
|
|
|
- <if test="prid != null">#{prid,jdbcType=INTEGER},</if>
|
|
|
- <if test="uid != null">#{uid,jdbcType=VARCHAR},</if>
|
|
|
- <if test="ufid != null">#{ufid,jdbcType=VARCHAR},</if>
|
|
|
- <if test="newUser != null">#{newUser,jdbcType=INTEGER},</if>
|
|
|
- <if test="signSum != null">#{signSum,jdbcType=INTEGER},</if>
|
|
|
- <if test="longitude != null">#{longitude,jdbcType=VARCHAR},</if>
|
|
|
- <if test="latitude != null">#{latitude,jdbcType=VARCHAR},</if>
|
|
|
- <if test="clockIn != null">#{clockIn,jdbcType=INTEGER},</if>
|
|
|
- <if test="clockInTime != null">#{clockInTime,jdbcType=TIMESTAMP},</if>
|
|
|
- <if test="photoUrl != null">#{photoUrl,jdbcType=VARCHAR},</if>
|
|
|
- <if test="districtName != null">#{districtName,jdbcType=VARCHAR},</if>
|
|
|
- <if test="clockInRemarks != null">#{clockInRemarks,jdbcType=VARCHAR},</if>
|
|
|
- <if test="duration != null">#{duration,jdbcType=DOUBLE},</if>
|
|
|
- <if test="mainStatus != null">#{mainStatus,jdbcType=INTEGER},</if>
|
|
|
- <if test="updateTime != null">#{updateTime,jdbcType=TIMESTAMP},</if>
|
|
|
- <if test="addressName != null">#{addressName,jdbcType=VARCHAR},</if>
|
|
|
+ <if test="id != null">#{id,jdbcType=INTEGER},</if>
|
|
|
+ <if test="prid != null">#{prid,jdbcType=INTEGER},</if>
|
|
|
+ <if test="uid != null">#{uid,jdbcType=VARCHAR},</if>
|
|
|
+ <if test="ufid != null">#{ufid,jdbcType=VARCHAR},</if>
|
|
|
+ <if test="newUser != null">#{newUser,jdbcType=INTEGER},</if>
|
|
|
+ <if test="signSum != null">#{signSum,jdbcType=INTEGER},</if>
|
|
|
+ <if test="longitude != null">#{longitude,jdbcType=VARCHAR},</if>
|
|
|
+ <if test="latitude != null">#{latitude,jdbcType=VARCHAR},</if>
|
|
|
+ <if test="clockIn != null">#{clockIn,jdbcType=INTEGER},</if>
|
|
|
+ <if test="clockInTime != null">#{clockInTime,jdbcType=TIMESTAMP},</if>
|
|
|
+ <if test="photoUrl != null">#{photoUrl,jdbcType=VARCHAR},</if>
|
|
|
+ <if test="districtName != null">#{districtName,jdbcType=VARCHAR},</if>
|
|
|
+ <if test="clockInRemarks != null">#{clockInRemarks,jdbcType=VARCHAR},</if>
|
|
|
+ <if test="duration != null">#{duration,jdbcType=DOUBLE},</if>
|
|
|
+ <if test="mainStatus != null">#{mainStatus,jdbcType=INTEGER},</if>
|
|
|
+ <if test="updateTime != null">#{updateTime,jdbcType=TIMESTAMP},</if>
|
|
|
+ <if test="addressName != null">#{addressName,jdbcType=VARCHAR},</if>
|
|
|
+ <if test="interviewStatus != null">
|
|
|
+ #{interviewStatus},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
- <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.PublicReleaseDetails">
|
|
|
- update public_release_details
|
|
|
- <set>
|
|
|
- <if test="prid != null">
|
|
|
- prid = #{prid,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="uid != null">
|
|
|
- uid = #{uid,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="ufid != null">
|
|
|
- ufid = #{ufid,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="newUser != null">
|
|
|
- new_user = #{newUser,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="signSum != null">
|
|
|
- sign_sum = #{signSum,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="longitude != null">
|
|
|
- longitude = #{longitude,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="latitude != null">
|
|
|
- latitude = #{latitude,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="clockIn != null">
|
|
|
- clock_in = #{clockIn,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="clockInTime != null">
|
|
|
- clock_in_time = #{clockInTime,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- <if test="photoUrl != null">
|
|
|
- photo_url = #{photoUrl,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="districtName != null">
|
|
|
- district_name = #{districtName,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="clockInRemarks != null">
|
|
|
- clock_in_remarks = #{clockInRemarks,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="duration != null">
|
|
|
- duration = #{duration,jdbcType=DOUBLE},
|
|
|
- </if>
|
|
|
- <if test="mainStatus != null">
|
|
|
- main_status = #{mainStatus,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="updateTime != null">
|
|
|
- update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- <if test="addressName != null">
|
|
|
- address_name = #{addressName,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- </set>
|
|
|
- where id = #{id,jdbcType=INTEGER}
|
|
|
- </update>
|
|
|
- <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.PublicReleaseDetails">
|
|
|
- update public_release_details
|
|
|
- set
|
|
|
- prid = #{prid,jdbcType=INTEGER},
|
|
|
- uid = #{uid,jdbcType=VARCHAR},
|
|
|
- ufid = #{ufid,jdbcType=VARCHAR},
|
|
|
- new_user = #{newUser,jdbcType=INTEGER},
|
|
|
- sign_sum = #{signSum,jdbcType=INTEGER},
|
|
|
- longitude = #{longitude,jdbcType=VARCHAR},
|
|
|
- latitude = #{latitude,jdbcType=VARCHAR},
|
|
|
- clock_in = #{clockIn,jdbcType=INTEGER},
|
|
|
- clock_in_time = #{clockInTime,jdbcType=TIMESTAMP},
|
|
|
- photo_url = #{photoUrl,jdbcType=VARCHAR},
|
|
|
- district_name = #{districtName,jdbcType=VARCHAR},
|
|
|
- clock_in_remarks = #{clockInRemarks,jdbcType=VARCHAR},
|
|
|
- duration = #{duration,jdbcType=DOUBLE},
|
|
|
- main_status = #{mainStatus,jdbcType=INTEGER},
|
|
|
- update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
- address_name = #{addressName,jdbcType=VARCHAR}
|
|
|
- where id = #{id,jdbcType=INTEGER}
|
|
|
- </update>
|
|
|
|
|
|
|
|
|
|
|
|
@@ -188,20 +350,6 @@
|
|
|
where prid = #{id,jdbcType=INTEGER} order by a.update_time desc
|
|
|
</select>
|
|
|
|
|
|
- <insert id="insertBatch">
|
|
|
- insert into public_release_details (prid, `uid`, ufid,
|
|
|
- new_user, sign_sum, longitude,
|
|
|
- latitude, clock_in, clock_in_time,
|
|
|
- photo_url, district_name,duration,main_status,address_name)
|
|
|
- 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.mainStatus,jdbcType=INTEGER},#{prd.addressName,jdbcType=VARCHAR})
|
|
|
- </foreach>
|
|
|
- </insert>
|
|
|
|
|
|
<select id="getNamesByPrid" resultType="java.lang.String">
|
|
|
select GROUP_CONCAT(b.nickname)userNames
|