Browse Source

绑定平车

pt
zhizhi wu 4 years ago
parent
commit
594f669e8f
  1. 2
      wisdomcar/src/main/resources/mapper_dao/PatientDataDao.xml

2
wisdomcar/src/main/resources/mapper_dao/PatientDataDao.xml

@ -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)

Loading…
Cancel
Save