【新增】浏览器、mysql、文件夹判分,监控管理后台接口
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
<resultMap type="EducationPaper" id="EducationPaperResult">
|
||||
<result property="paperId" column="paper_id" />
|
||||
<result property="taskId" column="task_id" />
|
||||
<result property="num" column="num" />
|
||||
<result property="counts" column="counts" />
|
||||
<result property="rollUp" column="roll_up" />
|
||||
<result property="isAb" column="is_ab" />
|
||||
@@ -47,7 +48,7 @@
|
||||
|
||||
|
||||
<sql id="selectEducationPaperVo">
|
||||
select paper_id, task_id, counts, roll_up, is_ab, status ,create_time,update_time,creator,updater ,deleted from education_paper
|
||||
select paper_id, task_id, num,counts, roll_up, is_ab, status ,create_time,update_time,creator,updater ,deleted from education_paper
|
||||
</sql>
|
||||
|
||||
|
||||
@@ -103,8 +104,8 @@ select task_id from education_paper where paper_id=#{paperId}
|
||||
<select id="selectPaperByTaskIdAndRoll" resultType="java.lang.String">
|
||||
select paper_id from education_paper where task_id=#{taskId} and deleted ='0'
|
||||
</select>
|
||||
<select id="getPaperByTaskIdByType" resultType="java.lang.String">
|
||||
select paper_id from education_paper where task_id=#{taskId} and status ='0' and deleted ='0' and roll_up IS NOT NULL
|
||||
<select id="getPaperByTaskIdByType" resultMap="EducationPaperResult">
|
||||
select * from education_paper where task_id=#{taskId} and status ='0' and deleted ='0' and roll_up IS NOT NULL
|
||||
|
||||
</select>
|
||||
<select id="getSelectPaperIdBySchemeIds" resultType="java.lang.String">
|
||||
@@ -115,6 +116,9 @@ select task_id from education_paper where paper_id=#{paperId}
|
||||
<include refid="selectEducationPaperVo"/>
|
||||
where task_id =#{taskId} and deleted ='0'
|
||||
</select>
|
||||
<select id="selectCountPaperList" resultType="java.lang.Integer">
|
||||
select count(*) from education_paper
|
||||
</select>
|
||||
|
||||
|
||||
<insert id="insertEducationPaper" parameterType="EducationPaper">
|
||||
@@ -122,6 +126,7 @@ select task_id from education_paper where paper_id=#{paperId}
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="paperId != null">paper_id,</if>
|
||||
<if test="taskId != null">task_id,</if>
|
||||
<if test="num != null">num,</if>
|
||||
<if test="counts != null">counts,</if>
|
||||
<if test="rollUp != null">roll_up,</if>
|
||||
<if test="isAb != null">is_ab,</if>
|
||||
@@ -136,6 +141,7 @@ select task_id from education_paper where paper_id=#{paperId}
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="paperId != null">#{paperId},</if>
|
||||
<if test="taskId != null">#{taskId},</if>
|
||||
<if test="num != null">#{num},</if>
|
||||
<if test="counts != null">#{counts},</if>
|
||||
<if test="rollUp != null">#{rollUp},</if>
|
||||
<if test="isAb != null">#{isAb},</if>
|
||||
@@ -149,10 +155,10 @@ select task_id from education_paper where paper_id=#{paperId}
|
||||
</trim>
|
||||
</insert>
|
||||
<insert id="insertEducationPaperList">
|
||||
INSERT INTO education_paper (paper_id, task_id, counts, roll_up, is_ab, status ) VALUES
|
||||
INSERT INTO education_paper (paper_id, task_id,num ,counts, roll_up, is_ab, status ) VALUES
|
||||
<foreach collection="list" item="item" separator=",">
|
||||
(
|
||||
#{item.paperId}, #{item.taskId}, #{item.counts}, #{item.rollUp}, #{item.isAb}, #{item.status}
|
||||
#{item.paperId}, #{item.taskId}, #{item.num},#{item.counts}, #{item.rollUp}, #{item.isAb}, #{item.status}
|
||||
)
|
||||
</foreach>
|
||||
</insert>
|
||||
|
@@ -7,6 +7,7 @@
|
||||
<resultMap type="EducationPaperScheme" id="EducationPaperSchemeResult">
|
||||
<result property="schemeId" column="scheme_id" />
|
||||
<result property="taskId" column="task_id" />
|
||||
<result property="quTitle" column="qu_title" />
|
||||
<result property="spName" column="sp_name" />
|
||||
<result property="quLevel" column="qu_level" />
|
||||
<result property="keywords" column="keywords" />
|
||||
@@ -14,10 +15,11 @@
|
||||
<result property="quNumbers" column="qu_numbers" />
|
||||
<result property="quScores" column="qu_scores" />
|
||||
<result property="subtotalScore" column="subtotal_score" />
|
||||
<result property="sort" column="sort" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEducationPaperSchemeVo">
|
||||
select scheme_id, task_id, sp_name, qu_level, keywords, point_names, qu_numbers, qu_scores, subtotal_score from education_paper_scheme
|
||||
select scheme_id, task_id,qu_title,sp_name, qu_level, keywords, point_names, qu_numbers, qu_scores, subtotal_score,sort from education_paper_scheme
|
||||
</sql>
|
||||
|
||||
<select id="selectEducationPaperSchemeList" parameterType="EducationPaperScheme" resultMap="EducationPaperSchemeResult">
|
||||
@@ -32,6 +34,7 @@
|
||||
<if test="quScores != null and quScores != ''"> and qu_scores = #{quScores}</if>
|
||||
<if test="subtotalScore != null and subtotalScore != ''"> and subtotal_score = #{subtotalScore}</if>
|
||||
</where>
|
||||
order by sort asc
|
||||
</select>
|
||||
|
||||
<select id="selectEducationPaperSchemeBySchemeId" parameterType="String" resultMap="EducationPaperSchemeResult">
|
||||
@@ -47,6 +50,7 @@
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="schemeId != null">scheme_id,</if>
|
||||
<if test="taskId != null">task_id,</if>
|
||||
<if test="quTitle != null">qu_title,</if>
|
||||
<if test="spName != null">sp_name,</if>
|
||||
<if test="quLevel != null">qu_level,</if>
|
||||
<if test="keywords != null">keywords,</if>
|
||||
@@ -54,10 +58,12 @@
|
||||
<if test="quNumbers != null">qu_numbers,</if>
|
||||
<if test="quScores != null">qu_scores,</if>
|
||||
<if test="subtotalScore != null">subtotal_score,</if>
|
||||
<if test="sort != null">sort,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="schemeId != null">#{schemeId},</if>
|
||||
<if test="taskId != null">#{taskId},</if>
|
||||
<if test="quTitle != null">#{quTitle},</if>
|
||||
<if test="spName != null">#{spName},</if>
|
||||
<if test="quLevel != null">#{quLevel},</if>
|
||||
<if test="keywords != null">#{keywords},</if>
|
||||
@@ -65,13 +71,14 @@
|
||||
<if test="quNumbers != null">#{quNumbers},</if>
|
||||
<if test="quScores != null">#{quScores},</if>
|
||||
<if test="subtotalScore != null">#{subtotalScore},</if>
|
||||
<if test="sort != null">#{sort},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<insert id="insertEducationPaperSchemeList">
|
||||
INSERT INTO education_paper_scheme (scheme_id, task_id, sp_name, qu_level, keywords, point_names, qu_numbers, qu_scores, subtotal_score) VALUES
|
||||
INSERT INTO education_paper_scheme (scheme_id, task_id, qu_title,sp_name, qu_level, keywords, point_names, qu_numbers, qu_scores, subtotal_score,sort) VALUES
|
||||
<foreach collection="list" item="item" separator=",">
|
||||
(
|
||||
#{item.schemeId}, #{item.taskId}, #{item.spName}, #{item.quLevel}, #{item.keywords}, #{item.pointNames}, #{item.quNumbers}, #{item.quScores}, #{item.subtotalScore}
|
||||
#{item.schemeId}, #{item.taskId}, #{item.quTitle},#{item.spName}, #{item.quLevel}, #{item.keywords}, #{item.pointNames}, #{item.quNumbers}, #{item.quScores}, #{item.subtotalScore}, #{item.sort}
|
||||
)
|
||||
</foreach>
|
||||
</insert>
|
||||
@@ -80,6 +87,7 @@
|
||||
update education_paper_scheme
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="taskId != null">task_id = #{taskId},</if>
|
||||
<if test="quTitle != null">qu_title = #{quTitle},</if>
|
||||
<if test="spName != null">sp_name = #{spName},</if>
|
||||
<if test="quLevel != null">qu_level = #{quLevel},</if>
|
||||
<if test="keywords != null">keywords = #{keywords},</if>
|
||||
@@ -87,6 +95,7 @@
|
||||
<if test="quNumbers != null">qu_numbers = #{quNumbers},</if>
|
||||
<if test="quScores != null">qu_scores = #{quScores},</if>
|
||||
<if test="subtotalScore != null">subtotal_score = #{subtotalScore},</if>
|
||||
<if test="subtotalScore != null">sort = #{sort},</if>
|
||||
</trim>
|
||||
where scheme_id = #{schemeId}
|
||||
</update>
|
||||
|
@@ -21,20 +21,7 @@
|
||||
select session_id, task_id, batch, start_time, end_time, allow_entry, end_allow_entry, allow_submission, status, paper_id from education_paper_session
|
||||
</sql>
|
||||
|
||||
<select id="selectEducationPaperSessionList" parameterType="EducationPaperSession" resultMap="EducationPaperSessionResult">
|
||||
<include refid="selectEducationPaperSessionVo"/>
|
||||
<where>
|
||||
<if test="taskId != null and taskId != ''"> and task_id = #{taskId}</if>
|
||||
<if test="batch != null and batch != ''"> and batch LIKE CONCAT('%', #{batch}, '%')</if>
|
||||
<if test="startTime != null "> and start_time = #{startTime}</if>
|
||||
<if test="endTime != null "> and end_time = #{endTime}</if>
|
||||
<if test="allowEntry != null and allowEntry != ''"> and allow_entry = #{allowEntry}</if>
|
||||
<if test="endAllowEntry != null and endAllowEntry != ''"> and end_allow_entry = #{endAllowEntry}</if>
|
||||
<if test="allowSubmission != null and allowSubmission != ''"> and allow_submission = #{allowSubmission}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
<if test="paperId != null and paperId != ''"> and paper_id = #{paperId}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectEducationPaperSessionBySessionId" parameterType="String" resultMap="EducationPaperSessionResult">
|
||||
<include refid="selectEducationPaperSessionVo"/>
|
||||
|
@@ -107,6 +107,12 @@
|
||||
)
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectEducationPaperTaskNameByid" resultType="java.lang.String">
|
||||
select task_name from education_paper_task where task_id=#{taskId}
|
||||
</select>
|
||||
<select id="selectStuClassNameByClassId" resultType="java.lang.String">
|
||||
select name from exam_class where id=#{classId}
|
||||
</select>
|
||||
|
||||
|
||||
<insert id="insertEducationPaperTask" parameterType="EducationPaperTask">
|
||||
|
@@ -89,8 +89,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="content != null">content,</if>
|
||||
<if test="contentText != null">content_text,</if>
|
||||
<if test="analysis != null">analysis,</if>
|
||||
<if test="deptId != null">dept_id,</if>
|
||||
<if test="userId != null">user_id,</if>
|
||||
<if test="pointNames != null">point_names,</if>
|
||||
<if test="keywords != null">keywords,</if>
|
||||
<if test="manual != null">manual,</if>
|
||||
@@ -115,8 +113,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="content != null">#{content},</if>
|
||||
<if test="contentText != null">#{contentText},</if>
|
||||
<if test="analysis != null">#{analysis},</if>
|
||||
<if test="deptId != null">#{deptId},</if>
|
||||
<if test="userId != null">#{userId},</if>
|
||||
<if test="pointNames != null">#{pointNames},</if>
|
||||
<if test="keywords != null">#{keywords},</if>
|
||||
<if test="manual != null">#{manual},</if>
|
||||
|
@@ -33,6 +33,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="quId != null "> and qu_id = #{quId}</if>
|
||||
</where>
|
||||
</select>
|
||||
<select id="selectSysFileByQuidIN" resultMap="SysFileResult">
|
||||
<include refid="selectSysFileVo"/>
|
||||
<where>
|
||||
<if test="quId != null "> and qu_id = #{quId}</if>
|
||||
</where>
|
||||
and (file_type = '0' or file_type ='1')
|
||||
</select>
|
||||
|
||||
<insert id="insertSysFile" parameterType="SysFileUpload">
|
||||
insert into sys_file
|
||||
|
Reference in New Issue
Block a user