|
@@ -13,15 +13,11 @@
|
|
insert into teacherteam_system.patent(patent_num, authorization_num, certificate_num, date, teacher_id)
|
|
insert into teacherteam_system.patent(patent_num, authorization_num, certificate_num, date, teacher_id)
|
|
values
|
|
values
|
|
<foreach collection="patents" item="pa" separator=",">
|
|
<foreach collection="patents" item="pa" separator=",">
|
|
- ( #{pa.patentNum},
|
|
|
|
- <if test="pa.authorizationNum != null">
|
|
|
|
|
|
+ ( #{pa.patentNum},
|
|
#{pa.authorizationNum},
|
|
#{pa.authorizationNum},
|
|
- </if>
|
|
|
|
- <if test="pa.certificateNum != null">
|
|
|
|
- #{pa.certificateNum},
|
|
|
|
- </if>
|
|
|
|
- #{pa.date},
|
|
|
|
- #{pa.teacherId})
|
|
|
|
|
|
+ #{pa.certificateNum},
|
|
|
|
+ #{pa.date},
|
|
|
|
+ #{pa.teacherId})
|
|
</foreach>
|
|
</foreach>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -37,10 +33,10 @@
|
|
<if test="image != null">
|
|
<if test="image != null">
|
|
image= #{image},
|
|
image= #{image},
|
|
</if>
|
|
</if>
|
|
- <if test="gradauteCourse != null">
|
|
|
|
|
|
+ <if test="graduateCourse != null">
|
|
gradaute_course= #{gradauteCourse},
|
|
gradaute_course= #{gradauteCourse},
|
|
</if>
|
|
</if>
|
|
- <if test="undergradauteCourse != null">
|
|
|
|
|
|
+ <if test="undergraduateCourse != null">
|
|
undergradaute_course= #{undergradauteCourse},
|
|
undergradaute_course= #{undergradauteCourse},
|
|
</if>
|
|
</if>
|
|
<if test="email != null">
|
|
<if test="email != null">
|