|
|
@@ -166,7 +166,7 @@
|
|
|
</update>
|
|
|
|
|
|
<select id="selectByConditon" resultMap="BaseResultMap">
|
|
|
- select * from stu_score <where>
|
|
|
+ select * from score_import <where>
|
|
|
<if test="con != null">
|
|
|
${con}
|
|
|
</if>
|
|
|
@@ -174,7 +174,7 @@
|
|
|
and school_id = #{school_id}
|
|
|
</if>
|
|
|
</where>
|
|
|
- order by score_id DESC
|
|
|
+ order by si_id DESC
|
|
|
</select>
|
|
|
|
|
|
<select id="selectByCode" resultType="com.usoftchina.smartschool.school.po.ScoreImport">
|
|
|
@@ -358,4 +358,55 @@
|
|
|
<update id="updateTurnPublish" parameterType="long">
|
|
|
update score_import set si_publish=1 where si_id=#{id}
|
|
|
</update>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <resultMap id="listMap" type="com.usoftchina.smartschool.school.po.ScoreImportList" >
|
|
|
+ <id column="si_id" property="si_id" jdbcType="BIGINT" />
|
|
|
+ <result column="si_date" property="si_date" jdbcType="TIMESTAMP" />
|
|
|
+ <result column="si_creator" property="si_creator" jdbcType="VARCHAR" />
|
|
|
+ <result column="si_creatorid" property="si_creatorid" jdbcType="BIGINT" />
|
|
|
+ <result column="si_examtitle" property="si_examtitle" jdbcType="VARCHAR" />
|
|
|
+ <result column="si_examscope" property="si_examscope" jdbcType="VARCHAR" />
|
|
|
+ <result column="si_term" property="si_term" jdbcType="VARCHAR" />
|
|
|
+ <result column="si_class" property="si_class" jdbcType="VARCHAR" />
|
|
|
+ <result column="si_classid" property="si_classid" jdbcType="BIGINT" />
|
|
|
+ <result column="si_grade" property="si_grade" jdbcType="VARCHAR" />
|
|
|
+ <result column="si_gradeid" property="si_gradeid" jdbcType="BIGINT" />
|
|
|
+ <result column="school_id" property="school_id" jdbcType="BIGINT" />
|
|
|
+ <result column="si_examdate" property="si_examdate" jdbcType="TIMESTAMP" />
|
|
|
+ <result column="si_publish" property="si_publish" jdbcType="INTEGER" />
|
|
|
+ <result column="sd_id" property="sd_id" jdbcType="BIGINT" />
|
|
|
+ <result column="sd_siid" property="sd_siid" jdbcType="BIGINT" />
|
|
|
+ <result column="sd_stuid" property="sd_stuid" jdbcType="BIGINT" />
|
|
|
+ <result column="sd_stu" property="sd_stu" jdbcType="VARCHAR" />
|
|
|
+ <result column="sd_score" property="sd_score" jdbcType="INTEGER" />
|
|
|
+ <result column="sd_subject" property="sd_subject" jdbcType="VARCHAR" />
|
|
|
+ <result column="sd_remark" property="sd_remark" jdbcType="VARCHAR" />
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <select id="selectMainByConditon" resultMap="listMap">
|
|
|
+ select * from score_import <where>
|
|
|
+ <if test="con != null">
|
|
|
+ ${con}
|
|
|
+ </if>
|
|
|
+ <if test="school_id != null">
|
|
|
+ and school_id = #{school_id}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ order by si_id DESC
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectDetailByCondition" resultMap="listMap">
|
|
|
+ select * from score_import left join score_importdetail on si_id=sd_siid <where>
|
|
|
+ <if test="con != null">
|
|
|
+ ${con}
|
|
|
+ </if>
|
|
|
+ <if test="school_id != null">
|
|
|
+ and score_import.school_id = #{school_id}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ order by si_id DESC
|
|
|
+ </select>
|
|
|
+
|
|
|
</mapper>
|