|
|
@ -4,7 +4,7 @@ |
|
|
|
|
|
|
|
<update id="updateCarId"> |
|
|
|
update t_patient_data set patient_car_id = #{carId} where task_sub_id in |
|
|
|
(select t2.id from t_step_task t1, t_step_task t2 |
|
|
|
(select t2.task_sub_id from t_step_task t1, t_step_task t2 |
|
|
|
where t1.patient_id = t2.patient_id and t1.batch = t2.batch |
|
|
|
and t1.task_sub_id = #{taskSubId} |
|
|
|
and t1.rec_status = 0 and t2.rec_status = 0) |
|
|
|