jobs/ReihungstestJob->remindApplicantsOfPlacementTest now set the organization unit in the message sender database table

This commit is contained in:
Paolo
2022-09-06 15:21:50 +02:00
parent 10ce6128de
commit 1f7fd6989e
2 changed files with 3 additions and 1 deletions
@@ -437,7 +437,7 @@ class ReihungstestJob extends JOB_Controller
(
$sender_id,
$applicant->prestudent_id,
null,
$applicant->oe_kurzbz,
'Sancho_RemindApplicantsOfTest',
$mailcontent_data_arr
);
@@ -453,12 +453,14 @@ class Reihungstest_model extends DB_Model
) AS "email",
tbl_ort.planbezeichnung,
tbl_ort.lageplan,
sg.oe_kurzbz,
row_number () over (partition by tbl_rt_person.person_id order by ps.priorisierung) as row_number
FROM PUBLIC.tbl_rt_person
JOIN PUBLIC.tbl_person ON (tbl_rt_person.person_id = tbl_person.person_id)
JOIN PUBLIC.tbl_reihungstest rt ON (rt_id = reihungstest_id)
JOIN PUBLIC.tbl_prestudent ps ON (ps.person_id = tbl_rt_person.person_id)
JOIN PUBLIC.tbl_prestudentstatus USING (prestudent_id)
JOIN PUBLIC.tbl_studiengang sg ON(sg.studiengang_kz = rt.studiengang_kz)
LEFT JOIN bis.tbl_zgv ON (ps.zgv_code = tbl_zgv.zgv_code)
LEFT JOIN PUBLIC.tbl_ort ON (tbl_rt_person.ort_kurzbz = tbl_ort.ort_kurzbz)
WHERE rt_id = ?