id, name, subject_id, paper_type, score, question_count, suggest_time,visibility
,deduct_type,deduct_type_score,create_user, create_time,deleted
SELECT
tep.*
FROM t_exam_paper tep
and tep.deleted=0
and tep.id= #{id}
and tep.name like concat('%',#{name},'%')
and tep.subject_id= #{subjectId}
and tep.paper_type= #{paperType}
SELECT
FROM t_exam_paper
and deleted=0
and paper_type=#{paperType}
SELECT
FROM t_exam_paper
and deleted=0
and subject_id=#{subjectId}
and grade_level=#{levelId}
and paper_type=#{paperType}
SELECT id,name,limit_start_time,limit_end_time
FROM t_exam_paper
and deleted=0
and paper_type= #{examPaperType}
and grade_level=#{gradeLevel}
and #{dateTime} between limit_start_time and limit_end_time
ORDER BY id desc limit 5
SELECT count(*)
from t_exam_paper
where deleted = 0
SELECT create_time as name, COUNT(create_time) as value
from
(
SELECT DATE_FORMAT(create_time, '%Y-%m-%d') as create_time from t_exam_paper
WHERE deleted=0 and create_time between #{startTime} and #{endTime}
) a
GROUP BY create_time
update t_exam_paper set task_exam_id = #{taskId} where id in
#{id}
update t_exam_paper set task_exam_id = null where id in
#{id}