|
@@ -21,6 +21,7 @@
|
|
|
<result column="come_on_package_" property="comeOnPackage"/>
|
|
|
<result column="current_grade_num_" property="currentGradeNum"/>
|
|
|
<result column="current_class_" property="currentClass"/>
|
|
|
+ <result column="cooperation_organ_id_" property="cooperationOrganId"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -65,7 +66,7 @@
|
|
|
<if test="operatingTag != null">
|
|
|
operating_tag_,
|
|
|
</if>
|
|
|
- teacher_id_,create_time_,update_time_,service_tag_update_time_)
|
|
|
+ teacher_id_,create_time_,update_time_,service_tag_update_time_,cooperation_organ_id_)
|
|
|
VALUES
|
|
|
(#{userId},#{subjectIdList},
|
|
|
<if test="serviceTag != null">
|
|
@@ -74,7 +75,7 @@
|
|
|
<if test="operatingTag != null">
|
|
|
#{operatingTag},
|
|
|
</if>
|
|
|
- #{teacherId},NOW(),NOW(),NOW())
|
|
|
+ #{teacherId},NOW(),NOW(),NOW(),#{cooperationOrganId})
|
|
|
</insert>
|
|
|
|
|
|
<update id="update" parameterType="com.ym.mec.biz.dal.entity.Student">
|
|
@@ -111,6 +112,9 @@
|
|
|
<if test="currentClass != null">
|
|
|
current_class_=#{currentClass},
|
|
|
</if>
|
|
|
+ <if test="cooperationOrganId != null">
|
|
|
+ cooperation_organ_id_=#{cooperationOrganId},
|
|
|
+ </if>
|
|
|
update_time_ = NOW()
|
|
|
</set>
|
|
|
WHERE user_id_ = #{userId}
|
|
@@ -186,6 +190,9 @@
|
|
|
<if test="item.comeOnPackage != null">
|
|
|
come_on_package_=#{item.comeOnPackage},
|
|
|
</if>
|
|
|
+ <if test="item.cooperationOrganId != null">
|
|
|
+ cooperation_organ_id_=#{item.cooperationOrganId},
|
|
|
+ </if>
|
|
|
update_time_ = NOW()
|
|
|
</set>
|
|
|
WHERE user_id_ = #{item.userId}
|