| | |
| | | SELECT t1.id as ownerId, t1.case_id as caseId, t1.reply_content as content, t1.sup_status as applyStatus, t1.reply_time as replyTime, |
| | | t1.sup_time as turnaroundTime, DATEADD(hour, t1.reply_term, t1.sup_time) as timeLimit, t1.sup_unit_name as organizingUnit, |
| | | t1.sup_content as opinion, t2.case_level as caseGrade, t2.canal_name as caseSource, |
| | | concat_ws('', ifnull(t2.case_type_first_name, ''), '/' , ifnull(t2.case_type_name, '') as caseType, concat_ws('', ifnull(t2.plaintiffs, ''), ifnull(t2.pagents, '')), |
| | | concat_ws('', ifnull(t2.case_type_first_name, ''), '/' , ifnull(t2.case_type_name, '')) as caseType, concat_ws('', ifnull(t2.plaintiffs, ''), ifnull(t2.pagents, '')) as plaintiffs, |
| | | concat_ws('', ifnull(t2.defendants, ''), ifnull(t2.dagents, '')) as defendants |
| | | FROM |
| | | dyh_case_supervise t1 left join dyh_case_info t2 on t1.case_id = t2.id |