|
|
@@ -116,13 +116,14 @@
|
|
|
bId, d.name stateName,t.maintenance_type maintenanceType,t.repair_channel repairChannel,
|
|
|
rs.repair_type_name repairTypeName,rs.repair_way repairWay,rs.return_visit_flag returnVisitFlag,
|
|
|
t.repair_obj_type,t.repair_obj_id,t.repair_obj_name,t.repair_obj_type repairObjType,t.repair_obj_id repairObjId,
|
|
|
- t.repair_obj_name repairObjName
|
|
|
+ t.repair_obj_name repairObjName,rrv.visit_type visitType,rrv.context visitContext
|
|
|
<if test="staffId != null and staffId != ''">
|
|
|
,rru.state repairDispatchState,rru.context repairDispatchContext,td.name repairDispatchStateName
|
|
|
</if>
|
|
|
from r_repair_pool t
|
|
|
left join t_dict d on t.state = d.status_cd and d.table_name = 'r_repair_pool' and d.table_columns = 'state'
|
|
|
left join r_repair_setting rs on rs.repair_type = t.repair_type and rs.status_cd = '0'
|
|
|
+ left join r_repair_return_visit rrv on t.repair_id = rrv.repair_id and rrv.community_id = t.community_id and rrv.status_cd = '0'
|
|
|
<if test="staffId != null and staffId != ''">
|
|
|
,r_repair_user rru
|
|
|
,t_dict td
|