|
|
@@ -5,6 +5,7 @@
|
|
|
<resultMap type="com.goafanti.common.model.UserInterviewProject" id="UserInterviewProjectMap">
|
|
|
<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="examineStatus" column="examine_status" jdbcType="INTEGER"/>
|
|
|
<result property="examineStatusOther" column="examine_status_other" jdbcType="VARCHAR"/>
|
|
|
@@ -13,7 +14,7 @@
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="UserInterviewProjectAllSql">
|
|
|
- id, uid, pid, examine_status, examine_status_other, buy_status, buy_status_other
|
|
|
+ id, uid, aid, pid, examine_status, examine_status_other, buy_status, buy_status_other
|
|
|
</sql>
|
|
|
|
|
|
<!--查询单个-->
|
|
|
@@ -26,28 +27,32 @@
|
|
|
|
|
|
<!--新增所有列-->
|
|
|
<insert id="insert" keyProperty="id" useGeneratedKeys="true">
|
|
|
- insert into user_interview_project(uid, pid, examine_status, examine_status_other, buy_status, buy_status_other)
|
|
|
- values (#{uid}, #{pid}, #{examineStatus}, #{examineStatusOther}, #{buyStatus}, #{buyStatusOther})
|
|
|
+ insert into user_interview_project(uid, aid, pid, examine_status, examine_status_other, buy_status,
|
|
|
+ buy_status_other)
|
|
|
+ values (#{uid}, #{aid}, #{pid}, #{examineStatus}, #{examineStatusOther}, #{buyStatus}, #{buyStatusOther})
|
|
|
</insert>
|
|
|
|
|
|
<insert id="insertBatch">
|
|
|
- insert into user_interview_project(uid, pid, examine_status, examine_status_other, buy_status, buy_status_other)
|
|
|
+ insert into user_interview_project(uid, aid, pid, examine_status, examine_status_other, buy_status,
|
|
|
+ buy_status_other)
|
|
|
values
|
|
|
<foreach collection="entities" item="entity" separator=",">
|
|
|
- (#{entity.uid}, #{entity.pid}, #{entity.examineStatus}, #{entity.examineStatusOther}, #{entity.buyStatus},
|
|
|
- #{entity.buyStatusOther})
|
|
|
+ (#{entity.uid}, #{entity.aid}, #{entity.pid}, #{entity.examineStatus}, #{entity.examineStatusOther},
|
|
|
+ #{entity.buyStatus}, #{entity.buyStatusOther})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
|
<insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
|
|
- insert into user_interview_project(uid, pid, examine_status, examine_status_other, buy_status, buy_status_other)
|
|
|
+ insert into user_interview_project(uid, aid, pid, examine_status, examine_status_other, buy_status,
|
|
|
+ buy_status_other)
|
|
|
values
|
|
|
<foreach collection="entities" item="entity" separator=",">
|
|
|
- (#{entity.uid}, #{entity.pid}, #{entity.examineStatus}, #{entity.examineStatusOther}, #{entity.buyStatus},
|
|
|
- #{entity.buyStatusOther})
|
|
|
+ (#{entity.uid}, #{entity.aid}, #{entity.pid}, #{entity.examineStatus}, #{entity.examineStatusOther},
|
|
|
+ #{entity.buyStatus}, #{entity.buyStatusOther})
|
|
|
</foreach>
|
|
|
on duplicate key update
|
|
|
uid = values(uid),
|
|
|
+ aid = values(aid),
|
|
|
pid = values(pid),
|
|
|
examine_status = values(examine_status),
|
|
|
examine_status_other = values(examine_status_other),
|
|
|
@@ -62,6 +67,9 @@
|
|
|
<if test="uid != null and uid != ''">
|
|
|
uid = #{uid},
|
|
|
</if>
|
|
|
+ <if test="aid != null and aid != ''">
|
|
|
+ aid = #{aid},
|
|
|
+ </if>
|
|
|
<if test="pid != null and pid != ''">
|
|
|
pid = #{pid},
|
|
|
</if>
|
|
|
@@ -94,6 +102,9 @@
|
|
|
<if test="uid != null and uid != ''">
|
|
|
and uid = #{uid}
|
|
|
</if>
|
|
|
+ <if test="aid != null and aid != ''">
|
|
|
+ and aid = #{aid}
|
|
|
+ </if>
|
|
|
<if test="pid != null and pid != ''">
|
|
|
and pid = #{pid}
|
|
|
</if>
|
|
|
@@ -126,6 +137,9 @@
|
|
|
<if test="uid != null and uid != ''">
|
|
|
and uid = #{uid}
|
|
|
</if>
|
|
|
+ <if test="aid != null and aid != ''">
|
|
|
+ and aid = #{aid}
|
|
|
+ </if>
|
|
|
<if test="pid != null and pid != ''">
|
|
|
and pid = #{pid}
|
|
|
</if>
|