【新增】专业/课程 点位判断
【修改】模板库复制修改试卷编号
This commit is contained in:
@@ -4,6 +4,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="pc.exam.pp.module.exam.dal.mysql.monitor.MonitorMapper">
|
||||
|
||||
<resultMap type="TentSpecialy" id="TentSpecialyResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="specialtyId" column="specialty_id" />
|
||||
<result property="points" column="points" />
|
||||
<result property="tenantId" column="tenant_id" />
|
||||
</resultMap>
|
||||
<update id="deleteByTaskIds">
|
||||
UPDATE exam_monitor
|
||||
SET deleted = '2'
|
||||
WHERE task_id IN
|
||||
<foreach item="taskId" collection="taskIds" open="(" separator="," close=")">
|
||||
#{taskId}
|
||||
</foreach>
|
||||
</update>
|
||||
<update id="deleteByTaskId">
|
||||
UPDATE exam_monitor
|
||||
SET deleted = '2'
|
||||
WHERE task_id =#{taskId}
|
||||
</update>
|
||||
|
||||
<select id="selectByStuIdAndTaskIdTop" resultType="java.lang.String">
|
||||
select score from exam_monitor where stu_id =#{stuId} and task_id=#{taskId} ORDER BY score DESC
|
||||
LIMIT 1
|
||||
@@ -18,4 +38,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<select id="selectStuIdByTaskId" resultType="java.lang.String">
|
||||
select stu_id from exam_monitor where task_id =#{taskId} and deleted ='0' and exam_status ='0'
|
||||
</select>
|
||||
|
||||
<select id="selectTent" resultMap="TentSpecialyResult">
|
||||
SELECT
|
||||
ets.*,
|
||||
es.sp_name AS name
|
||||
FROM
|
||||
exam_tenant_specialty ets
|
||||
LEFT JOIN
|
||||
exam_specialty es
|
||||
ON
|
||||
ets.specialty_id = es.sp_id
|
||||
WHERE
|
||||
ets.tenant_id = #{loginTenantId}
|
||||
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
Reference in New Issue
Block a user