|
@@ -12,7 +12,7 @@
|
|
|
<result property="createTime" column="create_time" />
|
|
<result property="createTime" column="create_time" />
|
|
|
<result property="updateBy" column="update_by" />
|
|
<result property="updateBy" column="update_by" />
|
|
|
<result property="updateTime" column="update_time" />
|
|
<result property="updateTime" column="update_time" />
|
|
|
- <result property="delFlag" column="del_flag" />
|
|
|
|
|
|
|
+ <result property="status" column="status_" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<insert id="insert" parameterType="com.jpsoft.employment.modules.base.entity.StudentAspirations">
|
|
<insert id="insert" parameterType="com.jpsoft.employment.modules.base.entity.StudentAspirations">
|
|
|
<!--
|
|
<!--
|
|
@@ -83,27 +83,10 @@
|
|
|
select * from base_student_aspirations WHERE del_flag = 0 AND wish_info_id = #{0}
|
|
select * from base_student_aspirations WHERE del_flag = 0 AND wish_info_id = #{0}
|
|
|
</select>
|
|
</select>
|
|
|
<select id="findByWish" parameterType="string" resultMap="StudentAspirationsMap">
|
|
<select id="findByWish" parameterType="string" resultMap="StudentAspirationsMap">
|
|
|
- SELECT * FROM base_student_aspirations
|
|
|
|
|
- WHERE del_flag = 0
|
|
|
|
|
- AND wish_info_id = #{wishInfoId}
|
|
|
|
|
- <if test="swapped == false">
|
|
|
|
|
- AND id_ NOT IN (
|
|
|
|
|
- SELECT student_aspirations_id FROM base_wish_info_user_record
|
|
|
|
|
- WHERE del_flag = 0
|
|
|
|
|
- AND status_ != '2'
|
|
|
|
|
- AND wish_info_id = #{wishInfoId}
|
|
|
|
|
- GROUP BY student_aspirations_id
|
|
|
|
|
- )
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="swapped == true">
|
|
|
|
|
- AND id_ IN (
|
|
|
|
|
- SELECT student_aspirations_id FROM base_wish_info_user_record
|
|
|
|
|
- WHERE del_flag = 0
|
|
|
|
|
- AND status_ != '2'
|
|
|
|
|
- AND wish_info_id = #{wishInfoId}
|
|
|
|
|
- GROUP BY student_aspirations_id
|
|
|
|
|
- )
|
|
|
|
|
- </if>
|
|
|
|
|
|
|
+ SELECT a.*,b.status_ FROM base_student_aspirations a
|
|
|
|
|
+ LEFT JOIN base_wish_info_user_record b ON a.id_ = b.student_aspirations_id AND b.status_ != 2
|
|
|
|
|
+ WHERE a.del_flag = 0
|
|
|
|
|
+ AND a.wish_info_id = #{wishInfoId}
|
|
|
</select>
|
|
</select>
|
|
|
<select id="search" parameterType="hashmap" resultMap="StudentAspirationsMap">
|
|
<select id="search" parameterType="hashmap" resultMap="StudentAspirationsMap">
|
|
|
<![CDATA[
|
|
<![CDATA[
|