|
@@ -432,4 +432,94 @@
|
|
|
where sd_siid=#{id} and ifnull(sys_parents.openid,'') != '' and parents_status=1
|
|
|
</select>
|
|
|
|
|
|
+ <update id="updateScoreImport" parameterType="com.usoftchina.smartschool.school.po.ScoreImport" >
|
|
|
+ update score_import
|
|
|
+ <set >
|
|
|
+ <if test="si_date != null" >
|
|
|
+ si_date = #{si_date,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="si_creator != null" >
|
|
|
+ si_creator = #{si_creator,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="si_creatorid != null" >
|
|
|
+ si_creatorid = #{si_creatorid,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
+ <if test="si_examtitle != null" >
|
|
|
+ si_examtitle = #{si_examtitle,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="si_examscope != null" >
|
|
|
+ si_examscope = #{si_examscope,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="si_term != null" >
|
|
|
+ si_term = #{si_term,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="si_class != null" >
|
|
|
+ si_class = #{si_class,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="si_classid != null" >
|
|
|
+ si_classid = #{si_classid,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
+ <if test="si_grade != null" >
|
|
|
+ si_grade = #{si_grade,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="si_gradeid != null" >
|
|
|
+ si_gradeid = #{si_gradeid,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
+ <if test="school_id != null" >
|
|
|
+ school_id = #{school_id,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
+ <if test="si_examdate != null" >
|
|
|
+ si_examdate = #{si_examdate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="si_publish != null" >
|
|
|
+ si_publish = #{si_publish,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where si_id = #{si_id,jdbcType=INTEGER}
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <insert id="insertDetailSelective" parameterType="java.util.List">
|
|
|
+ insert into score_importdetail
|
|
|
+ (sd_siid,sd_stuid,sd_stu,sd_score,
|
|
|
+ sd_subject,sd_remark,school_id,sd_stuNumber
|
|
|
+ ) values
|
|
|
+ (
|
|
|
+ #{sd_siid, jdbcType=BIGINT},#{sd_stuid,jdbcType=BIGINT},#{sd_stu,jdbcType=VARCHAR},#{sd_score,jdbcType=INTEGER},#{sd_subject,jdbcType=VARCHAR},
|
|
|
+ #{sd_remark,jdbcType=VARCHAR},#{school_id,jdbcType=BIGINT},#{sd_stuNumber,jdbcType=VARCHAR}
|
|
|
+ )
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="updateDetailSelective" parameterType="com.usoftchina.smartschool.school.dto.CurriculumDetailDTO">
|
|
|
+ <foreach collection="list" item="item" index="index" separator=";">
|
|
|
+ update score_importdetail
|
|
|
+ <set>
|
|
|
+ <if test="sd_siid != null and sd_siid != 0">
|
|
|
+ sd_siid = #{sd_siid, jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
+ <if test="sd_stuid != null">
|
|
|
+ sd_stuid = #{sd_stuid,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
+ <if test="sd_stu != null">
|
|
|
+ sd_stu = #{sd_stu,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="sd_score != null">
|
|
|
+ sd_score = #{sd_score,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="sd_subject != null">
|
|
|
+ sd_subject = #{sd_subject,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="sd_remark != null">
|
|
|
+ sd_remark = #{sd_remark,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="school_id != null">
|
|
|
+ school_id = #{school_id,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
+ <if test="sd_stuNumber != null">
|
|
|
+ sd_stuNumber = #{sd_stuNumber,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ WHERE sd_id= #{sd_id,jdbcType=INTEGER}
|
|
|
+ </foreach>
|
|
|
+ </update>
|
|
|
+
|
|
|
</mapper>
|