|
@@ -28,8 +28,8 @@
|
|
|
|
|
|
<!-- 向数据库增加一条记录 -->
|
|
<!-- 向数据库增加一条记录 -->
|
|
<insert id="insert" parameterType="com.keao.edu.user.api.entity.Student" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
|
|
<insert id="insert" parameterType="com.keao.edu.user.api.entity.Student" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
|
|
- INSERT INTO student (user_id_,certificate_photo_,create_time_,update_time_,tenant_id_,organ_id_)
|
|
|
|
- VALUES(#{userId},#{certificatePhoto},NOW(),NOW(),#{tenantId},#{organId})
|
|
|
|
|
|
+ INSERT INTO student (user_id_,certificate_photo_,create_time_,update_time_,organ_id_)
|
|
|
|
+ VALUES(#{userId},#{certificatePhoto},NOW(),NOW(),#{organId})
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -39,9 +39,6 @@
|
|
<if test="certificatePhoto != null">
|
|
<if test="certificatePhoto != null">
|
|
certificate_photo_ = #{certificatePhoto},
|
|
certificate_photo_ = #{certificatePhoto},
|
|
</if>
|
|
</if>
|
|
- <if test="tenantId != null and tenantId != 0">
|
|
|
|
- tenant_id_ = #{tenantId},
|
|
|
|
- </if>
|
|
|
|
<if test="organId != null">
|
|
<if test="organId != null">
|
|
organ_id_ = #{organId},
|
|
organ_id_ = #{organId},
|
|
</if>
|
|
</if>
|