|
|
@@ -6,12 +6,12 @@
|
|
|
<result property="id" column="id" jdbcType="INTEGER"/>
|
|
|
<result property="uid" column="uid" jdbcType="VARCHAR"/>
|
|
|
<result property="aid" column="aid" jdbcType="VARCHAR"/>
|
|
|
- <result property="pid" column="pid" jdbcType="VARCHAR"/>
|
|
|
+ <result property="prid" column="prid" jdbcType="VARCHAR"/>
|
|
|
<result property="firstTime" column="first_time" jdbcType="TIMESTAMP"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="UserFirstInterviewAllSql">
|
|
|
- id, uid, aid, pid, first_time
|
|
|
+ id, uid, aid, prid, first_time
|
|
|
</sql>
|
|
|
|
|
|
<!--查询单个-->
|
|
|
@@ -24,28 +24,28 @@
|
|
|
|
|
|
<!--新增所有列-->
|
|
|
<insert id="insert" keyProperty="id" useGeneratedKeys="true">
|
|
|
- insert into user_first_interview(uid, aid, pid, first_time)
|
|
|
- values (#{uid}, #{aid}, #{pid}, #{firstTime})
|
|
|
+ insert into user_first_interview(uid, aid, prid, first_time)
|
|
|
+ values (#{uid}, #{aid}, #{prid}, #{firstTime})
|
|
|
</insert>
|
|
|
|
|
|
<insert id="insertBatch">
|
|
|
- insert into user_first_interview(uid, aid, pid, first_time)
|
|
|
+ insert into user_first_interview(uid, aid, prid, first_time)
|
|
|
values
|
|
|
<foreach collection="entities" item="entity" separator=",">
|
|
|
- (#{entity.uid}, #{entity.aid}, #{entity.pid}, #{entity.firstTime})
|
|
|
+ (#{entity.uid}, #{entity.aid}, #{entity.prid}, #{entity.firstTime})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
|
<insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
|
|
- insert into user_first_interview(uid, aid, pid, first_time)
|
|
|
+ insert into user_first_interview(uid, aid, prid, first_time)
|
|
|
values
|
|
|
<foreach collection="entities" item="entity" separator=",">
|
|
|
- (#{entity.uid}, #{entity.aid}, #{entity.pid}, #{entity.firstTime})
|
|
|
+ (#{entity.uid}, #{entity.aid}, #{entity.prid}, #{entity.firstTime})
|
|
|
</foreach>
|
|
|
on duplicate key update
|
|
|
uid = values(uid),
|
|
|
aid = values(aid),
|
|
|
- pid = values(pid),
|
|
|
+ prid = values(prid),
|
|
|
first_time = values(first_time)
|
|
|
</insert>
|
|
|
|
|
|
@@ -59,8 +59,8 @@
|
|
|
<if test="aid != null and aid != ''">
|
|
|
aid = #{aid},
|
|
|
</if>
|
|
|
- <if test="pid != null and pid != ''">
|
|
|
- pid = #{pid},
|
|
|
+ <if test="prid != null and prid != ''">
|
|
|
+ prid = #{prid},
|
|
|
</if>
|
|
|
<if test="firstTime != null">
|
|
|
first_time = #{firstTime},
|
|
|
@@ -85,8 +85,8 @@
|
|
|
<if test="aid != null and aid != ''">
|
|
|
and aid = #{aid}
|
|
|
</if>
|
|
|
- <if test="pid != null and pid != ''">
|
|
|
- and pid = #{pid}
|
|
|
+ <if test="prid != null and prid != ''">
|
|
|
+ and prid = #{prid}
|
|
|
</if>
|
|
|
<if test="firstTime != null">
|
|
|
and first_time = #{firstTime}
|
|
|
@@ -111,8 +111,8 @@
|
|
|
<if test="aid != null and aid != ''">
|
|
|
and aid = #{aid}
|
|
|
</if>
|
|
|
- <if test="pid != null and pid != ''">
|
|
|
- and pid = #{pid}
|
|
|
+ <if test="prid != null and prid != ''">
|
|
|
+ and prid = #{prid}
|
|
|
</if>
|
|
|
<if test="firstTime != null">
|
|
|
and first_time = #{firstTime}
|