|
@@ -4,32 +4,33 @@
|
|
|
|
|
|
<select id="query" resultType="com.qmth.teachcloud.common.bean.result.TaskListResult">
|
|
|
select
|
|
|
- tbt.id,
|
|
|
- tbt.semester_id semesterId,
|
|
|
- bs.name semesterName,
|
|
|
- tbt.exam_id examId,
|
|
|
- be.name examName,
|
|
|
- tbt.course_code courseCode,
|
|
|
- tbt.course_name courseName,
|
|
|
- tbt.paper_number paperNumber,
|
|
|
- tbt.print_plan_id as printPlanId,
|
|
|
- concat_ws('-', epp.name, tbt.obj_name) as printPlanName,
|
|
|
- tbt.`type`,
|
|
|
- tbt.status,
|
|
|
- tbt.`result`,
|
|
|
- tbt.create_time as createTime,
|
|
|
- tbt.create_id as createId,
|
|
|
- su.real_name as createName,
|
|
|
- if(ISNULL(tbt.import_file_path),false,true) as hasImportFile,
|
|
|
- IF(tbt.result_file_path is null, IF(tbt.import_file_path is null, false, true), true) as hasResultFile,
|
|
|
- if(ISNULL(tbt.report_file_path),false,true) as hasReportFile,
|
|
|
- if(ISNULL(tbt.error_file_path),false,true) as hasErrorFile,
|
|
|
- tbt.reset_count as resetCount,
|
|
|
- tbt.error_message as errorMessage
|
|
|
+ tbt.id,
|
|
|
+ tbt.semester_id semesterId,
|
|
|
+ bs.name semesterName,
|
|
|
+ tbt.exam_id examId,
|
|
|
+ be.name examName,
|
|
|
+ tbt.course_code courseCode,
|
|
|
+ tbt.course_name courseName,
|
|
|
+ tbt.paper_number paperNumber,
|
|
|
+ tbt.print_plan_id as printPlanId,
|
|
|
+ concat_ws('-', epp.name, tbt.obj_name) as printPlanName,
|
|
|
+ tbt.`type`,
|
|
|
+ tbt.status,
|
|
|
+ tbt.`result`,
|
|
|
+ tbt.create_time as createTime,
|
|
|
+ tbt.create_id as createId,
|
|
|
+ su.real_name as createName,
|
|
|
+ if(ISNULL(tbt.import_file_path),false,true) as hasImportFile,
|
|
|
+ IF(tbt.result_file_path is null, IF(tbt.import_file_path is null, false, true), true) as hasResultFile,
|
|
|
+ if(ISNULL(tbt.report_file_path),false,true) as hasReportFile,
|
|
|
+ if(ISNULL(tbt.error_file_path),false,true) as hasErrorFile,
|
|
|
+ tbt.reset_count as resetCount,
|
|
|
+ tbt.error_message as errorMessage,
|
|
|
+ tbt.summary
|
|
|
from
|
|
|
- t_b_task tbt
|
|
|
+ t_b_task tbt
|
|
|
left join exam_print_plan epp on
|
|
|
- epp.id = tbt.print_plan_id
|
|
|
+ epp.id = tbt.print_plan_id
|
|
|
left join sys_user su on su.id = tbt.create_id
|
|
|
left join basic_semester bs on tbt.semester_id = bs.id
|
|
|
left join basic_exam be on tbt.exam_id = be.id
|