|
|
|
@ -117,7 +117,7 @@ |
|
|
|
SELECT hdb.*,hdr.pc_type,hdr.pc_end_time as road_pc_end_time |
|
|
|
SELECT hdb.*,hdr.pc_type,hdr.pc_end_time as road_pc_end_time |
|
|
|
FROM tht_hidden_danger_base hdb |
|
|
|
FROM tht_hidden_danger_base hdb |
|
|
|
LEFT JOIN tht_hidden_danger_road hdr ON hdb.business_id = hdr.business_id |
|
|
|
LEFT JOIN tht_hidden_danger_road hdr ON hdb.business_id = hdr.business_id |
|
|
|
-- AND hdb.pc_count = hdr.pc_count |
|
|
|
AND hdb.pc_count = hdr.pc_count |
|
|
|
LEFT JOIN department dp ON hdb.handle_dept = dp.cdepartmentid |
|
|
|
LEFT JOIN department dp ON hdb.handle_dept = dp.cdepartmentid |
|
|
|
LEFT JOIN enum_type et ON et.ENUMTYPEID = '6601' |
|
|
|
LEFT JOIN enum_type et ON et.ENUMTYPEID = '6601' |
|
|
|
AND et.enumvalue = hdb.status |
|
|
|
AND et.enumvalue = hdb.status |
|
|
|
|